]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix endianness when flashing boot image
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 11 Jun 2021 06:47:45 +0000 (12:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 18:15:00 +0000 (11:15 -0700)
commit54f6177ea2baca51756e4d423a53d3ed335cf5e4
treee21904f2fb2130dc4dc040fa06e1c8ce795b25ea
parent5ac6affd08c53a9b71f898d4e6645911eb0492c3
cxgb4: fix endianness when flashing boot image

Boot images are copied to memory and updated with current underlying
device ID before flashing them to adapter. Ensure the updated images
are always flashed in Big Endian to allow the firmware to read the
new images during boot properly.

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