[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <67e8fb54-a6b3-f9fe-bbee-7def1a81e191@gmail.com>
Date: Thu, 17 Dec 2020 17:00:33 +0300
From: Dmitry Osipenko <digetx@...il.com>
To: Thierry Reding <thierry.reding@...il.com>
Cc: Jonathan Hunter <jonathanh@...dia.com>,
Peter Chen <Peter.Chen@....com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Alan Stern <stern@...land.harvard.edu>,
Felipe Balbi <balbi@...nel.org>,
Matt Merhar <mattmerhar@...tonmail.com>,
Nicolas Chauvet <kwizart@...il.com>,
Peter Geis <pgwipeout@...il.com>,
Ion Agorria <ion@...rria.com>, linux-tegra@...r.kernel.org,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 4/8] usb: chipidea: tegra: Rename UDC to USB
17.12.2020 16:36, Thierry Reding пишет:
> On Thu, Dec 17, 2020 at 12:40:03PM +0300, Dmitry Osipenko wrote:
>> Rename all occurrences in the code from "udc" to "usb" and change the
>> Kconfig entry in order to show that this driver supports USB modes other
>> than device-only mode. The follow up patch will add host-mode support and
>> it will be cleaner to perform the renaming separately, i.e. in this patch.
>>
>> Tested-by: Matt Merhar <mattmerhar@...tonmail.com>
>> Tested-by: Nicolas Chauvet <kwizart@...il.com>
>> Tested-by: Peter Geis <pgwipeout@...il.com>
>> Tested-by: Ion Agorria <ion@...rria.com>
>> Signed-off-by: Dmitry Osipenko <digetx@...il.com>
>> ---
>> drivers/usb/chipidea/Kconfig | 2 +-
>> drivers/usb/chipidea/ci_hdrc_tegra.c | 78 ++++++++++++++--------------
>> 2 files changed, 40 insertions(+), 40 deletions(-)
>>
>> diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig
>> index 8bafcfc6080d..8685ead6ccc7 100644
>> --- a/drivers/usb/chipidea/Kconfig
>> +++ b/drivers/usb/chipidea/Kconfig
>> @@ -53,7 +53,7 @@ config USB_CHIPIDEA_GENERIC
>> default USB_CHIPIDEA
>>
>> config USB_CHIPIDEA_TEGRA
>> - tristate "Enable Tegra UDC glue driver" if EMBEDDED
>> + tristate "Enable Tegra USB glue driver" if EMBEDDED
>> depends on OF
>> depends on USB_CHIPIDEA_UDC
>> default USB_CHIPIDEA
>> diff --git a/drivers/usb/chipidea/ci_hdrc_tegra.c b/drivers/usb/chipidea/ci_hdrc_tegra.c
>> index 10eaaba2a3f0..d8efa80aa1c2 100644
>> --- a/drivers/usb/chipidea/ci_hdrc_tegra.c
>> +++ b/drivers/usb/chipidea/ci_hdrc_tegra.c
>> @@ -12,7 +12,7 @@
>>
>> #include "ci.h"
>>
>> -struct tegra_udc {
>> +struct tegra_usb {
>> struct ci_hdrc_platform_data data;
>> struct platform_device *dev;
>>
>> @@ -20,15 +20,15 @@ struct tegra_udc {
>> struct clk *clk;
>> };
>>
>> -struct tegra_udc_soc_info {
>> +struct tegra_usb_soc_info {
>> unsigned long flags;
>> };
>>
>> -static const struct tegra_udc_soc_info tegra_udc_soc_info = {
>> +static const struct tegra_usb_soc_info tegra_udc_soc_info = {
>> .flags = CI_HDRC_REQUIRES_ALIGNED_DMA,
>> };
>>
>> -static const struct of_device_id tegra_udc_of_match[] = {
>> +static const struct of_device_id tegra_usb_of_match[] = {
>> {
>> .compatible = "nvidia,tegra20-udc",
>
> Do we perhaps also want to add a new tegra20-usb compatible string here
> and deprecate the old one since this now no longer properly describes
> the device.
Ideally it should have been "tegra20-otg" to match TRM, but UDC is also
okay since it's a part of OTG and kinda presumes the OTG support of USB1
controller for anyone who read the TRM. Hence there is no need to change
the compatible, IMO.
> In either case, this looks fine:
>
> Acked-by: Thierry Reding <treding@...dia.com>
>
thanks
Powered by blists - more mailing lists