]> git.baikalelectronics.ru Git - kernel.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)
commitd09751fa1b553a83b27487beb5f7356b38042281
treed978ba9920978f13282a832ba7a134a6605f2a10
parent204c2ca4303a2b3fc36fc6bd31626d1a56711629
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