]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: halt chip before flashing PHY firmware image
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 11 Jun 2021 06:47:47 +0000 (12:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 18:15:00 +0000 (11:15 -0700)
commit6d45088dd86992155c6702bbb2ebd59a1a13c42b
tree8fef917986ea4d9244e570ce4e7f5ce1de97ac9d
parent0b6404ca3e2c5e30df28e67069fc0b44b60729e1
cxgb4: halt chip before flashing PHY firmware image

When using firmware-assisted PHY firmware image write to flash,
halt the chip before beginning the flash write operation to allow
the running firmware to store the image persistently. Otherwise,
the running firmware will only store the PHY image in local on-chip
RAM, which will be lost after next reset.

Fixes: 2532a5e298db ("cxgb4: add support to flash PHY image")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c