]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
bnx2x: Free NVRAM lock at end of each page
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Mon, 10 Aug 2015 09:49:36 +0000 (12:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2015 21:31:59 +0000 (14:31 -0700)
commit0ea853dfa93371e651d8b7b27fd2344e973a86ed
treed978ba9920978f13282a832ba7a134a6605f2a10
parente1615903eb6b5e599396d4b3d8e3e96f6d432a6e
bnx2x: Free NVRAM lock at end of each page

Writing each 4Kb page into flash might take up-to ~100 miliseconds,
during which time management firmware cannot acces the nvram for its
own uses.

Firmware upgrade utility use the ethtool API to burn new flash images
for the device via the ethtool API, doing so by writing several page-worth
of data on each command. Such action might create problems for the
management firmware, as the nvram might not be accessible for a long time.

This patch changes the write implementation, releasing the nvram lock on
the completion of each page, allowing the management firmware time to
claim it and perform its own required actions.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c