* [PATCH] Documentation: DMA-API: fix a function name of max_mapping_size
@ 2019-06-07 7:47 Yoshihiro Shimoda
2019-06-07 8:08 ` Christoph Hellwig
2019-06-07 17:10 ` Jonathan Corbet
0 siblings, 2 replies; 6+ messages in thread
From: Yoshihiro Shimoda @ 2019-06-07 7:47 UTC (permalink / raw)
To: corbet; +Cc: jroedel, linux-doc, iommu, hch
The exported function name is dma_max_mapping_size(), not
dma_direct_max_mapping_size() so that this patch fixes
the function name in the documentation.
Fixes: 133d624b1cee ("dma: Introduce dma_max_mapping_size()")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
Documentation/DMA-API.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/DMA-API.txt b/Documentation/DMA-API.txt
index 0076150..e47c63b 100644
--- a/Documentation/DMA-API.txt
+++ b/Documentation/DMA-API.txt
@@ -198,7 +198,7 @@ call to set the mask to the value returned.
::
size_t
- dma_direct_max_mapping_size(struct device *dev);
+ dma_max_mapping_size(struct device *dev);
Returns the maximum size of a mapping for the device. The size parameter
of the mapping functions like dma_map_single(), dma_map_page() and
--
2.7.4
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] Documentation: DMA-API: fix a function name of max_mapping_size
2019-06-07 7:47 [PATCH] Documentation: DMA-API: fix a function name of max_mapping_size Yoshihiro Shimoda
@ 2019-06-07 8:08 ` Christoph Hellwig
2019-06-07 8:19 ` Yoshihiro Shimoda
2019-06-07 17:10 ` Jonathan Corbet
1 sibling, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2019-06-07 8:08 UTC (permalink / raw)
To: Yoshihiro Shimoda; +Cc: jroedel, linux-doc, corbet, iommu, hch
Looks good. And it seems like you've also found the solution to
your usb storage problem, but I'm going to post the variant I just
hacked up nevertheless.
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] Documentation: DMA-API: fix a function name of max_mapping_size
2019-06-07 8:08 ` Christoph Hellwig
@ 2019-06-07 8:19 ` Yoshihiro Shimoda
2019-06-07 8:34 ` Christoph Hellwig
0 siblings, 1 reply; 6+ messages in thread
From: Yoshihiro Shimoda @ 2019-06-07 8:19 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: iommu, jroedel, linux-doc, corbet
Hi Christoph,
> From: Christoph Hellwig, Sent: Friday, June 7, 2019 5:08 PM
>
> Looks good. And it seems like you've also found the solution to
> your usb storage problem, but I'm going to post the variant I just
> hacked up nevertheless.
Thank you for your reply! I think this API is related to my problem,
but I don't have any actual solution (a patch) for now. So, I'll wait
for your patch!
Best regards,
Yoshihiro Shimoda
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Documentation: DMA-API: fix a function name of max_mapping_size
2019-06-07 8:19 ` Yoshihiro Shimoda
@ 2019-06-07 8:34 ` Christoph Hellwig
2019-06-07 12:04 ` Yoshihiro Shimoda
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2019-06-07 8:34 UTC (permalink / raw)
To: Yoshihiro Shimoda; +Cc: jroedel, linux-doc, corbet, iommu, Christoph Hellwig
On Fri, Jun 07, 2019 at 08:19:08AM +0000, Yoshihiro Shimoda wrote:
> Hi Christoph,
>
> > From: Christoph Hellwig, Sent: Friday, June 7, 2019 5:08 PM
> >
> > Looks good. And it seems like you've also found the solution to
> > your usb storage problem, but I'm going to post the variant I just
> > hacked up nevertheless.
>
> Thank you for your reply! I think this API is related to my problem,
> but I don't have any actual solution (a patch) for now. So, I'll wait
> for your patch!
Turns out it isn't as simple as I thought, as there doesn't seem to
be an easy way to get to the struct device used for DMA mapping
from USB drivers. I'll need to think a bit more how to handle that
best.
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] Documentation: DMA-API: fix a function name of max_mapping_size
2019-06-07 8:34 ` Christoph Hellwig
@ 2019-06-07 12:04 ` Yoshihiro Shimoda
0 siblings, 0 replies; 6+ messages in thread
From: Yoshihiro Shimoda @ 2019-06-07 12:04 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: iommu, jroedel, linux-doc, corbet
Hi Christoph,
> From: Christoph Hellwig, Sent: Friday, June 7, 2019 5:35 PM
>
> On Fri, Jun 07, 2019 at 08:19:08AM +0000, Yoshihiro Shimoda wrote:
> > Hi Christoph,
> >
> > > From: Christoph Hellwig, Sent: Friday, June 7, 2019 5:08 PM
> > >
> > > Looks good. And it seems like you've also found the solution to
> > > your usb storage problem, but I'm going to post the variant I just
> > > hacked up nevertheless.
> >
> > Thank you for your reply! I think this API is related to my problem,
> > but I don't have any actual solution (a patch) for now. So, I'll wait
> > for your patch!
>
> Turns out it isn't as simple as I thought, as there doesn't seem to
> be an easy way to get to the struct device used for DMA mapping
> from USB drivers. I'll need to think a bit more how to handle that
> best.
Thank you for your reply. I sent an email on the original report as below.
https://marc.info/?l=linux-block&m=155990883224615&w=2
Best regards,
Yoshihiro Shimoda
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Documentation: DMA-API: fix a function name of max_mapping_size
2019-06-07 7:47 [PATCH] Documentation: DMA-API: fix a function name of max_mapping_size Yoshihiro Shimoda
2019-06-07 8:08 ` Christoph Hellwig
@ 2019-06-07 17:10 ` Jonathan Corbet
1 sibling, 0 replies; 6+ messages in thread
From: Jonathan Corbet @ 2019-06-07 17:10 UTC (permalink / raw)
To: Yoshihiro Shimoda; +Cc: iommu, jroedel, linux-doc, hch
On Fri, 7 Jun 2019 16:47:13 +0900
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> wrote:
> The exported function name is dma_max_mapping_size(), not
> dma_direct_max_mapping_size() so that this patch fixes
> the function name in the documentation.
>
> Fixes: 133d624b1cee ("dma: Introduce dma_max_mapping_size()")
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
> Documentation/DMA-API.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/DMA-API.txt b/Documentation/DMA-API.txt
> index 0076150..e47c63b 100644
> --- a/Documentation/DMA-API.txt
> +++ b/Documentation/DMA-API.txt
> @@ -198,7 +198,7 @@ call to set the mask to the value returned.
> ::
>
> size_t
> - dma_direct_max_mapping_size(struct device *dev);
> + dma_max_mapping_size(struct device *dev);
>
> Returns the maximum size of a mapping for the device. The size parameter
> of the mapping functions like dma_map_single(), dma_map_page() and
Applied, thanks.
jon
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-06-07 17:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07 7:47 [PATCH] Documentation: DMA-API: fix a function name of max_mapping_size Yoshihiro Shimoda
2019-06-07 8:08 ` Christoph Hellwig
2019-06-07 8:19 ` Yoshihiro Shimoda
2019-06-07 8:34 ` Christoph Hellwig
2019-06-07 12:04 ` Yoshihiro Shimoda
2019-06-07 17:10 ` Jonathan Corbet
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).