public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] usb: ehci-orion: Extend DMA mask to 64 bit for AC5 platform
@ 2022-10-18 11:34 Vadym Kochan
  2022-10-18 11:57 ` Greg Kroah-Hartman
  2022-10-18 14:35 ` Alan Stern
  0 siblings, 2 replies; 3+ messages in thread
From: Vadym Kochan @ 2022-10-18 11:34 UTC (permalink / raw)
  To: Alan Stern, Greg Kroah-Hartman, linux-usb, linux-kernel
  Cc: Elad Nachman, Vadym Kochan

From: Elad Nachman <enachman@marvell.com>

AC5 is a 64-bit platform so extend the dma mask accordingly.

Checked this mask on armv7 a38x SoC (which has this
USB controller) platform with simple fs ops on the storage device
but on older 4.14 Linux version.

Signed-off-by: Elad Nachman <enachman@marvell.com>
Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>
---
v2:
   Add missing description.

 drivers/usb/host/ehci-orion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c
index a3454a3ea4e0..c6205abebbdf 100644
--- a/drivers/usb/host/ehci-orion.c
+++ b/drivers/usb/host/ehci-orion.c
@@ -230,7 +230,7 @@ static int ehci_orion_drv_probe(struct platform_device *pdev)
 	 * set. Since shared usb code relies on it, set it here for
 	 * now. Once we have dma capability bindings this can go away.
 	 */
-	err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
+	err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
 	if (err)
 		goto err;
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] usb: ehci-orion: Extend DMA mask to 64 bit for AC5 platform
  2022-10-18 11:34 [PATCH v2] usb: ehci-orion: Extend DMA mask to 64 bit for AC5 platform Vadym Kochan
@ 2022-10-18 11:57 ` Greg Kroah-Hartman
  2022-10-18 14:35 ` Alan Stern
  1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2022-10-18 11:57 UTC (permalink / raw)
  To: Vadym Kochan; +Cc: Alan Stern, linux-usb, linux-kernel, Elad Nachman

On Tue, Oct 18, 2022 at 02:34:00PM +0300, Vadym Kochan wrote:
> From: Elad Nachman <enachman@marvell.com>
> 
> AC5 is a 64-bit platform so extend the dma mask accordingly.
> 
> Checked this mask on armv7 a38x SoC (which has this
> USB controller) platform with simple fs ops on the storage device
> but on older 4.14 Linux version.

Odd line-wrapping.

That aside, I have no idea what this changelog text means at all.  What
is 4.14 here for?  Does this fix a specific commit id?  What is being
changed?  Why is it being changed?  What is happening?

confused,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] usb: ehci-orion: Extend DMA mask to 64 bit for AC5 platform
  2022-10-18 11:34 [PATCH v2] usb: ehci-orion: Extend DMA mask to 64 bit for AC5 platform Vadym Kochan
  2022-10-18 11:57 ` Greg Kroah-Hartman
@ 2022-10-18 14:35 ` Alan Stern
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Stern @ 2022-10-18 14:35 UTC (permalink / raw)
  To: Vadym Kochan; +Cc: Greg Kroah-Hartman, linux-usb, linux-kernel, Elad Nachman

On Tue, Oct 18, 2022 at 02:34:00PM +0300, Vadym Kochan wrote:
> From: Elad Nachman <enachman@marvell.com>
> 
> AC5 is a 64-bit platform so extend the dma mask accordingly.
> 
> Checked this mask on armv7 a38x SoC (which has this
> USB controller) platform with simple fs ops on the storage device
> but on older 4.14 Linux version.
> 
> Signed-off-by: Elad Nachman <enachman@marvell.com>
> Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>
> ---
> v2:
>    Add missing description.
> 
>  drivers/usb/host/ehci-orion.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c
> index a3454a3ea4e0..c6205abebbdf 100644
> --- a/drivers/usb/host/ehci-orion.c
> +++ b/drivers/usb/host/ehci-orion.c
> @@ -230,7 +230,7 @@ static int ehci_orion_drv_probe(struct platform_device *pdev)
>  	 * set. Since shared usb code relies on it, set it here for
>  	 * now. Once we have dma capability bindings this can go away.
>  	 */
> -	err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
> +	err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
>  	if (err)
>  		goto err;
>  

NAK.  The description says this changes the DMA mask on AC5 platforms to 
64 bits, but that isn't what the patch actually does.  It changes the 
DMA mask on _all_ platforms using the orion hardware.

Alan Stern

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-18 14:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18 11:34 [PATCH v2] usb: ehci-orion: Extend DMA mask to 64 bit for AC5 platform Vadym Kochan
2022-10-18 11:57 ` Greg Kroah-Hartman
2022-10-18 14:35 ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox