1
0
Fork 0

MLK-13783 char: otp: no need to check bank0/bank1 when prog

Bank0/Bank1 are not in ECC mode, so no need to check.
Each bank contains 8 words, so we check (phy_index > 15).

Signed-off-by: Peng Fan <peng.fan@nxp.com>
pull/10/head
Peng Fan 2017-01-19 15:05:29 +08:00 committed by Jason Liu
parent 1b62e57e5d
commit 81029c732a
1 changed files with 2 additions and 2 deletions

View File

@ -571,8 +571,8 @@ static ssize_t fsl_otp_store(struct kobject *kobj, struct kobj_attribute *attr,
mutex_lock(&otp_mutex);
if (fsl_otp->devtype == FSL_OTP_MX7ULP) {
phy_index = fsl_otp_word_physical(fsl_otp, index);
phy_index = fsl_otp_word_physical(fsl_otp, index);
if ((fsl_otp->devtype == FSL_OTP_MX7ULP) && (phy_index > 15)) {
fsl_otp->set_otp_timing();
ret = otp_wait_busy(0);
if (ret)