* [PATCH] NTB: correct ntb_peer_spad_addr and ntb_peer_spad_read comment typos
@ 2020-05-26 7:59 Wesley Sheng
2020-05-31 19:55 ` Jon Mason
0 siblings, 1 reply; 2+ messages in thread
From: Wesley Sheng @ 2020-05-26 7:59 UTC (permalink / raw)
To: jdmason, dave.jiang, allenbh, linux-ntb, linux-kernel
Cc: wesleyshenggit, wesley.sheng
The comment for ntb_peer_spad_addr and ntb_peer_spad_read
incorrectly referred to peer doorbell register and local
scratchpad register.
Signed-off-by: Wesley Sheng <wesley.sheng@amd.com>
---
include/linux/ntb.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index 8c13538aeffe..b9b0d805d0f9 100644
--- a/include/linux/ntb.h
+++ b/include/linux/ntb.h
@@ -1351,7 +1351,7 @@ static inline int ntb_spad_write(struct ntb_dev *ntb, int sidx, u32 val)
* @sidx: Scratchpad index.
* @spad_addr: OUT - The address of the peer scratchpad register.
*
- * Return the address of the peer doorbell register. This may be used, for
+ * Return the address of the peer scratchpad register. This may be used, for
* example, by drivers that offload memory copy operations to a dma engine.
*
* Return: Zero on success, otherwise an error number.
@@ -1373,7 +1373,7 @@ static inline int ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx,
*
* Read the peer scratchpad register, and return the value.
*
- * Return: The value of the local scratchpad register.
+ * Return: The value of the peer scratchpad register.
*/
static inline u32 ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx)
{
--
2.16.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] NTB: correct ntb_peer_spad_addr and ntb_peer_spad_read comment typos
2020-05-26 7:59 [PATCH] NTB: correct ntb_peer_spad_addr and ntb_peer_spad_read comment typos Wesley Sheng
@ 2020-05-31 19:55 ` Jon Mason
0 siblings, 0 replies; 2+ messages in thread
From: Jon Mason @ 2020-05-31 19:55 UTC (permalink / raw)
To: Wesley Sheng; +Cc: dave.jiang, allenbh, linux-ntb, linux-kernel, wesleyshenggit
On Tue, May 26, 2020 at 03:59:43PM +0800, Wesley Sheng wrote:
> The comment for ntb_peer_spad_addr and ntb_peer_spad_read
> incorrectly referred to peer doorbell register and local
> scratchpad register.
>
> Signed-off-by: Wesley Sheng <wesley.sheng@amd.com>
Pulled into the ntb branch
Thanks,
Jon
> ---
> include/linux/ntb.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/linux/ntb.h b/include/linux/ntb.h
> index 8c13538aeffe..b9b0d805d0f9 100644
> --- a/include/linux/ntb.h
> +++ b/include/linux/ntb.h
> @@ -1351,7 +1351,7 @@ static inline int ntb_spad_write(struct ntb_dev *ntb, int sidx, u32 val)
> * @sidx: Scratchpad index.
> * @spad_addr: OUT - The address of the peer scratchpad register.
> *
> - * Return the address of the peer doorbell register. This may be used, for
> + * Return the address of the peer scratchpad register. This may be used, for
> * example, by drivers that offload memory copy operations to a dma engine.
> *
> * Return: Zero on success, otherwise an error number.
> @@ -1373,7 +1373,7 @@ static inline int ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx,
> *
> * Read the peer scratchpad register, and return the value.
> *
> - * Return: The value of the local scratchpad register.
> + * Return: The value of the peer scratchpad register.
> */
> static inline u32 ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx)
> {
> --
> 2.16.2
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-31 19:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26 7:59 [PATCH] NTB: correct ntb_peer_spad_addr and ntb_peer_spad_read comment typos Wesley Sheng
2020-05-31 19:55 ` Jon Mason
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).