From 6971113e1000d24f7d4975eaa6f8cf2739a4565b Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 15 May 2012 15:43:19 -0700 Subject: [PATCH] USB: serial: sierra: put reset_resume callback back. A few patches ago, I removed the reset_resume callback in this driver. Now that the usb-serial core supports reset_resume, put this driver callback back as well, so it should work identically to how it was originally. Now if this function really is doing what it should be doing, well, that's a different story, but we are at least doing the identical thing that we were before... Cc: Alan Stern Cc: Rusty Russell Cc: Johan Hovold Cc: Anton Samokhvalov Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/sierra.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index ba54a0a8235c..90b985df681b 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c @@ -1039,9 +1039,16 @@ static int sierra_resume(struct usb_serial *serial) return ec ? -EIO : 0; } +static int sierra_reset_resume(struct usb_serial *serial) +{ + dev_err(&serial->dev->dev, "%s\n", __func__); + return usb_serial_resume(serial->interface); +} + #else #define sierra_suspend NULL #define sierra_resume NULL +#define sierra_reset_resume NULL #endif static struct usb_serial_driver sierra_device = { @@ -1065,6 +1072,7 @@ static struct usb_serial_driver sierra_device = { .release = sierra_release, .suspend = sierra_suspend, .resume = sierra_resume, + .reset_resume = sierra_reset_resume, .read_int_callback = sierra_instat_callback, }; -- 2.39.5