linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] usb: ehci: Fix a function name in comments
@ 2021-09-25 12:49 Cai Huoqing
  2021-09-25 12:49 ` [PATCH 2/3] usb: host: fotg210: " Cai Huoqing
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Cai Huoqing @ 2021-09-25 12:49 UTC (permalink / raw)
  To: caihuoqing; +Cc: Alan Stern, Greg Kroah-Hartman, linux-usb, linux-kernel

Use dma_map_single() instead of pci_map_single(),
because only dma_map_single() is called here.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
 drivers/usb/host/ehci-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 144080321629..3d82e0b853be 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -588,7 +588,7 @@ static int ehci_run (struct usb_hcd *hcd)
 	 * hcc_params controls whether ehci->regs->segment must (!!!)
 	 * be used; it constrains QH/ITD/SITD and QTD locations.
 	 * dma_pool consistent memory always uses segment zero.
-	 * streaming mappings for I/O buffers, like pci_map_single(),
+	 * streaming mappings for I/O buffers, like dma_map_single(),
 	 * can return segments above 4GB, if the device allows.
 	 *
 	 * NOTE:  the dma mask is visible through dev->dma_mask, so
-- 
2.25.1


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

* [PATCH 2/3] usb: host: fotg210: Fix a function name in comments
  2021-09-25 12:49 [PATCH 1/3] usb: ehci: Fix a function name in comments Cai Huoqing
@ 2021-09-25 12:49 ` Cai Huoqing
  2021-09-25 12:49 ` [PATCH 3/3] usb: host: oxu210hp: " Cai Huoqing
  2021-09-25 14:45 ` [PATCH 1/3] usb: ehci: " Alan Stern
  2 siblings, 0 replies; 4+ messages in thread
From: Cai Huoqing @ 2021-09-25 12:49 UTC (permalink / raw)
  To: caihuoqing; +Cc: Alan Stern, Greg Kroah-Hartman, linux-usb, linux-kernel

Use dma_map_single() instead of pci_map_single(),
because only dma_map_single() is called here.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
 drivers/usb/host/fotg210-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
index 4b02ace09f3d..296452625488 100644
--- a/drivers/usb/host/fotg210-hcd.c
+++ b/drivers/usb/host/fotg210-hcd.c
@@ -5023,7 +5023,7 @@ static int fotg210_run(struct usb_hcd *hcd)
 	 * hcc_params controls whether fotg210->regs->segment must (!!!)
 	 * be used; it constrains QH/ITD/SITD and QTD locations.
 	 * dma_pool consistent memory always uses segment zero.
-	 * streaming mappings for I/O buffers, like pci_map_single(),
+	 * streaming mappings for I/O buffers, like dma_map_single(),
 	 * can return segments above 4GB, if the device allows.
 	 *
 	 * NOTE:  the dma mask is visible through dev->dma_mask, so
-- 
2.25.1


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

* [PATCH 3/3] usb: host: oxu210hp: Fix a function name in comments
  2021-09-25 12:49 [PATCH 1/3] usb: ehci: Fix a function name in comments Cai Huoqing
  2021-09-25 12:49 ` [PATCH 2/3] usb: host: fotg210: " Cai Huoqing
@ 2021-09-25 12:49 ` Cai Huoqing
  2021-09-25 14:45 ` [PATCH 1/3] usb: ehci: " Alan Stern
  2 siblings, 0 replies; 4+ messages in thread
From: Cai Huoqing @ 2021-09-25 12:49 UTC (permalink / raw)
  To: caihuoqing; +Cc: Alan Stern, Greg Kroah-Hartman, linux-usb, linux-kernel

Use dma_map_single() instead of pci_map_single(),
because only dma_map_single() is called here.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
 drivers/usb/host/oxu210hp-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c
index 4300326b3730..e82ff2a49672 100644
--- a/drivers/usb/host/oxu210hp-hcd.c
+++ b/drivers/usb/host/oxu210hp-hcd.c
@@ -3131,7 +3131,7 @@ static int oxu_run(struct usb_hcd *hcd)
 	/* hcc_params controls whether oxu->regs->segment must (!!!)
 	 * be used; it constrains QH/ITD/SITD and QTD locations.
 	 * dma_pool consistent memory always uses segment zero.
-	 * streaming mappings for I/O buffers, like pci_map_single(),
+	 * streaming mappings for I/O buffers, like dma_map_single(),
 	 * can return segments above 4GB, if the device allows.
 	 *
 	 * NOTE:  the dma mask is visible through dev->dma_mask, so
-- 
2.25.1


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

* Re: [PATCH 1/3] usb: ehci: Fix a function name in comments
  2021-09-25 12:49 [PATCH 1/3] usb: ehci: Fix a function name in comments Cai Huoqing
  2021-09-25 12:49 ` [PATCH 2/3] usb: host: fotg210: " Cai Huoqing
  2021-09-25 12:49 ` [PATCH 3/3] usb: host: oxu210hp: " Cai Huoqing
@ 2021-09-25 14:45 ` Alan Stern
  2 siblings, 0 replies; 4+ messages in thread
From: Alan Stern @ 2021-09-25 14:45 UTC (permalink / raw)
  To: Cai Huoqing; +Cc: Greg Kroah-Hartman, linux-usb, linux-kernel

On Sat, Sep 25, 2021 at 08:49:17PM +0800, Cai Huoqing wrote:
> Use dma_map_single() instead of pci_map_single(),
> because only dma_map_single() is called here.
> 
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>

Acked-by: Alan Stern <stern@rowland.harvard.edu>

> ---
>  drivers/usb/host/ehci-hcd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
> index 144080321629..3d82e0b853be 100644
> --- a/drivers/usb/host/ehci-hcd.c
> +++ b/drivers/usb/host/ehci-hcd.c
> @@ -588,7 +588,7 @@ static int ehci_run (struct usb_hcd *hcd)
>  	 * hcc_params controls whether ehci->regs->segment must (!!!)
>  	 * be used; it constrains QH/ITD/SITD and QTD locations.
>  	 * dma_pool consistent memory always uses segment zero.
> -	 * streaming mappings for I/O buffers, like pci_map_single(),
> +	 * streaming mappings for I/O buffers, like dma_map_single(),
>  	 * can return segments above 4GB, if the device allows.
>  	 *
>  	 * NOTE:  the dma mask is visible through dev->dma_mask, so
> -- 
> 2.25.1
> 

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

end of thread, other threads:[~2021-09-25 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-25 12:49 [PATCH 1/3] usb: ehci: Fix a function name in comments Cai Huoqing
2021-09-25 12:49 ` [PATCH 2/3] usb: host: fotg210: " Cai Huoqing
2021-09-25 12:49 ` [PATCH 3/3] usb: host: oxu210hp: " Cai Huoqing
2021-09-25 14:45 ` [PATCH 1/3] usb: ehci: " Alan Stern

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).