* [PATCH] dmaengine: at_hdmac: add missing kernel-doc style description
@ 2024-01-30 16:32 Vinod Koul
2024-01-31 8:28 ` Tudor Ambarus
2024-02-02 16:17 ` Vinod Koul
0 siblings, 2 replies; 4+ messages in thread
From: Vinod Koul @ 2024-01-30 16:32 UTC (permalink / raw)
To: dmaengine, Ludovic Desroches, Tudor Ambarus; +Cc: Vinod Koul
We get following warning with W=1:
drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'boundary' not described in 'at_desc'
drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'dst_hole' not described in 'at_desc'
drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'src_hole' not described in 'at_desc'
drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_buffer' not described in 'at_desc'
drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_paddr' not described in 'at_desc'
drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_vaddr' not described in 'at_desc'
drivers/dma/at_hdmac.c:255: warning: Enum value 'ATC_IS_PAUSED' not described in enum 'atc_status'
drivers/dma/at_hdmac.c:255: warning: Enum value 'ATC_IS_CYCLIC' not described in enum 'atc_status'
drivers/dma/at_hdmac.c:287: warning: Function parameter or struct member 'cyclic' not described in 'at_dma_chan'
drivers/dma/at_hdmac.c:350: warning: Function parameter or struct member 'memset_pool' not described in 'at_dma'
Fix this by adding the required description and also drop unused struct
member 'cyclic' in 'at_dma_chan'
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
drivers/dma/at_hdmac.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
index 6bad536e0492..57d0697ad194 100644
--- a/drivers/dma/at_hdmac.c
+++ b/drivers/dma/at_hdmac.c
@@ -224,6 +224,12 @@ struct atdma_sg {
* @total_len: total transaction byte count
* @sglen: number of sg entries.
* @sg: array of sgs.
+ * @boundary: Interleaved dma boundary
+ * @dst_hole: Interleaved dma destination hole
+ * @src_hole: Interleaved dma source hole
+ * @memset_buffer: buffer for memset
+ * @memset_paddr: paddr for buffer for memset
+ * @memset_vaddr: vaddr for buffer for memset
*/
struct at_desc {
struct virt_dma_desc vd;
@@ -247,6 +253,9 @@ struct at_desc {
/**
* enum atc_status - information bits stored in channel status flag
*
+ * @ATC_IS_PAUSED: If channel is pause
+ * @ATC_IS_CYCLIC: If channel is cyclic
+ *
* Manipulated with atomic operations.
*/
enum atc_status {
@@ -282,7 +291,6 @@ struct at_dma_chan {
u32 save_cfg;
u32 save_dscr;
struct dma_slave_config dma_sconfig;
- bool cyclic;
struct at_desc *desc;
};
@@ -333,6 +341,7 @@ static inline u8 convert_buswidth(enum dma_slave_buswidth addr_width)
* @save_imr: interrupt mask register that is saved on suspend/resume cycle
* @all_chan_mask: all channels availlable in a mask
* @lli_pool: hw lli table
+ * @memset_pool: hw memset pool
* @chan: channels table to store at_dma_chan structures
*/
struct at_dma {
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] dmaengine: at_hdmac: add missing kernel-doc style description
2024-01-30 16:32 [PATCH] dmaengine: at_hdmac: add missing kernel-doc style description Vinod Koul
@ 2024-01-31 8:28 ` Tudor Ambarus
2024-02-02 16:19 ` Vinod Koul
2024-02-02 16:17 ` Vinod Koul
1 sibling, 1 reply; 4+ messages in thread
From: Tudor Ambarus @ 2024-01-31 8:28 UTC (permalink / raw)
To: Vinod Koul, dmaengine, Ludovic Desroches
Hi, Vinod,
On 1/30/24 16:32, Vinod Koul wrote:
> We get following warning with W=1:
>
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'boundary' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'dst_hole' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'src_hole' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_buffer' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_paddr' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_vaddr' not described in 'at_desc'
> drivers/dma/at_hdmac.c:255: warning: Enum value 'ATC_IS_PAUSED' not described in enum 'atc_status'
> drivers/dma/at_hdmac.c:255: warning: Enum value 'ATC_IS_CYCLIC' not described in enum 'atc_status'
> drivers/dma/at_hdmac.c:287: warning: Function parameter or struct member 'cyclic' not described in 'at_dma_chan'
> drivers/dma/at_hdmac.c:350: warning: Function parameter or struct member 'memset_pool' not described in 'at_dma'
>
> Fix this by adding the required description and also drop unused struct
> member 'cyclic' in 'at_dma_chan'
>
Thanks for fixing these! Few nits below that you may consider while
applying.
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
> drivers/dma/at_hdmac.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
> index 6bad536e0492..57d0697ad194 100644
> --- a/drivers/dma/at_hdmac.c
> +++ b/drivers/dma/at_hdmac.c
> @@ -224,6 +224,12 @@ struct atdma_sg {
> * @total_len: total transaction byte count
> * @sglen: number of sg entries.
> * @sg: array of sgs.
> + * @boundary: Interleaved dma boundary
how about: number of transfers to perform before the automatic address
increment operation
> + * @dst_hole: Interleaved dma destination hole
how about: value to add to the destination address when the boundary has
been reached
> + * @src_hole: Interleaved dma source hole
and here the same, but for source
> + * @memset_buffer: buffer for memset
how about: buffer used for the memset operation
> + * @memset_paddr: paddr for buffer for memset
how about: physical address of the buffer used for the memset operation
> + * @memset_vaddr: vaddr for buffer for memset
and here the same but with virtual
> */
> struct at_desc {
> struct virt_dma_desc vd;
> @@ -247,6 +253,9 @@ struct at_desc {
> /**
> * enum atc_status - information bits stored in channel status flag
> *
> + * @ATC_IS_PAUSED: If channel is pause
typo, s/pause/paused
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Cheers,
ta
> + * @ATC_IS_CYCLIC: If channel is cyclic
> + *
> * Manipulated with atomic operations.
> */
> enum atc_status {
> @@ -282,7 +291,6 @@ struct at_dma_chan {
> u32 save_cfg;
> u32 save_dscr;
> struct dma_slave_config dma_sconfig;
> - bool cyclic;
> struct at_desc *desc;
> };
>
> @@ -333,6 +341,7 @@ static inline u8 convert_buswidth(enum dma_slave_buswidth addr_width)
> * @save_imr: interrupt mask register that is saved on suspend/resume cycle
> * @all_chan_mask: all channels availlable in a mask
> * @lli_pool: hw lli table
> + * @memset_pool: hw memset pool
> * @chan: channels table to store at_dma_chan structures
> */
> struct at_dma {
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] dmaengine: at_hdmac: add missing kernel-doc style description
2024-01-31 8:28 ` Tudor Ambarus
@ 2024-02-02 16:19 ` Vinod Koul
0 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2024-02-02 16:19 UTC (permalink / raw)
To: Tudor Ambarus; +Cc: dmaengine, Ludovic Desroches
Hi Toudor,
On 31-01-24, 08:28, Tudor Ambarus wrote:
>
> Hi, Vinod,
>
> On 1/30/24 16:32, Vinod Koul wrote:
> > We get following warning with W=1:
> >
> > drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'boundary' not described in 'at_desc'
> > drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'dst_hole' not described in 'at_desc'
> > drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'src_hole' not described in 'at_desc'
> > drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_buffer' not described in 'at_desc'
> > drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_paddr' not described in 'at_desc'
> > drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_vaddr' not described in 'at_desc'
> > drivers/dma/at_hdmac.c:255: warning: Enum value 'ATC_IS_PAUSED' not described in enum 'atc_status'
> > drivers/dma/at_hdmac.c:255: warning: Enum value 'ATC_IS_CYCLIC' not described in enum 'atc_status'
> > drivers/dma/at_hdmac.c:287: warning: Function parameter or struct member 'cyclic' not described in 'at_dma_chan'
> > drivers/dma/at_hdmac.c:350: warning: Function parameter or struct member 'memset_pool' not described in 'at_dma'
> >
> > Fix this by adding the required description and also drop unused struct
> > member 'cyclic' in 'at_dma_chan'
> >
>
> Thanks for fixing these! Few nits below that you may consider while
> applying.
>
> > Signed-off-by: Vinod Koul <vkoul@kernel.org>
> > ---
> > drivers/dma/at_hdmac.c | 11 ++++++++++-
> > 1 file changed, 10 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
> > index 6bad536e0492..57d0697ad194 100644
> > --- a/drivers/dma/at_hdmac.c
> > +++ b/drivers/dma/at_hdmac.c
> > @@ -224,6 +224,12 @@ struct atdma_sg {
> > * @total_len: total transaction byte count
> > * @sglen: number of sg entries.
> > * @sg: array of sgs.
> > + * @boundary: Interleaved dma boundary
> how about: number of transfers to perform before the automatic address
> increment operation
> > + * @dst_hole: Interleaved dma destination hole
> how about: value to add to the destination address when the boundary has
> been reached
> > + * @src_hole: Interleaved dma source hole
>
> and here the same, but for source
> > + * @memset_buffer: buffer for memset
> how about: buffer used for the memset operation
> > + * @memset_paddr: paddr for buffer for memset
>
> how about: physical address of the buffer used for the memset operation
>
> > + * @memset_vaddr: vaddr for buffer for memset
>
> and here the same but with virtual
>
> > */
> > struct at_desc {
> > struct virt_dma_desc vd;
> > @@ -247,6 +253,9 @@ struct at_desc {
> > /**
> > * enum atc_status - information bits stored in channel status flag
> > *
> > + * @ATC_IS_PAUSED: If channel is pause
>
> typo, s/pause/paused
I have updated these and applied the patch, thanks for better
suggestions
>
> Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
>
> Cheers,
> ta
> > + * @ATC_IS_CYCLIC: If channel is cyclic
> > + *
> > * Manipulated with atomic operations.
> > */
> > enum atc_status {
> > @@ -282,7 +291,6 @@ struct at_dma_chan {
> > u32 save_cfg;
> > u32 save_dscr;
> > struct dma_slave_config dma_sconfig;
> > - bool cyclic;
> > struct at_desc *desc;
> > };
> >
> > @@ -333,6 +341,7 @@ static inline u8 convert_buswidth(enum dma_slave_buswidth addr_width)
> > * @save_imr: interrupt mask register that is saved on suspend/resume cycle
> > * @all_chan_mask: all channels availlable in a mask
> > * @lli_pool: hw lli table
> > + * @memset_pool: hw memset pool
> > * @chan: channels table to store at_dma_chan structures
> > */
> > struct at_dma {
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dmaengine: at_hdmac: add missing kernel-doc style description
2024-01-30 16:32 [PATCH] dmaengine: at_hdmac: add missing kernel-doc style description Vinod Koul
2024-01-31 8:28 ` Tudor Ambarus
@ 2024-02-02 16:17 ` Vinod Koul
1 sibling, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2024-02-02 16:17 UTC (permalink / raw)
To: dmaengine, Ludovic Desroches, Tudor Ambarus, Vinod Koul
On Tue, 30 Jan 2024 22:02:16 +0530, Vinod Koul wrote:
> We get following warning with W=1:
>
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'boundary' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'dst_hole' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'src_hole' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_buffer' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_paddr' not described in 'at_desc'
> drivers/dma/at_hdmac.c:243: warning: Function parameter or struct member 'memset_vaddr' not described in 'at_desc'
> drivers/dma/at_hdmac.c:255: warning: Enum value 'ATC_IS_PAUSED' not described in enum 'atc_status'
> drivers/dma/at_hdmac.c:255: warning: Enum value 'ATC_IS_CYCLIC' not described in enum 'atc_status'
> drivers/dma/at_hdmac.c:287: warning: Function parameter or struct member 'cyclic' not described in 'at_dma_chan'
> drivers/dma/at_hdmac.c:350: warning: Function parameter or struct member 'memset_pool' not described in 'at_dma'
>
> [...]
Applied, thanks!
[1/1] dmaengine: at_hdmac: add missing kernel-doc style description
commit: bd6081be2251c3700eca8a7bbe071e1bb8cd2af4
Best regards,
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-02 16:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-30 16:32 [PATCH] dmaengine: at_hdmac: add missing kernel-doc style description Vinod Koul
2024-01-31 8:28 ` Tudor Ambarus
2024-02-02 16:19 ` Vinod Koul
2024-02-02 16:17 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox