Return-Path: Received: from comal.ext.ti.com ([198.47.26.152]:42930 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752134AbbEDPQz (ORCPT ); Mon, 4 May 2015 11:16:55 -0400 Date: Mon, 4 May 2015 10:15:18 -0500 From: Felipe Balbi To: CC: , , Subject: [PATCH] usb: musb: use new USB_RESUME_TIMEOUT Message-ID: <20150504151518.GA6072@saruman.tx.rr.com> Reply-To: References: <143057249010552@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline In-Reply-To: <143057249010552@kroah.com> Sender: stable-owner@vger.kernel.org List-ID: --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =46rom: Felipe Balbi commit 309be239369609929d5d3833ee043f7c5afc95d1 upstream. Make sure we're using the new macro, so our resume signaling will always pass certification. Based on original work by Bin Liu > Cc: Bin Liu Signed-off-by: Felipe Balbi --- drivers/usb/musb/musb_core.c | 6 ++++-- drivers/usb/musb/musb_virthub.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 07576907e2c6..ec69b90475c7 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -99,6 +99,7 @@ #include #include #include +#include =20 #include "musb_core.h" =20 @@ -477,10 +478,11 @@ static irqreturn_t musb_stage0_irq(struct musb *musb,= u8 int_usb, (USB_PORT_STAT_C_SUSPEND << 16) | MUSB_PORT_STAT_RESUME; musb->rh_timer =3D jiffies - + msecs_to_jiffies(20); + + msecs_to_jiffies(USB_RESUME_TIMEOUT); + schedule_delayed_work( &musb->finish_resume_work, - msecs_to_jiffies(20)); + msecs_to_jiffies(USB_RESUME_TIMEOUT)); =20 musb->xceiv->state =3D OTG_STATE_A_HOST; musb->is_active =3D 1; diff --git a/drivers/usb/musb/musb_virthub.c b/drivers/usb/musb/musb_virthu= b.c index e2d2d8c9891b..0241a3a0d63e 100644 --- a/drivers/usb/musb/musb_virthub.c +++ b/drivers/usb/musb/musb_virthub.c @@ -136,7 +136,7 @@ void musb_port_suspend(struct musb *musb, bool do_suspe= nd) /* later, GetPortStatus will stop RESUME signaling */ musb->port1_status |=3D MUSB_PORT_STAT_RESUME; schedule_delayed_work(&musb->finish_resume_work, - msecs_to_jiffies(20)); + msecs_to_jiffies(USB_RESUME_TIMEOUT)); } } =20 --=20 2.4.0.rc3 --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVR40GAAoJEIaOsuA1yqREH9cP/iiZB5xYz9RtuA/190bHzg3j WeIYfBPmFn2eY591QaIwTIHOtT8jLBklnJ8CglU5di3U3s2XgoZEYgpykGugZQPu LwsE60RurbYc1S6abWWna2qSYdjKfOFC1wRpvVXdL8JemIDb2BmJBE16INhFk0PN 1WLq35G/fRYoCRio3ZLvnOuGCrXleWG8Ogjn+1ISbF9riWb+H7bjkz0CZJ0jU/zV IfqdA/jsQAEX2pBoKUqNoFRZFT1rQ0VQi4NAc4t/0+ipR4Ff62ZywyVf/+F3E7u7 kV3/E9WT2Hm1sxWSagveWcH3omE3ia7dWVMJ+uA96TPAX/0zaO+683GS20nSwBnr uKKlI5Jf4c2X8rGrd3KHwIr8I8Db0Ugq4ylutW5jhE+TJvZRJNCAcoZ99Gnp9zq7 u1qs2HWgUxcL0qrEhWUXNlbTlVnSmKhETT7z8FNQt5jk/C3fAqzBul8uLwpY8a/7 MqvjA+YTDRdxco3hRRKL7aY5gqyYBM16TW/FGEsVSWM0MJthq2E5Ds5H4CY0Eer7 F5VQmOD9wBlCBHWwaU/S8qVjFJZrOAkqJ6WaUoNqmhpbKghZd7hxbUfJYBMRz9Tc GyoCZijYsJ2EU/jI0BmhDaAnLgRx8tTBh9UwbxU3LGaDMgDwkT8qpSHMhzruZg5Q MYxfgfLhjVtwQymEmaY8 =s/i7 -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V--