Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions drivers/phy/apple/atc-t6050-combo.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ static void combo_pipe_fault(struct t6050_dp *dp, const char *what, int ret)
/*
* What the combo PHY gained for a deep sleep outside its sleep callbacks (a wrapper domain
* still held at a stop is released, a safe state with a domain still held is stopped again,
* the always-on domain's hold over the sleep) is in force on the board it has run on, the
* J714s. On another T6050 board the stop, the safe state and the probe are as before.
* the always-on domain's hold over the sleep) is in force on the boards with a T6050 sleep,
* the J714s and the J716c. On another T6050 board the stop, the safe state and the probe are
* as before.
*/
static bool combo_sleep_board(void)
{
return of_machine_is_compatible("apple,j714s");
return of_machine_is_compatible("apple,j714s") || of_machine_is_compatible("apple,j716c");
}

static bool combo_domains_held(struct t6050_dp *dp)
Expand Down
4 changes: 3 additions & 1 deletion drivers/phy/apple/atc-t6050-dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,9 @@ int apple_t6050_phy_cio_usb(struct device *dev, enum apple_t6050_cio_usb step)
return 0;
case APPLE_T6050_CIO_USB_KEEP:
dp->cio_usb_kept = dp->cio_usb_parked = false;
if (!of_machine_is_compatible("apple,j714s") || !dp->cio_usb_host || dp->faulted ||
if (!(of_machine_is_compatible("apple,j714s") ||
of_machine_is_compatible("apple,j716c")) ||
!dp->cio_usb_host || dp->faulted ||
dp->combo_mode != COMBO_CIO || !dp->cio_prepared || !dp->controller_active ||
!dp->pipe_active || !dp->pipe_tunnel)
return -EBUSY;
Expand Down
Loading