Skip to content

Commit 06a36ec

Browse files
gclementdavem330
authored andcommitted
net: mscc: ocelot: Fix comment in ocelot_vlant_wait_for_completion()
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> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5660b9d commit 06a36ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/mscc/ocelot.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ static inline int ocelot_vlant_wait_for_completion(struct ocelot *ocelot)
133133
{
134134
unsigned int val, timeout = 10;
135135

136-
/* Wait for the issued mac table command to be completed, or timeout.
137-
* When the command read from ANA_TABLES_MACACCESS is
138-
* MACACCESS_CMD_IDLE, the issued command completed successfully.
136+
/* Wait for the issued vlan table command to be completed, or timeout.
137+
* When the command read from ANA_TABLES_VLANACCESS is
138+
* VLANACCESS_CMD_IDLE, the issued command completed successfully.
139139
*/
140140
do {
141141
val = ocelot_read(ocelot, ANA_TABLES_VLANACCESS);

0 commit comments

Comments
 (0)