public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 2/7] arm: usb: dra7xx: xHCI registers based on USB port index
Date: Sun, 19 Feb 2017 16:13:02 +0100	[thread overview]
Message-ID: <2a3d7214-e2ff-4693-b7f5-1d66309eeecd@denx.de> (raw)
In-Reply-To: <8408a876-f527-cfa2-e16b-3b1703cd3d59@compulab.co.il>

On 02/19/2017 03:55 PM, Uri Mashiach wrote:
> 
> 
> On 02/19/2017 04:27 PM, Marek Vasut wrote:
>> On 02/19/2017 02:27 PM, Uri Mashiach wrote:
>>> Modify the determination of the base address of xHCI registers of DRA7XX
>>> targets.
>>> Before the commit: by the target.
>>> After the commit: by the USB port index.
>>>
>>> Cc: Lokesh Vutla <lokeshvutla@ti.com>
>>> Cc: Marek Vasut <marex@denx.de>
>>> Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
>>> ---
>>> V1 -> V2: Replace the commit "fix XHCI registers base address".
>>> V2 -> V3: Replace the commit "reintroduce the CONFIG_AM57XX symbol"
>>>
>>>  configs/dra7xx_evm_defconfig    |  1 +
>>>  configs/dra7xx_hs_evm_defconfig |  1 +
>>>  drivers/usb/host/Kconfig        | 16 ++++++++++++++++
>>>  include/linux/usb/xhci-omap.h   |  6 ++++--
>>>  4 files changed, 22 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig
>>> index 26b26cc..1f47f92 100644
> 
> [...]
> 
>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
>>> index 5129a57..440fbcf 100644
>>> --- a/drivers/usb/host/Kconfig
>>> +++ b/drivers/usb/host/Kconfig
>>> @@ -43,6 +43,22 @@ config USB_XHCI_ZYNQMP
>>>      help
>>>        Enables support for the on-chip xHCI controller on Xilinx
>>> ZynqMP SoCs.
>>>
>>> +choice
>>> +    prompt "DRA7XX xHCI USB index select"
>>> +    depends on DRA7XX
>>> +
>>> +config USB_XHCI_DRA7XX_INDEX0
>>> +    bool "USB0"
>>> +    help
>>> +      DRA7XX xHCI USB0.
>>> +
>>> +config USB_XHCI_DRA7XX_INDEX1
>>> +    bool "USB1"
>>> +    help
>>> +      DRA7XX xHCI USB1.
>>
>> What is this all about ? Shouldn't this come from DT ? And what if I
>> want to use both XHCI ? This looks totally bogus ...
>>
> 
> The support for both XHCI is currently missing.
> This could be a temporary solution until the DT solution.
> The current situation is worse - selecting USB0 or USB1 based on the
> target.

So we're replacing it with equally bad solution ? Hmmm , no.
The MW will open mid-march, there's about a month to fix this,
so please do.


-- 
Best regards,
Marek Vasut

  reply	other threads:[~2017-02-19 15:13 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-19 13:27 [U-Boot] [PATCH v3 0/7] am57xx: cl-som-am57x: fix usb Uri Mashiach
2017-02-19 13:27 ` [U-Boot] [PATCH v3 1/7] arm: dra7xx: move CONFIG_DRA7XX to Kconfig Uri Mashiach
2017-02-19 15:15   ` Tom Rini
2017-02-20  7:18     ` Uri Mashiach
2017-02-20 12:09       ` Tom Rini
2017-02-19 13:27 ` [U-Boot] [PATCH v3 2/7] arm: usb: dra7xx: xHCI registers based on USB port index Uri Mashiach
2017-02-19 14:27   ` Marek Vasut
2017-02-19 14:55     ` Uri Mashiach
2017-02-19 15:13       ` Marek Vasut [this message]
2017-02-19 15:15         ` Tom Rini
2017-02-19 15:52           ` Marek Vasut
2017-02-19 16:31             ` Igor Grinberg
2017-02-19 16:26           ` Igor Grinberg
2017-02-19 17:39             ` Marek Vasut
2017-02-20  7:47               ` Igor Grinberg
2017-02-20  8:28                 ` Marek Vasut
2017-02-22 12:58                   ` Uri Mashiach
2017-02-26 10:13                     ` Marek Vasut
2017-02-20 11:33             ` Roger Quadros
2017-02-19 13:27 ` [U-Boot] [PATCH v3 3/7] usb: host: xhci-omap: fix double weak board_usb_init functions Uri Mashiach
2017-02-19 13:27 ` [U-Boot] [PATCH v3 4/7] arm: am57xx: cl-som-am57x: invoke clock API to enable/disable clocks Uri Mashiach
2017-02-19 13:27 ` [U-Boot] [PATCH v3 5/7] arm: am57xx: cl-som-am57x: fix USB scan Uri Mashiach
2017-02-19 13:27 ` [U-Boot] [PATCH v3 6/7] arm: am57xx: cl-som-am57x: enable USB storage Uri Mashiach
2017-02-19 13:27 ` [U-Boot] [PATCH v3 7/7] arm: am57xx: cl-som-am57x: enable USB commands Uri Mashiach

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=2a3d7214-e2ff-4693-b7f5-1d66309eeecd@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox