From: Mauro Carvalho Chehab <mchehab@s-opensource.com> To: Arnd Bergmann <arnd@arndb.de> Cc: Stefan Wahren <stefan.wahren@i2se.com>, Felipe Balbi <balbi@kernel.org>, Florian Fainelli <f.fainelli@gmail.com>, John Youn <johnyoun@synopsys.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-usb@vger.kernel.org, Minas Harutyunyan <minas.harutyunyan@synopsys.com>, Kishon Vijay Abraham I <kishon@ti.com>, Eric Anholt <eric@anholt.net>, Linux ARM <linux-arm-kernel@lists.infradead.org>, Hans Verkuil <hans.verkuil@cisco.com> Subject: usb: dwc2: Fix endless deferral probe Date: Fri, 12 Jan 2018 15:51:07 -0200 [thread overview] Message-ID: <20180112155107.39b9d765@vento.lan> (raw) Em Fri, 12 Jan 2018 10:18:59 +0100 Arnd Bergmann <arnd@arndb.de> escreveu: > On Fri, Jan 12, 2018 at 9:06 AM, Stefan Wahren <stefan.wahren@i2se.com> wrote: > > Am 12.01.2018 um 00:32 schrieb Arnd Bergmann: > >> On Wed, Jan 10, 2018 at 1:15 PM, Stefan Wahren <stefan.wahren@i2se.com> > > >> diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c > >> index b4964b067aec..93b55fb71d54 100644 > >> --- a/drivers/phy/phy-core.c > >> +++ b/drivers/phy/phy-core.c > >> @@ -410,6 +410,10 @@ static struct phy *_of_phy_get(struct device_node > >> *np, int index) > >> if (ret) > >> return ERR_PTR(-ENODEV); > >> > >> + /* This phy type handled by the usb-phy subsystem for now */ > >> + if (of_device_is_compatible(np, "usb-nop-xceiv")) > >> + return ERR_PTR(-ENODEV); > >> + > >> mutex_lock(&phy_provider_mutex); > >> phy_provider = of_phy_provider_lookup(args.np); > >> if (IS_ERR(phy_provider) || !try_module_get(phy_provider->owner)) > >> { > > > > > > I tried this, but it doesn't work. "np" is the node of the USB controller, > > not of the phy? > > Correct, that was a really dumb mistake on my end, I'm glad I asked > you to try it first. > > I'll fix it up and send the right version with a proper changelog right away. I suspect you meant to do, instead: (e. g. args.np, instead of np). The above works for me on RPi3: $ uname -a Linux raspberrypi 4.15.0-rc7-mcc+ #28 SMP Fri Jan 12 12:35:19 EST 2018 armv7l GNU/Linux $ lsusb Bus 001 Device 005: ID 045e:0750 Microsoft Corp. Wired Keyboard 600 Bus 001 Device 004: ID 0572:960c Conexant Systems (Rockwell), Inc. DVBSky S960C DVB-S2 tuner Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub So, if you change np -> args.np, feel free to add my: Tested-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Regards, Mauro --- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index b4964b067aec..584cc1469f7d 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -410,6 +410,10 @@ static struct phy *_of_phy_get(struct device_node *np, int index) if (ret) return ERR_PTR(-ENODEV); + /* This phy type handled by the usb-phy subsystem for now */ + if (of_device_is_compatible(args.np, "usb-nop-xceiv")) + return ERR_PTR(-ENODEV); + mutex_lock(&phy_provider_mutex); phy_provider = of_phy_provider_lookup(args.np); if (IS_ERR(phy_provider) || !try_module_get(phy_provider->owner)) {
WARNING: multiple messages have this Message-ID (diff)
From: mchehab@s-opensource.com (Mauro Carvalho Chehab) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] usb: dwc2: Fix endless deferral probe Date: Fri, 12 Jan 2018 15:51:07 -0200 [thread overview] Message-ID: <20180112155107.39b9d765@vento.lan> (raw) In-Reply-To: <CAK8P3a3yZKnBM9gD-0YiHdMuHXUV=11vxGgFsZvQSkbM=B5Mxw@mail.gmail.com> Em Fri, 12 Jan 2018 10:18:59 +0100 Arnd Bergmann <arnd@arndb.de> escreveu: > On Fri, Jan 12, 2018 at 9:06 AM, Stefan Wahren <stefan.wahren@i2se.com> wrote: > > Am 12.01.2018 um 00:32 schrieb Arnd Bergmann: > >> On Wed, Jan 10, 2018 at 1:15 PM, Stefan Wahren <stefan.wahren@i2se.com> > > >> diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c > >> index b4964b067aec..93b55fb71d54 100644 > >> --- a/drivers/phy/phy-core.c > >> +++ b/drivers/phy/phy-core.c > >> @@ -410,6 +410,10 @@ static struct phy *_of_phy_get(struct device_node > >> *np, int index) > >> if (ret) > >> return ERR_PTR(-ENODEV); > >> > >> + /* This phy type handled by the usb-phy subsystem for now */ > >> + if (of_device_is_compatible(np, "usb-nop-xceiv")) > >> + return ERR_PTR(-ENODEV); > >> + > >> mutex_lock(&phy_provider_mutex); > >> phy_provider = of_phy_provider_lookup(args.np); > >> if (IS_ERR(phy_provider) || !try_module_get(phy_provider->owner)) > >> { > > > > > > I tried this, but it doesn't work. "np" is the node of the USB controller, > > not of the phy? > > Correct, that was a really dumb mistake on my end, I'm glad I asked > you to try it first. > > I'll fix it up and send the right version with a proper changelog right away. I suspect you meant to do, instead: diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index b4964b067aec..584cc1469f7d 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -410,6 +410,10 @@ static struct phy *_of_phy_get(struct device_node *np, int index) if (ret) return ERR_PTR(-ENODEV); + /* This phy type handled by the usb-phy subsystem for now */ + if (of_device_is_compatible(args.np, "usb-nop-xceiv")) + return ERR_PTR(-ENODEV); + mutex_lock(&phy_provider_mutex); phy_provider = of_phy_provider_lookup(args.np); if (IS_ERR(phy_provider) || !try_module_get(phy_provider->owner)) { (e. g. args.np, instead of np). The above works for me on RPi3: $ uname -a Linux raspberrypi 4.15.0-rc7-mcc+ #28 SMP Fri Jan 12 12:35:19 EST 2018 armv7l GNU/Linux $ lsusb Bus 001 Device 005: ID 045e:0750 Microsoft Corp. Wired Keyboard 600 Bus 001 Device 004: ID 0572:960c Conexant Systems (Rockwell), Inc. DVBSky S960C DVB-S2 tuner Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub So, if you change np -> args.np, feel free to add my: Tested-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Regards, Mauro
next reply other threads:[~2018-01-12 17:51 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-01-12 17:51 Mauro Carvalho Chehab [this message] 2018-01-12 17:51 ` [PATCH] usb: dwc2: Fix endless deferral probe Mauro Carvalho Chehab -- strict thread matches above, loose matches on Subject: below -- 2018-01-12 19:45 Arnd Bergmann 2018-01-12 19:45 ` [PATCH] " Arnd Bergmann 2018-01-12 9:18 Arnd Bergmann 2018-01-12 9:18 ` [PATCH] " Arnd Bergmann 2018-01-12 8:06 Stefan Wahren 2018-01-12 8:06 ` [PATCH] " Stefan Wahren 2018-01-11 23:32 Arnd Bergmann 2018-01-11 23:32 ` [PATCH] " Arnd Bergmann 2018-01-10 12:15 Stefan Wahren 2018-01-10 12:15 ` [PATCH] " Stefan Wahren 2018-01-09 21:33 Arnd Bergmann 2018-01-09 21:33 ` [PATCH] " Arnd Bergmann 2018-01-09 19:28 Stefan Wahren 2018-01-09 19:28 ` [PATCH] " Stefan Wahren
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180112155107.39b9d765@vento.lan \ --to=mchehab@s-opensource.com \ --cc=arnd@arndb.de \ --cc=balbi@kernel.org \ --cc=eric@anholt.net \ --cc=f.fainelli@gmail.com \ --cc=gregkh@linuxfoundation.org \ --cc=hans.verkuil@cisco.com \ --cc=johnyoun@synopsys.com \ --cc=kishon@ti.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-usb@vger.kernel.org \ --cc=minas.harutyunyan@synopsys.com \ --cc=stefan.wahren@i2se.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.