linux-mips
[Top] [All Lists]

Re: [PATCH] netdev/phy: Use mdiobus_read() so that proper locks are take

To: david.daney@cavium.com
Subject: Re: [PATCH] netdev/phy: Use mdiobus_read() so that proper locks are taken.
From: David Miller <davem@davemloft.net>
Date: Fri, 30 Sep 2011 18:54:21 -0400 (EDT)
Cc: netdev@vger.kernel.org, linux-mips@linux-mips.org
In-reply-to: <1317419482-25655-1-git-send-email-david.daney@cavium.com>
References: <1317419482-25655-1-git-send-email-david.daney@cavium.com>
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>
Date: Fri, 30 Sep 2011 14:51:22 -0700

> Accesses to the mdio busses must be done with the mdio_lock to ensure
> proper operation.  Conveniently we have the helper function
> mdiobus_read() to do that for us.  Lets use it in get_phy_id() instead
> of accessing the bus without the lock held.
> 
> Signed-off-by: David Daney <david.daney@cavium.com>

Applied to net-next.

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [PATCH] netdev/phy: Use mdiobus_read() so that proper locks are taken., David Miller <=