From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753080AbcCALlF (ORCPT ); Tue, 1 Mar 2016 06:41:05 -0500 Received: from mga14.intel.com ([192.55.52.115]:26638 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbcCALlD (ORCPT ); Tue, 1 Mar 2016 06:41:03 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,522,1449561600"; d="asc'?scan'208";a="661773719" From: Felipe Balbi To: Maarten ter Huurne Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Maarten ter Huurne Subject: Re: [PATCH] usb: phy: generic: Handle late registration of gadget In-Reply-To: <1456673656-15867-1-git-send-email-maarten@treewalker.org> References: <1456673656-15867-1-git-send-email-maarten@treewalker.org> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/25.0.50.2 (x86_64-pc-linux-gnu) Date: Tue, 01 Mar 2016 13:40:22 +0200 Message-ID: <87wppma0k9.fsf@ti.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-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Maarten ter Huurne writes: > It is possible for the VBUS detect GPIO interrupt to occur before > nop_set_peripheral() is called, in which case otg->gadget is NULL. > > Signed-off-by: Maarten ter Huurne wonder if it would be best to guarantee this doesn't happen in the first place, but I guess that would be too complex anyhow. I'll apply this as is for now. =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJW1X+nAAoJEIaOsuA1yqRERHUP/iO3Tv16Tm5nfQC7/orKaqdl 7xIWsz0yXNfxU6OyKUic7E/J4UqWdMJad8+YOwgMjwAuiAGSgRACjD3wc3lYoPD3 s8hwsbD+fTMvkTFBJnNTrgzBCj/69AiVaQhnmyAa9al1T7RYglO/18XKYjiiByjw 0w5lL4wh9jHkF49DBVufUD6qbm3DZb5J75GcqyoBZaxkWHpVeMxHzGU0ol/xP+RZ Z6PH8CEH1IeLs0OeoaRpI81sR1aPBNxfHS4YkztcegQLkJ8TKqcmBEhVBQqHjJ12 T7hp0vyaZe28jfa12TcCkmW1hxXs3FgSvnOhYJMgpxVZH7/rqXccpNOC9Y/NZ0RX HN14Eai2rX1r+izCnR+aHaxqW7VWZsjzY4HXkpSbsRpuQbEuEcwjArNMKgrQl++n 7+bK5sQIp7ttccQr7Q2ecCyKwqWsZl6qu2qwW7uQeOFcRY/0pBVDfndmfWir4KK+ HQe9ZHzfJd3NkMCSKuf+4CecTSaei4wcG7GriP5Hiy7BwM1FPosci7vQDQdgER4a h5CLX9Z9yvPbPfuj7FC/z3K+ytpLBzjFrdFgPpo5NsHTsKi2ocMdDibVg+6D9E1F YDjXMY3EGZbQPK0NrRbKVweGdxQCt2KbLBycTmO1GwxzD35PNUrymA+HJoPWSPYe fVc9bFdf2/OFhCnqyvsg =PvrQ -----END PGP SIGNATURE----- --=-=-=--