linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: mscc: ocelot: Fix comment in ocelot_vlant_wait_for_completion()
@ 2018-10-17 15:26 Gregory CLEMENT
  2018-10-18  5:34 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Gregory CLEMENT @ 2018-10-17 15:26 UTC (permalink / raw)
  To: David S. Miller, linux-kernel, netdev, Alexandre Belloni; +Cc: Gregory CLEMENT

The ocelot_vlant_wait_for_completion() function is very similar to the
ocelot_mact_wait_for_completion(). It seemed to have be copied but the
comment was not updated, so let's fix it.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
---
 drivers/net/ethernet/mscc/ocelot.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net/ethernet/mscc/ocelot.c
index 1a4f2bb48ead..ed4e298cd823 100644
--- a/drivers/net/ethernet/mscc/ocelot.c
+++ b/drivers/net/ethernet/mscc/ocelot.c
@@ -133,9 +133,9 @@ static inline int ocelot_vlant_wait_for_completion(struct ocelot *ocelot)
 {
 	unsigned int val, timeout = 10;
 
-	/* Wait for the issued mac table command to be completed, or timeout.
-	 * When the command read from ANA_TABLES_MACACCESS is
-	 * MACACCESS_CMD_IDLE, the issued command completed successfully.
+	/* Wait for the issued vlan table command to be completed, or timeout.
+	 * When the command read from ANA_TABLES_VLANACCESS is
+	 * VLANACCESS_CMD_IDLE, the issued command completed successfully.
 	 */
 	do {
 		val = ocelot_read(ocelot, ANA_TABLES_VLANACCESS);
-- 
2.19.1


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

* Re: [PATCH] net: mscc: ocelot: Fix comment in ocelot_vlant_wait_for_completion()
  2018-10-17 15:26 [PATCH] net: mscc: ocelot: Fix comment in ocelot_vlant_wait_for_completion() Gregory CLEMENT
@ 2018-10-18  5:34 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-10-18  5:34 UTC (permalink / raw)
  To: gregory.clement; +Cc: linux-kernel, netdev, alexandre.belloni

From: Gregory CLEMENT <gregory.clement@bootlin.com>
Date: Wed, 17 Oct 2018 17:26:35 +0200

> The ocelot_vlant_wait_for_completion() function is very similar to the
> ocelot_mact_wait_for_completion(). It seemed to have be copied but the
> comment was not updated, so let's fix it.
> 
> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>

Applied.

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

end of thread, other threads:[~2018-10-18  5:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17 15:26 [PATCH] net: mscc: ocelot: Fix comment in ocelot_vlant_wait_for_completion() Gregory CLEMENT
2018-10-18  5:34 ` David Miller

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