Linux USB
 help / color / mirror / Atom feed
From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
To: Frank Li <Frank.Li@nxp.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Felipe Balbi <balbi@kernel.org>,
	Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"imx@lists.linux.dev" <imx@lists.linux.dev>,
	Ran Wang <ran.wang_1@nxp.com>, Jun Li <jun.li@nxp.com>
Subject: Re: [PATCH 0/2] usb: dwc3: Add cache type configuration support for freescale layerscape
Date: Wed, 3 Jul 2024 23:33:23 +0000	[thread overview]
Message-ID: <20240703233310.2oxguahed2g2lknm@synopsys.com> (raw)
In-Reply-To: <20240703-dwc-v1-0-9cbc93d49180@nxp.com>

Hi Frank,

On Wed, Jul 03, 2024, Frank Li wrote:
> There are several attempt to upstream this code in past year.
> 
> The first attempt:
> https://urldefense.com/v3/__https://lore.kernel.org/linux-usb/20191121095356.GB7503@b29397-desktop/__;!!A4F2R9G_pg!cdNydVZ64br9EHG13lgP3lKWe5VuXQvvfvA1CzKJqhXZZB1H9vcJlwI1vj1EF3ynRFl2u8tD3lYqRvrJFSs2$ 
> 
> cache type is dwc core setting, not glue layer. So It'd better change in
> dwc core instead of glue layer code.

Why not glue layer?

> 
> The second attempt:
> https://urldefense.com/v3/__https://lore.kernel.org/linux-usb/20240123170206.3702413-1-Frank.Li@nxp.com/*t__;Iw!!A4F2R9G_pg!cdNydVZ64br9EHG13lgP3lKWe5VuXQvvfvA1CzKJqhXZZB1H9vcJlwI1vj1EF3ynRFl2u8tD3lYqRh7SiHmM$ 
> 
> DT team think there are not variable for property 'snps,dat-wr-reqinfo'.
> And suggest use vendor compatible string.
> 
> This is third attempt:
> Compared with first attempt:
> - reduce compatible string to one 'fsl,ls-dwc3' because all setting are the
> same.
> - move update burst type code into dwc3_set_incr_burst_type(). and check
> compatible string 'fsl,ls-dwc3'.
> - Using bit field help macro.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> Ran Wang (2):
>       dt-bindings: usb: Add chip-specific compatible string 'fsl,ls-dwc3'
>       usb: dwc3: Set cache type to 'snoop' for freescale layerscape chip
> 
>  Documentation/devicetree/bindings/usb/snps,dwc3.yaml |  1 +
>  drivers/usb/dwc3/core.c                              | 12 ++++++++++++
>  drivers/usb/dwc3/core.h                              |  4 ++++
>  3 files changed, 17 insertions(+)
> ---
> base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233
> change-id: 20240703-dwc-5be3e378ddbe
> 
> Best regards,
> ---
> Frank Li <Frank.Li@nxp.com>
> 

This may blow up the dwc3 core from various platforms and compatible
strings. This can be handled in the glue driver and create the software
property instead.

Radhey Shyam is working on this also. You can check his work here:

https://lore.kernel.org/linux-usb/1717657279-2631757-1-git-send-email-radhey.shyam.pandey@amd.com/

Thanks,
Thinh

  parent reply	other threads:[~2024-07-03 23:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-03 23:06 [PATCH 0/2] usb: dwc3: Add cache type configuration support for freescale layerscape Frank Li
2024-07-03 23:06 ` [PATCH 1/2] dt-bindings: usb: Add chip-specific compatible string 'fsl,ls-dwc3' Frank Li
2024-07-04  6:57   ` Conor Dooley
2024-07-03 23:06 ` [PATCH 2/2] usb: dwc3: Set cache type to 'snoop' for freescale layerscape chip Frank Li
2024-07-03 23:33 ` Thinh Nguyen [this message]
2024-07-04 16:00   ` [PATCH 0/2] usb: dwc3: Add cache type configuration support for freescale layerscape Frank Li

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=20240703233310.2oxguahed2g2lknm@synopsys.com \
    --to=thinh.nguyen@synopsys.com \
    --cc=Frank.Li@nxp.com \
    --cc=balbi@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=imx@lists.linux.dev \
    --cc=jun.li@nxp.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=ran.wang_1@nxp.com \
    --cc=robh@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox