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
parent
1b62e57e5d
commit
81029c732a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue