mbox series

[0/3] Fix OMAP EHCI probe & assorted cleanups

Message ID 20180911150610.27510-1-laurent.pinchart@ideasonboard.com (mailing list archive)
Headers show
Series Fix OMAP EHCI probe & assorted cleanups | expand

Message

Laurent Pinchart Sept. 11, 2018, 3:06 p.m. UTC
Hello,

This series fixes a v4.19-rc1 regression that results in OMAP EHCI failing to
probe (patch 1/3) and then moves on to cleaning up related code (patches 2/3
and 3/3).

The first patch is a regression fix and should thus be merged before v4.19.
The other two patches can wait until v4.20.

Tony, as patch 1/3 fixes a problem introduced by one of your DT changes, could
you please review it ? Out of curiosity, is ethernet on the Pandaboard not
part of your regression tests ?

Lee, could you then please make sure the patch gets to mainline before v4.19
final ?

Laurent Pinchart (3):
  mfd: omap-usb-host: Use regular platform device probe mechanism
  ARM: OMAP2+: Remove legacy USB initialization code
  mfd: omap-usb-host: Drop support for non-DT probe

 arch/arm/mach-omap2/common.h            |   2 -
 arch/arm/mach-omap2/omap_phy_internal.c |  96 +-----------------
 arch/arm/mach-omap2/usb.h               |  71 -------------
 drivers/mfd/omap-usb-host.c             | 175 +++-----------------------------
 include/linux/platform_data/usb-omap.h  |   4 -
 5 files changed, 18 insertions(+), 330 deletions(-)
 delete mode 100644 arch/arm/mach-omap2/usb.h

Comments

Tony Lindgren Sept. 11, 2018, 3:16 p.m. UTC | #1
* Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 15:10]:
> Hello,
> 
> This series fixes a v4.19-rc1 regression that results in OMAP EHCI failing to
> probe (patch 1/3) and then moves on to cleaning up related code (patches 2/3
> and 3/3).
> 
> The first patch is a regression fix and should thus be merged before v4.19.
> The other two patches can wait until v4.20.

Hmm can you please check again with this patch applied:

"[PATCH] mfd: omap-usb-host: Fix dts probe of children"

That was supposed to be queued for v4.18 but fell through the
cracks and I only recently noticed it but Lee has it tagged
now for v4.19-rc series.

But maybe there are additional issues..

> Tony, as patch 1/3 fixes a problem introduced by one of your DT changes, could
> you please review it ? Out of curiosity, is ethernet on the Pandaboard not
> part of your regression tests ?

Sorry not any longer.. I've switched over to wlan based
setup for PM testing:

1. u-boot downloads kernel dtb and modules.tar.gz and writes
   modules.tar.gz to MMC card

2. on kernel boot, first modules.tar.gz is unpacked

3. distro brings up wlan but no USB ether

So I can now test also PM on pandaboard-es. I do have ohci
enabled on droid4 though for mdm6600 modem, but usually have
ehci disabled as the w3glte modem on ehci does not yet work
with mainline kernel.

> Lee, could you then please make sure the patch gets to mainline before v4.19
> final ?

Let's first check what all is needed, I'll test here too.

Regards,

Tony
Tony Lindgren Sept. 11, 2018, 3:51 p.m. UTC | #2
* Tony Lindgren <tony@atomide.com> [180911 15:21]:
> * Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 15:10]:
> > Tony, as patch 1/3 fixes a problem introduced by one of your DT changes, could
> > you please review it ? Out of curiosity, is ethernet on the Pandaboard not
> > part of your regression tests ?
> 
> Sorry not any longer.. I've switched over to wlan based
> setup for PM testing:
> 
> 1. u-boot downloads kernel dtb and modules.tar.gz and writes
>    modules.tar.gz to MMC card

To clarify, u-boot downloads kernel, dtb and modules.tar.gz
over USB Ethernet and writes modules.tar.gz to MMC card.

> 2. on kernel boot, first modules.tar.gz is unpacked
> 
> 3. distro brings up wlan but no USB ether
> 
> So I can now test also PM on pandaboard-es. I do have ohci
> enabled on droid4 though for mdm6600 modem, but usually have
> ehci disabled as the w3glte modem on ehci does not yet work
> with mainline kernel.
> 
> > Lee, could you then please make sure the patch gets to mainline before v4.19
> > final ?
> 
> Let's first check what all is needed, I'll test here too.

Yup with "[PATCH] mfd: omap-usb-host: Fix dts probe of children"
usb Ethernet works just fine for me with v4.19-rc3.

So it seems that then Lauren't changes can be done as nice
clean-up for v4.20.

Regards,

Tony
Laurent Pinchart Sept. 11, 2018, 4:08 p.m. UTC | #3
Hi Tony,

On Tuesday, 11 September 2018 18:16:41 EEST Tony Lindgren wrote:
> * Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 15:10]:
> > Hello,
> > 
> > This series fixes a v4.19-rc1 regression that results in OMAP EHCI failing
> > to probe (patch 1/3) and then moves on to cleaning up related code
> > (patches 2/3 and 3/3).
> > 
> > The first patch is a regression fix and should thus be merged before
> > v4.19. The other two patches can wait until v4.20.
> 
> Hmm can you please check again with this patch applied:
> 
> "[PATCH] mfd: omap-usb-host: Fix dts probe of children"

This fixes the issue for me.

Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> That was supposed to be queued for v4.18 but fell through the
> cracks and I only recently noticed it but Lee has it tagged
> now for v4.19-rc series.
> 
> But maybe there are additional issues..

I think we can go one step further and avoid using fs_initcall, but that can 
wait for v4.20. What's your opinion on that ? If you agree I'll resubmit this 
series rebased on top of the aforementioned patch.

> > Tony, as patch 1/3 fixes a problem introduced by one of your DT changes,
> > could you please review it ? Out of curiosity, is ethernet on the
> > Pandaboard not part of your regression tests ?
> 
> Sorry not any longer.. I've switched over to wlan based
> setup for PM testing:
> 
> 1. u-boot downloads kernel dtb and modules.tar.gz and writes
>    modules.tar.gz to MMC card
> 
> 2. on kernel boot, first modules.tar.gz is unpacked
> 
> 3. distro brings up wlan but no USB ether
> 
> So I can now test also PM on pandaboard-es. I do have ohci
> enabled on droid4 though for mdm6600 modem, but usually have
> ehci disabled as the w3glte modem on ehci does not yet work
> with mainline kernel.

:-/ If you have a test script that analyzes the kernel log, it would be useful 
to add a check to verify that the USB ethernet interface chip is detected. 
That would prevent the regression we're seeing here.

> > Lee, could you then please make sure the patch gets to mainline before
> > v4.19 final ?
> 
> Let's first check what all is needed, I'll test here too.
Tony Lindgren Sept. 11, 2018, 4:25 p.m. UTC | #4
* Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 16:12]:
> On Tuesday, 11 September 2018 18:16:41 EEST Tony Lindgren wrote:
> > * Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 15:10]:
> > > Hello,
> > > 
> > > This series fixes a v4.19-rc1 regression that results in OMAP EHCI failing
> > > to probe (patch 1/3) and then moves on to cleaning up related code
> > > (patches 2/3 and 3/3).
> > > 
> > > The first patch is a regression fix and should thus be merged before
> > > v4.19. The other two patches can wait until v4.20.
> > 
> > Hmm can you please check again with this patch applied:
> > 
> > "[PATCH] mfd: omap-usb-host: Fix dts probe of children"
> 
> This fixes the issue for me.
> 
> Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

OK good to hear.

> > That was supposed to be queued for v4.18 but fell through the
> > cracks and I only recently noticed it but Lee has it tagged
> > now for v4.19-rc series.
> > 
> > But maybe there are additional issues..
> 
> I think we can go one step further and avoid using fs_initcall, but that can 
> wait for v4.20. What's your opinion on that ? If you agree I'll resubmit this 
> series rebased on top of the aforementioned patch.

Yes sounds good to me. Actually with ti-sysc we're probing the
interconnect target modules at module_init time, so any children
will only get probed after that and the fs_initcall is not
doing anything before that mhuwhaaaahaa.

But yeah hopefully the fs_initcall is no longer needed with
device tree based booting even before we have all the dts
files using ti-sysc.

> > > Tony, as patch 1/3 fixes a problem introduced by one of your DT changes,
> > > could you please review it ? Out of curiosity, is ethernet on the
> > > Pandaboard not part of your regression tests ?
> > 
> > Sorry not any longer.. I've switched over to wlan based
> > setup for PM testing:
> > 
> > 1. u-boot downloads kernel dtb and modules.tar.gz and writes
> >    modules.tar.gz to MMC card
> > 
> > 2. on kernel boot, first modules.tar.gz is unpacked
> > 
> > 3. distro brings up wlan but no USB ether
> > 
> > So I can now test also PM on pandaboard-es. I do have ohci
> > enabled on droid4 though for mdm6600 modem, but usually have
> > ehci disabled as the w3glte modem on ehci does not yet work
> > with mainline kernel.
> 
> :-/ If you have a test script that analyzes the kernel log, it would be useful 
> to add a check to verify that the USB ethernet interface chip is detected. 
> That would prevent the regression we're seeing here.

Yeah sorry about the regression.

Hrm well it goes back to the droid4 lcd patches again that I've
been carrying along :) I did not notice this was still pending
too buried into the pile I was carrying until recently.. The
original fix was already sent back in April.

I in fact worked all summer using Linux next (working) snapshots
on droid4 with a lapdock over ssh and mdm6600 modem on it's ohci
bus being my main connection. So the *hci is getting tested by
real use in this case, no need to analyze kernel logs unless
something goes wrong.

Regards,

Tony
Laurent Pinchart Sept. 23, 2018, 2:46 p.m. UTC | #5
Hi Tony,

On Tuesday, 11 September 2018 19:25:38 EEST Tony Lindgren wrote:
> * Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 16:12]:
> > On Tuesday, 11 September 2018 18:16:41 EEST Tony Lindgren wrote:
> >> * Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 15:10]:
> >>> Hello,
> >>> 
> >>> This series fixes a v4.19-rc1 regression that results in OMAP EHCI
> >>> failing to probe (patch 1/3) and then moves on to cleaning up related
> >>> code (patches 2/3 and 3/3).
> >>> 
> >>> The first patch is a regression fix and should thus be merged before
> >>> v4.19. The other two patches can wait until v4.20.
> >> 
> >> Hmm can you please check again with this patch applied:
> >> 
> >> "[PATCH] mfd: omap-usb-host: Fix dts probe of children"
> > 
> > This fixes the issue for me.
> > 
> > Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
> OK good to hear.

The fix is still not in v4.19-rc4 :-S Could you make sure it doesn't miss 
v4.19 ?

> >> That was supposed to be queued for v4.18 but fell through the
> >> cracks and I only recently noticed it but Lee has it tagged
> >> now for v4.19-rc series.
> >> 
> >> But maybe there are additional issues..
> > 
> > I think we can go one step further and avoid using fs_initcall, but that
> > can wait for v4.20. What's your opinion on that ? If you agree I'll
> > resubmit this series rebased on top of the aforementioned patch.
> 
> Yes sounds good to me. Actually with ti-sysc we're probing the
> interconnect target modules at module_init time, so any children
> will only get probed after that and the fs_initcall is not
> doing anything before that mhuwhaaaahaa.
> 
> But yeah hopefully the fs_initcall is no longer needed with
> device tree based booting even before we have all the dts
> files using ti-sysc.
> 
> >>> Tony, as patch 1/3 fixes a problem introduced by one of your DT
> >>> changes,
> >>> could you please review it ? Out of curiosity, is ethernet on the
> >>> Pandaboard not part of your regression tests ?
> >> 
> >> Sorry not any longer.. I've switched over to wlan based
> >> setup for PM testing:
> >> 
> >> 1. u-boot downloads kernel dtb and modules.tar.gz and writes
> >>    modules.tar.gz to MMC card
> >> 
> >> 2. on kernel boot, first modules.tar.gz is unpacked
> >> 
> >> 3. distro brings up wlan but no USB ether
> >> 
> >> So I can now test also PM on pandaboard-es. I do have ohci
> >> enabled on droid4 though for mdm6600 modem, but usually have
> >> ehci disabled as the w3glte modem on ehci does not yet work
> >> with mainline kernel.
> >
> > :-/ If you have a test script that analyzes the kernel log, it would be
> > useful to add a check to verify that the USB ethernet interface chip is
> > detected. That would prevent the regression we're seeing here.
> 
> Yeah sorry about the regression.
> 
> Hrm well it goes back to the droid4 lcd patches again that I've
> been carrying along :) I did not notice this was still pending
> too buried into the pile I was carrying until recently.. The
> original fix was already sent back in April.
> 
> I in fact worked all summer using Linux next (working) snapshots
> on droid4 with a lapdock over ssh and mdm6600 modem on it's ohci
> bus being my main connection. So the *hci is getting tested by
> real use in this case, no need to analyze kernel logs unless
> something goes wrong.
Lee Jones Sept. 23, 2018, 2:56 p.m. UTC | #6
On Sun, 23 Sep 2018, Laurent Pinchart wrote:

> Hi Tony,
> 
> On Tuesday, 11 September 2018 19:25:38 EEST Tony Lindgren wrote:
> > * Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 16:12]:
> > > On Tuesday, 11 September 2018 18:16:41 EEST Tony Lindgren wrote:
> > >> * Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 15:10]:
> > >>> Hello,
> > >>> 
> > >>> This series fixes a v4.19-rc1 regression that results in OMAP EHCI
> > >>> failing to probe (patch 1/3) and then moves on to cleaning up related
> > >>> code (patches 2/3 and 3/3).
> > >>> 
> > >>> The first patch is a regression fix and should thus be merged before
> > >>> v4.19. The other two patches can wait until v4.20.
> > >> 
> > >> Hmm can you please check again with this patch applied:
> > >> 
> > >> "[PATCH] mfd: omap-usb-host: Fix dts probe of children"
> > > 
> > > This fixes the issue for me.
> > > 
> > > Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > 
> > OK good to hear.
> 
> The fix is still not in v4.19-rc4 :-S Could you make sure it doesn't miss 
> v4.19 ?

I'm going to send these today:

  mfd: omap-usb-host: Fix dts probe of children
  mfd: da9063: Fix DT probing with constraints
Lee Jones Sept. 23, 2018, 3:38 p.m. UTC | #7
On Sun, 23 Sep 2018, Lee Jones wrote:

> On Sun, 23 Sep 2018, Laurent Pinchart wrote:
> 
> > Hi Tony,
> > 
> > On Tuesday, 11 September 2018 19:25:38 EEST Tony Lindgren wrote:
> > > * Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 16:12]:
> > > > On Tuesday, 11 September 2018 18:16:41 EEST Tony Lindgren wrote:
> > > >> * Laurent Pinchart <laurent.pinchart@ideasonboard.com> [180911 15:10]:
> > > >>> Hello,
> > > >>> 
> > > >>> This series fixes a v4.19-rc1 regression that results in OMAP EHCI
> > > >>> failing to probe (patch 1/3) and then moves on to cleaning up related
> > > >>> code (patches 2/3 and 3/3).
> > > >>> 
> > > >>> The first patch is a regression fix and should thus be merged before
> > > >>> v4.19. The other two patches can wait until v4.20.
> > > >> 
> > > >> Hmm can you please check again with this patch applied:
> > > >> 
> > > >> "[PATCH] mfd: omap-usb-host: Fix dts probe of children"
> > > > 
> > > > This fixes the issue for me.
> > > > 
> > > > Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > 
> > > OK good to hear.
> > 
> > The fix is still not in v4.19-rc4 :-S Could you make sure it doesn't miss 
> > v4.19 ?
> 
> I'm going to send these today:
> 
>   mfd: omap-usb-host: Fix dts probe of children
>   mfd: da9063: Fix DT probing with constraints

Greg just pulled.
Laurent Pinchart Sept. 23, 2018, 10:26 p.m. UTC | #8
Hi Lee,

On Sunday, 23 September 2018 18:38:28 EEST Lee Jones wrote:
> On Sun, 23 Sep 2018, Lee Jones wrote:
> > On Sun, 23 Sep 2018, Laurent Pinchart wrote:
> >> On Tuesday, 11 September 2018 19:25:38 EEST Tony Lindgren wrote:
> >>> * Laurent Pinchart [180911 16:12]:
> >>>> On Tuesday, 11 September 2018 18:16:41 EEST Tony Lindgren wrote:
> >>>>> * Laurent Pinchart [180911 15:10]:
> >>>>>> Hello,
> >>>>>> 
> >>>>>> This series fixes a v4.19-rc1 regression that results in OMAP EHCI
> >>>>>> failing to probe (patch 1/3) and then moves on to cleaning up
> >>>>>> related code (patches 2/3 and 3/3).
> >>>>>> 
> >>>>>> The first patch is a regression fix and should thus be merged
> >>>>>> before v4.19. The other two patches can wait until v4.20.
> >>>>> 
> >>>>> Hmm can you please check again with this patch applied:
> >>>>> 
> >>>>> "[PATCH] mfd: omap-usb-host: Fix dts probe of children"
> >>>> 
> >>>> This fixes the issue for me.
> >>> 
> >>>> Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >>> 
> >>> OK good to hear.
> >> 
> >> The fix is still not in v4.19-rc4 :-S Could you make sure it doesn't
> >> miss v4.19 ?
> > 
> > I'm going to send these today:
> >   mfd: omap-usb-host: Fix dts probe of children
> >   mfd: da9063: Fix DT probing with constraints
> 
> Greg just pulled.

Thank you, much appreciated.