Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756533AbbLAO0G (ORCPT ); Tue, 1 Dec 2015 09:26:06 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:44594 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755427AbbLAO0E (ORCPT ); Tue, 1 Dec 2015 09:26:04 -0500 From: Felipe Balbi To: Li Jun CC: Peter Chen , Nathan Sullivan , , , Subject: Re: [PATCH V4] usb: remove unnecessary CONFIG_PM dependency from USB_OTG In-Reply-To: <20151201104932.GA23133@shlinux2> References: <1446126743-31892-1-git-send-email-nathan.sullivan@ni.com> <8737wnnq3c.fsf@saruman.tx.rr.com> <20151104030056.GA20460@shlinux2> <87r3k6mngw.fsf@saruman.tx.rr.com> <20151201104932.GA23133@shlinux2> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Tue, 1 Dec 2015 08:25:55 -0600 Message-ID: <87fuzm1c0c.fsf@saruman.tx.rr.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2513 Lines: 64 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Li, Li Jun writes: >> > I am sorry I did not consider the legacy OTG design, this patch should >> > be dropped. >>=20 >> there is no "legacy" OTG design. OTG requires a bus suspend to enter >> HNP, and that's achieved by stopping all transfers and avoid new URB >> submission so usbcore can put the bus in suspend (by means of USB >> autosuspend). If you're bypassing that in the OTG FSM thing, that needs >> to be fixed ASAP as that makes it a lot harder for any generic changes >> in usbcore to be validated. Specially when you consider not many will >> have whatever special HW which, likely, doesn't even work with mainline >> to validate a change. >>=20 >> Please, make sure to fix that design so that HNP *always* goes through >> the proper code path. If you have devices which would prevent HNP >> because their class driver (host side driver) would never autosuspend, >> fix that as well. >>=20 > > Hi Felipe > > I am going to fix this as you suggested, for those interface drivers which > do not support autosuspend, should we > - Fix its driver by enable autosuspend and adding suspend()&resume()? or > - Unbind its interface before autosuspend the usb device? IMO it's best if you could add proper autosuspend device to such drivers. =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWXa30AAoJEIaOsuA1yqREt54P/00fr3cw+cRu7mwc3yrHCoIB GE0NGS1jTaPMp91vV8PZARWRdeEPXz9MiU2n/z0IOPvWz7MlI+w36ojCvme2S7Ve SCHb4yQfHp8a9UKMwDLZzT/BYNv2TaJwEa8TAIQlN1ggUbEttZoZwHECulVvKd6p Hg9y24XkCfHSOuGKSBAApkweFis6UCXWeA/IBmtkni6o9+Q2vGY5UZPgzJQOSlVm 8PNZ1EkniWfJm2xnQMeedauW53EoLOVQf/7LmR6RBAMGMjIrzC0+uiwd8jx3YWyr XzuOhu8jazZq1gZ/o6DBk953aFeTJ+oaGRSVBBPzPnaSmzKm8lQL2orDdbVkT5gC u+Z7wZmcagaBq6s+MCaOMb7dvXydGL+E99N9gqlvVvLRutWgBvzZNgEp4Ktd9f3J uekRrPRfRt7SgCzGLYdZjiRHii2r+OF/8sXHiSu6RZKbl2G/wzkxMIK2eATlZjcj lk34wX23eia0nvc5mk7zd2ivQrZAWF8B6xReNCy3g93GS22P5+lxUmgDlmlVe2/d yQDR+rARaPLzFoA/9vx5d5YP7N0cvzcr2OjuKJfJjfUfqCUbrQEkiVHXqjYMvatn nxMwXzaSbon7g8KXt9uZW9Yo1L1umNutweO2KwuYyNwdpduswVUSGLZMg+byGXJJ Qng4NSqLJSijupcGdCII =n56f -----END PGP SIGNATURE----- --=-=-=-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/