Hi, can somebody with the hardware please test this patch? Regards Oliver -- commit 0a0752fe8ab1af395b1875b4bfb9709791dcdbf0 Author: Oliver Neukum <oneukum@linux-d698.(none)> Date: Thu Jul 2 17:42:21 2009 +0200 usb: added trivial suspend/resume support for cytherm driver diff --git a/drivers/usb/misc/cytherm.c b/drivers/usb/misc/cytherm.c index 4fb3c38..720c9e6 100644 --- a/drivers/usb/misc/cytherm.c +++ b/drivers/usb/misc/cytherm.c @@ -45,13 +45,16 @@ struct usb_cytherm { static int cytherm_probe(struct usb_interface *interface, const struct usb_device_id *id); static void cytherm_disconnect(struct usb_interface *interface); - +static int cytherm_suspend(struct usb_interface *intf, pm_message_t message); +static int cytherm_resume(struct usb_interface *intf); /* usb specific object needed to register this driver with the usb subsystem */ static struct usb_driver cytherm_driver = { .name = "cytherm", .probe = cytherm_probe, .disconnect = cytherm_disconnect, + .suspend = cytherm_suspend, + .resume = cytherm_resume, .id_table = id_table, }; @@ -416,6 +419,16 @@ static void cytherm_disconnect(struct usb_interface *interface) dev_info(&interface->dev, "Cypress thermometer now disconnected\n"); } +/* PM operations are nops as this driver use only synchronous IO */ +static int cytherm_suspend(struct usb_interface *intf, pm_message_t message) +{ + return 0; +} + +static int cytherm_resume(struct usb_interface *intf) +{ + return 0; +} static int __init usb_cytherm_init(void) { -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html