]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Reduce UMP event collision window
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 13 Feb 2012 15:20:12 +0000 (15:20 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:21:33 +0000 (15:21 +0800)
commit0fa7783919292280a3033b3ab5642da312b11e20
treeafd4451dea60765236908ee1260ce690e693f0ee
parent5469fcdfec0dda262ad0d7558e9cb174213ad17b
tg3: Reduce UMP event collision window

The tg3 driver needs to submit a few phy register values to the UMP
firmware each time the link state changes.  Up until now, the driver
would wait for the previous event to complete, then proceed to gather
data through a series of phy accesses.  Since phy accesses are
relatively slow, it is possible for another thread to attempt to submit
its own event while the UMP code is still construction its message.

This patch seeks to minimize the collision window as much as possible by
preloading the phy data.

(cherry picked from commit b28f389d92114ecf1a7c99eb3865438543a1808b)
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c