iwlwifi: mvm: make NVM access actually fail on failures
authorJohannes Berg <johannes.berg@intel.com>
Fri, 12 Oct 2018 07:35:00 +0000 (09:35 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 25 Jan 2019 18:57:19 +0000 (20:57 +0200)
commitc281f13792f64372f49b63eab4c1ce88282448d2
treefa8aa0ff2e93e1da81af12549fa7b453d8778a5c
parent7e08baeb3c6d57b333a08306875a5cd49b4d95b5
iwlwifi: mvm: make NVM access actually fail on failures

On any failure, including if we crash the firmware or get garbage
data, we currently ignore this and pretend the OTP was empty.
Clearly, this isn't typically the case.

In cases other than the firmware saying it can't read the requested
section, or the section having ended, make the access actually fail
and trickle the error up through the layers to fail init.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c