From: Martin Blumenstingl <martin.blumenstingl@googlemail.com> To: Anand Moon <linux.amoon@gmail.com> Cc: Alan Stern <stern@rowland.harvard.edu>, Minas Harutyunyan <hminas@synopsys.com>, Matt Corallo <oc2udbzfd@mattcorallo.com>, Linux USB Mailing List <linux-usb@vger.kernel.org>, linux-amlogic@lists.infradead.org Subject: Re: ODROID-C1/-C2 USB Detection only triggered by some devices Date: Thu, 1 Jul 2021 23:18:44 +0200 [thread overview] Message-ID: <CAFBinCC0nfrnQGmrXJ4FDTuy3RGX_FC8egjVaxhKaOSi9q+xzA@mail.gmail.com> (raw) In-Reply-To: <CANAwSgQadG+A2Tg2Ok5-Nw4i1a2tenABeyQnyTjzJKGHHw+6aA@mail.gmail.com> Hi Anand, On Thu, Jul 1, 2021 at 12:04 PM Anand Moon <linux.amoon@gmail.com> wrote: [...] > I have been trying some reorder code changes with PHY some new DTS > changes both on C1+ and C2. > with my changes I got false positve results. > > So in my debug investigation, it seems that USB reset is not working. > I am attaching my latest code changes so that you could verify at your end. > If we drop the phy_meson8b_usb2_reset(phy) all the USB PHY get initialized. > Note: phy core does not call the .reset callback function on its own > > I have tried crazy ideas with reset API and new approaches, but it seems to fail > and also used the reset-name features, but with no luck at my end. > I wil try to followup on the suggestion shared in this email thread. with your patch USB is not working for me at all on my Odroid-C1+. kernel log extract: ... [ 5.089251] phy phy-c1108800.phy.0: phy poweron failed --> -22 [ 5.096456] dwc2: probe of c9040000.usb failed with error -22 [ 5.102182] dwc2 c90c0000.usb: supply vusb_d not found, using dummy regulator [ 5.108781] dwc2 c90c0000.usb: supply vusb_a not found, using dummy regulator [ 5.117140] phy phy-c1108820.phy.1: Anand you are calling USB reset1 [ 5.121408] phy phy-c1108820.phy.1: Anand you are calling USB reset2 [ 5.131197] dwc2 c90c0000.usb: dwc2_core_reset: HANG! Soft Reset timeout GRSTCTL_CSFTRST [ 5.137163] dwc2: probe of c90c0000.usb failed with error -16 and then: # lsusb # With your patch applied (on top of v5.13) the dwc2 driver does not probe anymore. I suggest we move the discussion about your patch elsewhere so we can focus on getting USB devices detected (again) with the help of Minas and Alan. > I am attaching my usbmon output on Odroid C2. Can you please specifically state the testing steps you have used to obtain that output? This is important so people who are involved in this discussion don't get confused about the results. > On some other note on USB HUB reset. I recollect following series (it > like *mmc_pwrseq*) > [0] https://lore.kernel.org/linux-devicetree/1474342607-27512-1-git-send-email-peter.chen@nxp.com/ this is being replaced by "usb: misc: Add onboard_usb_hub driver" which is currently at version 13: [1] Best regards, Martin [1] https://marc.info/?l=linux-usb&m=162447367404217&w=2
WARNING: multiple messages have this Message-ID (diff)
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com> To: Anand Moon <linux.amoon@gmail.com> Cc: Alan Stern <stern@rowland.harvard.edu>, Minas Harutyunyan <hminas@synopsys.com>, Matt Corallo <oc2udbzfd@mattcorallo.com>, Linux USB Mailing List <linux-usb@vger.kernel.org>, linux-amlogic@lists.infradead.org Subject: Re: ODROID-C1/-C2 USB Detection only triggered by some devices Date: Thu, 1 Jul 2021 23:18:44 +0200 [thread overview] Message-ID: <CAFBinCC0nfrnQGmrXJ4FDTuy3RGX_FC8egjVaxhKaOSi9q+xzA@mail.gmail.com> (raw) In-Reply-To: <CANAwSgQadG+A2Tg2Ok5-Nw4i1a2tenABeyQnyTjzJKGHHw+6aA@mail.gmail.com> Hi Anand, On Thu, Jul 1, 2021 at 12:04 PM Anand Moon <linux.amoon@gmail.com> wrote: [...] > I have been trying some reorder code changes with PHY some new DTS > changes both on C1+ and C2. > with my changes I got false positve results. > > So in my debug investigation, it seems that USB reset is not working. > I am attaching my latest code changes so that you could verify at your end. > If we drop the phy_meson8b_usb2_reset(phy) all the USB PHY get initialized. > Note: phy core does not call the .reset callback function on its own > > I have tried crazy ideas with reset API and new approaches, but it seems to fail > and also used the reset-name features, but with no luck at my end. > I wil try to followup on the suggestion shared in this email thread. with your patch USB is not working for me at all on my Odroid-C1+. kernel log extract: ... [ 5.089251] phy phy-c1108800.phy.0: phy poweron failed --> -22 [ 5.096456] dwc2: probe of c9040000.usb failed with error -22 [ 5.102182] dwc2 c90c0000.usb: supply vusb_d not found, using dummy regulator [ 5.108781] dwc2 c90c0000.usb: supply vusb_a not found, using dummy regulator [ 5.117140] phy phy-c1108820.phy.1: Anand you are calling USB reset1 [ 5.121408] phy phy-c1108820.phy.1: Anand you are calling USB reset2 [ 5.131197] dwc2 c90c0000.usb: dwc2_core_reset: HANG! Soft Reset timeout GRSTCTL_CSFTRST [ 5.137163] dwc2: probe of c90c0000.usb failed with error -16 and then: # lsusb # With your patch applied (on top of v5.13) the dwc2 driver does not probe anymore. I suggest we move the discussion about your patch elsewhere so we can focus on getting USB devices detected (again) with the help of Minas and Alan. > I am attaching my usbmon output on Odroid C2. Can you please specifically state the testing steps you have used to obtain that output? This is important so people who are involved in this discussion don't get confused about the results. > On some other note on USB HUB reset. I recollect following series (it > like *mmc_pwrseq*) > [0] https://lore.kernel.org/linux-devicetree/1474342607-27512-1-git-send-email-peter.chen@nxp.com/ this is being replaced by "usb: misc: Add onboard_usb_hub driver" which is currently at version 13: [1] Best regards, Martin [1] https://marc.info/?l=linux-usb&m=162447367404217&w=2 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2021-07-01 21:18 UTC|newest] Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-28 0:32 ODROID-C1/-C2 USB Detection only triggered by some devices Matt Corallo 2021-06-28 0:32 ` Matt Corallo 2021-06-28 0:58 ` Alan Stern 2021-06-28 0:58 ` Alan Stern 2021-06-28 1:05 ` Matt Corallo 2021-06-28 1:05 ` Matt Corallo 2021-06-28 1:16 ` Alan Stern 2021-06-28 1:16 ` Alan Stern 2021-06-28 1:24 ` Matt Corallo 2021-06-28 1:24 ` Matt Corallo 2021-06-28 14:24 ` Alan Stern 2021-06-28 14:24 ` Alan Stern 2021-06-28 18:37 ` Martin Blumenstingl 2021-06-28 18:37 ` Martin Blumenstingl 2021-06-29 15:05 ` Alan Stern 2021-06-29 15:05 ` Alan Stern 2021-06-29 15:51 ` Martin Blumenstingl 2021-06-29 15:51 ` Martin Blumenstingl 2021-06-29 16:18 ` Alan Stern 2021-06-29 16:18 ` Alan Stern 2021-06-29 16:30 ` Martin Blumenstingl 2021-06-29 16:30 ` Martin Blumenstingl 2021-06-30 0:35 ` Alan Stern 2021-06-30 0:35 ` Alan Stern 2021-07-01 10:03 ` Anand Moon 2021-07-01 10:03 ` Anand Moon 2021-07-01 21:18 ` Martin Blumenstingl [this message] 2021-07-01 21:18 ` Martin Blumenstingl 2021-07-02 19:11 ` Anand Moon 2021-07-02 19:11 ` Anand Moon 2021-07-02 19:33 ` Martin Blumenstingl 2021-07-02 19:33 ` Martin Blumenstingl [not found] ` <CANAwSgQH6HgFQ+xz15AoKhGUF9G18P-cHOVL2FvS_34FrW=bzQ@mail.gmail.com> 2021-07-13 15:41 ` Martin Blumenstingl 2021-07-13 15:41 ` Martin Blumenstingl 2021-06-30 23:09 ` Martin Blumenstingl 2021-06-30 23:09 ` Martin Blumenstingl 2021-07-10 17:07 ` Martin Blumenstingl 2021-07-10 17:07 ` Martin Blumenstingl 2021-07-11 8:15 ` ODROID-C1/-C2 USB Detection only triggered by some devices dwc2 Minas Harutyunyan 2021-07-11 8:15 ` Minas Harutyunyan 2021-07-11 17:56 ` Martin Blumenstingl 2021-07-12 6:42 ` Minas Harutyunyan 2021-07-12 6:42 ` Minas Harutyunyan 2021-07-12 11:35 ` Martin Blumenstingl 2021-07-12 11:35 ` Martin Blumenstingl 2021-07-14 15:27 ` Minas Harutyunyan 2021-07-14 15:27 ` Minas Harutyunyan 2021-07-14 23:16 ` Martin Blumenstingl 2021-07-14 23:16 ` Martin Blumenstingl 2021-07-15 1:44 ` Alan Stern 2021-07-15 1:44 ` Alan Stern 2021-07-15 2:04 ` Alan Stern 2021-07-15 2:04 ` Alan Stern 2021-07-18 21:24 ` Martin Blumenstingl 2021-07-18 21:24 ` Martin Blumenstingl 2021-07-19 14:53 ` Alan Stern 2021-07-19 14:53 ` Alan Stern 2021-07-19 15:03 ` Alan Stern 2021-07-19 15:03 ` Alan Stern 2021-07-20 21:55 ` Martin Blumenstingl 2021-07-20 21:55 ` Martin Blumenstingl 2021-07-21 15:58 ` Alan Stern 2021-07-21 15:58 ` Alan Stern 2021-08-03 20:20 ` Martin Blumenstingl 2021-08-03 20:20 ` Martin Blumenstingl 2021-08-03 21:32 ` Alan Stern 2021-08-03 21:32 ` Alan Stern 2021-12-12 16:08 ` Martin Blumenstingl 2021-12-12 16:08 ` Martin Blumenstingl 2022-01-10 22:05 ` Martin Blumenstingl 2022-01-10 22:05 ` Martin Blumenstingl
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=CAFBinCC0nfrnQGmrXJ4FDTuy3RGX_FC8egjVaxhKaOSi9q+xzA@mail.gmail.com \ --to=martin.blumenstingl@googlemail.com \ --cc=hminas@synopsys.com \ --cc=linux-amlogic@lists.infradead.org \ --cc=linux-usb@vger.kernel.org \ --cc=linux.amoon@gmail.com \ --cc=oc2udbzfd@mattcorallo.com \ --cc=stern@rowland.harvard.edu \ /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.