]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: ignore configuring the incorrect board_id
authorRyan Hsu <ryanhsu@qca.qualcomm.com>
Thu, 22 Dec 2016 23:02:37 +0000 (15:02 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 30 Dec 2016 09:15:37 +0000 (11:15 +0200)
commit08f0c78eaf5f816d866c56b29c3ba9adc6c74062
treebd053804f280b224620e4fbb59684978d719eb31
parent0f7917e5e5b808be6403f4aa78e2d78b752aadc5
ath10k: ignore configuring the incorrect board_id

With command to get board_id from otp, in the case of following

  boot get otp board id result 0x00000000 board_id 0 chip_id 0
  boot using board name 'bus=pci,bmi-chip-id=0,bmi-board-id=0"
  ...
  failed to fetch board data for bus=pci,bmi-chip-id=0,bmi-board-id=0 from
  ath10k/QCA6174/hw3.0/board-2.bin

The invalid board_id=0 will be used as index to search in the board-2.bin.

Ignore the case with board_id=0, as it means the otp is not carrying
the board id information.

Signed-off-by: Ryan Hsu <ryanhsu@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c