All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Bin Meng <bmeng.cn@gmail.com>
Cc: Samuel Holland <samuel@sholland.org>,
	Jagan Teki <jagan@amarulasolutions.com>,
	Andre Przywara <andre.przywara@arm.com>,
	Andre Heider <a.heider@gmail.com>,
	Icenowy Zheng <icenowy@aosc.io>, Simon Glass <sjg@chromium.org>,
	Kever Yang <kever.yang@rock-chips.com>,
	Chen-Yu Tsai <wens@csie.org>, Maxime Ripard <mripard@kernel.org>,
	U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: [PATCH v2 2/4] usb: xhci-pci: Move reset logic out of XHCI core
Date: Mon, 5 Jul 2021 11:20:31 +0200	[thread overview]
Message-ID: <c53f23c3-1ef2-2af1-0a4b-b33f6543c77b@denx.de> (raw)
In-Reply-To: <CAEUhbmX-yeYMDKYLU9vd3Kz2BmsDsASU7GLJ9=uzQY7jaEiOtg@mail.gmail.com>

On 7/5/21 10:38 AM, Bin Meng wrote:
> On Mon, Jul 5, 2021 at 4:19 PM Marek Vasut <marex@denx.de> wrote:
>>
>> On 7/5/21 10:04 AM, Bin Meng wrote:
>>> On Sat, Apr 17, 2021 at 10:21 PM Samuel Holland <samuel@sholland.org> wrote:
>>>>
>>>> Resetting an XHCI controller inside xhci_register undoes any register
>>>> setup performed by the platform driver. And at least on the Allwinner
>>>> H6, resetting the XHCI controller also resets the PHY, which prevents
>>>> the controller from working. That means the controller must be taken out
>>>> of reset before initializing the PHY, which must be done before calling
>>>> xhci_register.
>>>>
>>>> The logic in the XHCI core was added to support the Raspberry Pi 4
>>>> (although this was not mentioned in the commit log!), which uses the
>>>> xhci-pci platform driver. Move the reset logic to the platform driver,
>>>> where it belongs, and where it cannot interfere with other platform
>>>> drivers.
>>>>
>>>> This also fixes a failure to call reset_free if xhci_register failed.
>>>>
>>>> Fixes: 0b80371b350e ("usb: xhci: Add reset controller support")
>>>> Signed-off-by: Samuel Holland <samuel@sholland.org>
>>>> ---
>>>>    drivers/usb/host/xhci-mem.c |  2 --
>>>>    drivers/usb/host/xhci-pci.c | 51 ++++++++++++++++++++++++++++++++++---
>>>>    drivers/usb/host/xhci.c     | 35 -------------------------
>>>>    include/usb/xhci.h          |  2 --
>>>>    4 files changed, 47 insertions(+), 43 deletions(-)
>>>>
>>>
>>> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
>>
>> So shall we apply this whole thing for 2021.10 ?
> 
> Yes. Andre wanted to get this in 2021.07 which is too late.

Applied to usb/next, thanks

  parent reply	other threads:[~2021-07-05  9:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-17 14:20 [PATCH v2 0/4] Allwinner H6 USB3 support Samuel Holland
2021-04-17 14:20 ` [PATCH v2 1/4] phy: sun50i-usb3: Add a driver for the H6 USB3 PHY Samuel Holland
2021-04-17 14:20 ` [PATCH v2 2/4] usb: xhci-pci: Move reset logic out of XHCI core Samuel Holland
2021-04-21 10:36   ` Andre Przywara
2021-04-21 13:36     ` Samuel Holland
2021-04-21 14:58       ` Andre Przywara
2021-07-05  8:04   ` Bin Meng
2021-07-05  8:19     ` Marek Vasut
2021-07-05  8:38       ` Bin Meng
2021-07-05  9:06         ` Andre Przywara
2021-07-05  9:18           ` Bin Meng
2021-07-05 10:45             ` Marek Vasut
2021-07-05 12:12               ` Andre Przywara
2021-07-05  9:20         ` Marek Vasut [this message]
2021-04-17 14:20 ` [PATCH v2 3/4] usb: xhci-dwc3: Add support for clocks/resets Samuel Holland
2021-04-21 10:37   ` Andre Przywara
2021-04-17 14:20 ` [PATCH v2 4/4] configs: Enable USB3 on Allwinner H6 boards Samuel Holland
2021-04-21 10:37   ` Andre Przywara
2021-04-21 10:43 ` [PATCH v2 0/4] Allwinner H6 USB3 support Andre Przywara
2021-04-21 10:53   ` Marek Vasut
2021-07-04 23:09     ` Andre Przywara
2021-07-05  1:18       ` Bin Meng

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=c53f23c3-1ef2-2af1-0a4b-b33f6543c77b@denx.de \
    --to=marex@denx.de \
    --cc=a.heider@gmail.com \
    --cc=andre.przywara@arm.com \
    --cc=bmeng.cn@gmail.com \
    --cc=icenowy@aosc.io \
    --cc=jagan@amarulasolutions.com \
    --cc=kever.yang@rock-chips.com \
    --cc=mripard@kernel.org \
    --cc=samuel@sholland.org \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    --cc=wens@csie.org \
    /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: link
Be 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.