]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: assume flash part size to be 4MB, if it can't be determined
authorCasey Leedom <leedom@chelsio.com>
Sat, 7 Jul 2018 07:08:07 +0000 (12:38 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 10:57:33 +0000 (19:57 +0900)
commit4d563d46802f96b991f667977fea0e1d1d4bd75d
tree15bf3d7537ffdfd30786676118e348a06dcca86b
parent611acadf246da98725d12895d5e0fab45b14cff4
cxgb4: assume flash part size to be 4MB, if it can't be determined

t4_get_flash_params() fails in a fatal fashion if the FLASH part isn't
one of the recognized parts. But this leads to desperate efforts to update
drivers when various FLASH parts which we are using suddenly become
unavailable and we need to substitute new FLASH parts.  This has lead to
more than one Customer Field Emergency when a Customer has an old driver
and suddenly can't use newly shipped adapters.

This commit fixes this by simply assuming that the FLASH part is 4MB in
size if it can't be identified. Note that all Chelsio adapters will have
flash parts which are at least 4MB in size.

Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c