Skip to content

Commit ce15d6b

Browse files
Radhey Shyam Pandeygregkh
authored andcommitted
usb: misc: onboard_usb_dev: skip suspend/resume sequence for USB5744 SMBus support
USB5744 SMBus initialization is done once in probe() and doing it in resume is not supported so avoid going into suspend and reset the HUB. There is a sysfs property 'always_powered_in_suspend' to implement this feature but since default state should be set to a working configuration so override this property value. It fixes the suspend/resume testcase on Kria KR260 Robotics Starter Kit. Fixes: 6782311 ("usb: misc: onboard_usb_dev: add Microchip usb5744 SMBus programming support") Cc: [email protected] Signed-off-by: Radhey Shyam Pandey <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a48f744 commit ce15d6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/usb/misc/onboard_usb_dev.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,10 @@ static int onboard_dev_probe(struct platform_device *pdev)
407407
}
408408

409409
if (of_device_is_compatible(pdev->dev.of_node, "usb424,2744") ||
410-
of_device_is_compatible(pdev->dev.of_node, "usb424,5744"))
410+
of_device_is_compatible(pdev->dev.of_node, "usb424,5744")) {
411411
err = onboard_dev_5744_i2c_init(client);
412+
onboard_dev->always_powered_in_suspend = true;
413+
}
412414

413415
put_device(&client->dev);
414416
if (err < 0)

0 commit comments

Comments
 (0)