]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soc: fsl: cpm1: qmc: Add missing spinlock comment
authorHerve Codina <herve.codina@bootlin.com>
Thu, 8 Aug 2024 07:11:15 +0000 (09:11 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 3 Sep 2024 05:49:19 +0000 (07:49 +0200)
checkpatch.pl raises the following issue
  CHECK: spinlock_t definition without comment

Add the missing comments.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20240808071132.149251-23-herve.codina@bootlin.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
drivers/soc/fsl/qe/qmc.c

index 2d54d7400d2dd25d5a586699748e2ca9b4849eda..3736a8e4575efbcf0d7d0ef0308c0c857bbffe23 100644 (file)
@@ -196,7 +196,7 @@ struct qmc_chan {
        u64     rx_ts_mask;
        bool is_reverse_data;
 
-       spinlock_t      tx_lock;
+       spinlock_t      tx_lock; /* Protect Tx related data */
        cbd_t __iomem *txbds;
        cbd_t __iomem *txbd_free;
        cbd_t __iomem *txbd_done;
@@ -204,7 +204,7 @@ struct qmc_chan {
        u64     nb_tx_underrun;
        bool    is_tx_stopped;
 
-       spinlock_t      rx_lock;
+       spinlock_t      rx_lock; /* Protect Rx related data */
        cbd_t __iomem *rxbds;
        cbd_t __iomem *rxbd_free;
        cbd_t __iomem *rxbd_done;