linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejas Joglekar <Tejas.Joglekar@synopsys.com>
To: Sergei Shtylyov <sergei.shtylyov@gmail.com>,
	Tejas Joglekar <Tejas.Joglekar@synopsys.com>,
	Felipe Balbi <balbi@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Cc: John Youn <John.Youn@synopsys.com>
Subject: Re: [PATCH v4 3/3] usb: dwc3: Pass quirk as platform data
Date: Wed, 14 Oct 2020 14:28:04 +0000	[thread overview]
Message-ID: <a6444c5a-c7ff-9437-a2ba-e5a4995a6f2c@synopsys.com> (raw)
In-Reply-To: <29322e22-3b5b-037d-82ba-8e8ac28cd325@gmail.com>

Hi,
On 10/14/2020 2:07 PM, Sergei Shtylyov wrote:
> Hello!
> 
> On 13.10.2020 15:44, Tejas Joglekar wrote:
> 
>> This commit adds the platform device data to setup
>> the XHCI_SG_TRB_CACHE_SIZE_QUIRK quirk. DWC3 hosts
>> which are PCI devices does not use OF to create platform device
>> but create xhci-plat platform device runtime. So
>                                       ^ at
> 
>> this patch allow parent device to supply the quirk
> 
>    Allows.
> 
Noted.
>> through platform data.
>>
>> Signed-off-by: Tejas Joglekar <joglekar@synopsys.com>
>> ---
>>   drivers/usb/dwc3/host.c | 14 ++++++++++++++
>>   1 file changed, 14 insertions(+)
>>
>> diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c
>> index e195176580de..dd7c742333f7 100644
>> --- a/drivers/usb/dwc3/host.c
>> +++ b/drivers/usb/dwc3/host.c
>> @@ -11,6 +11,15 @@
>>   #include <linux/platform_device.h>
>>     #include "core.h"
>> +#include "../host/xhci-plat.h"
>> +
>> +static const struct xhci_plat_priv dwc3_pdata = {
>> +    .plat_start = NULL,
>> +    .init_quirk = NULL,
>> +    .suspend_quirk = NULL,
>> +    .resume_quirk = NULL,
> 
>    Why not rely on the compiler to fill these with zeros?
> 
Sure I will update
>> +    .quirks = XHCI_SG_TRB_CACHE_SIZE_QUIRK,
>> +};
>>     static int dwc3_host_get_irq(struct dwc3 *dwc)
>>   {
> [...]
> 
> MBR, Sergei

Thanks & Regards,
 Tejas Joglekar

      reply	other threads:[~2020-10-14 14:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-13 12:43 [PATCH v4 0/3] Add logic to consolidate TRBs for Synopsys xHC Tejas Joglekar
2020-10-13 12:43 ` [PATCH v4 1/3] usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK Tejas Joglekar
2020-10-13 12:43 ` [PATCH v4 2/3] usb: xhci: Use temporary buffer to consolidate SG Tejas Joglekar
2020-10-13 14:57   ` kernel test robot
2020-10-13 12:44 ` [PATCH v4 3/3] usb: dwc3: Pass quirk as platform data Tejas Joglekar
2020-10-14  8:37   ` Sergei Shtylyov
2020-10-14 14:28     ` Tejas Joglekar [this message]

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=a6444c5a-c7ff-9437-a2ba-e5a4995a6f2c@synopsys.com \
    --to=tejas.joglekar@synopsys.com \
    --cc=John.Youn@synopsys.com \
    --cc=balbi@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sergei.shtylyov@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).