From 9e0722d73fb2442051c5771f875e944a180d83c0 Mon Sep 17 00:00:00 2001 From: Erik Bourget Date: Mon, 16 Nov 2026 06:27:29 -0500 Subject: [PATCH 1/2] phy: apple: atc-t6050: the combo PHY's deep-sleep rules on the J716c too For a deep sleep the combo PHY keeps a port's always-on domain while the port is in use, and tells the sleep so, which then leaves that port's always-on USB word on at its last steps; a stop releases a wrapper domain still held, and a safe state with a domain still held is stopped again. These were set up on the J714s only. On the J716c the sleep would lower the always-on word of a port in use, under the dock that sleeps in place. The J716c's ports are the same T6050 ATC ports: apply them there too. Developed with Claude Code. Signed-off-by: Erik Bourget --- drivers/phy/apple/atc-t6050-combo.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/phy/apple/atc-t6050-combo.h b/drivers/phy/apple/atc-t6050-combo.h index ea79f497b979b..7dceb224d2556 100644 --- a/drivers/phy/apple/atc-t6050-combo.h +++ b/drivers/phy/apple/atc-t6050-combo.h @@ -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) From 3ea2343d6bdc9584899241b08412149253fd2560 Mon Sep 17 00:00:00 2001 From: Erik Bourget Date: Sun, 15 Nov 2026 23:52:42 -0500 Subject: [PATCH 2/2] phy: apple: atc-t6050: J716c: the CIO USB step for a router's sleep in place The J716c's right-port USB4 router sleeps in place as the J714s's does. Apply the J714s's CIO USB step, which keeps the tunnelled USB host's pipe over such a sleep, to the J716c too. Developed with Claude Code. Signed-off-by: Erik Bourget --- drivers/phy/apple/atc-t6050-dp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/phy/apple/atc-t6050-dp.c b/drivers/phy/apple/atc-t6050-dp.c index dc6c0776d1faf..d266091a78d0f 100644 --- a/drivers/phy/apple/atc-t6050-dp.c +++ b/drivers/phy/apple/atc-t6050-dp.c @@ -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;