]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDan Duval <dan.duval@oracle.com>
Mon, 19 Oct 2015 22:11:55 +0000 (18:11 -0400)
commit8f22b368e4539e556becb64d6464d309c0e93eab
tree1e5dfc027bdb342ae80500a5e5cd17b67e9ae685
parent7acdca04075ce569cce7c67b2e11935c263925f5
bnx2x: Free NVRAM lock at end of each page

Orabug: 22066196

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>
(cherry picked from commit 0ea853dfa93371e651d8b7b27fd2344e973a86ed)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c