|
@@ -1697,16 +1697,16 @@ static int dbg_asicmode_show(struct seq_file *s, void *p)
|
|
|
|
|
|
switch (mode) {
|
|
switch (mode) {
|
|
case DOC_ASICMODE_RESET:
|
|
case DOC_ASICMODE_RESET:
|
|
- pos += seq_printf(s, "reset");
|
|
|
|
|
|
+ pos += seq_puts(s, "reset");
|
|
break;
|
|
break;
|
|
case DOC_ASICMODE_NORMAL:
|
|
case DOC_ASICMODE_NORMAL:
|
|
- pos += seq_printf(s, "normal");
|
|
|
|
|
|
+ pos += seq_puts(s, "normal");
|
|
break;
|
|
break;
|
|
case DOC_ASICMODE_POWERDOWN:
|
|
case DOC_ASICMODE_POWERDOWN:
|
|
- pos += seq_printf(s, "powerdown");
|
|
|
|
|
|
+ pos += seq_puts(s, "powerdown");
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- pos += seq_printf(s, ")\n");
|
|
|
|
|
|
+ pos += seq_puts(s, ")\n");
|
|
return pos;
|
|
return pos;
|
|
}
|
|
}
|
|
DEBUGFS_RO_ATTR(asic_mode, dbg_asicmode_show);
|
|
DEBUGFS_RO_ATTR(asic_mode, dbg_asicmode_show);
|
|
@@ -1745,22 +1745,22 @@ static int dbg_protection_show(struct seq_file *s, void *p)
|
|
pos += seq_printf(s, "Protection = 0x%02x (",
|
|
pos += seq_printf(s, "Protection = 0x%02x (",
|
|
protect);
|
|
protect);
|
|
if (protect & DOC_PROTECT_FOUNDRY_OTP_LOCK)
|
|
if (protect & DOC_PROTECT_FOUNDRY_OTP_LOCK)
|
|
- pos += seq_printf(s, "FOUNDRY_OTP_LOCK,");
|
|
|
|
|
|
+ pos += seq_puts(s, "FOUNDRY_OTP_LOCK,");
|
|
if (protect & DOC_PROTECT_CUSTOMER_OTP_LOCK)
|
|
if (protect & DOC_PROTECT_CUSTOMER_OTP_LOCK)
|
|
- pos += seq_printf(s, "CUSTOMER_OTP_LOCK,");
|
|
|
|
|
|
+ pos += seq_puts(s, "CUSTOMER_OTP_LOCK,");
|
|
if (protect & DOC_PROTECT_LOCK_INPUT)
|
|
if (protect & DOC_PROTECT_LOCK_INPUT)
|
|
- pos += seq_printf(s, "LOCK_INPUT,");
|
|
|
|
|
|
+ pos += seq_puts(s, "LOCK_INPUT,");
|
|
if (protect & DOC_PROTECT_STICKY_LOCK)
|
|
if (protect & DOC_PROTECT_STICKY_LOCK)
|
|
- pos += seq_printf(s, "STICKY_LOCK,");
|
|
|
|
|
|
+ pos += seq_puts(s, "STICKY_LOCK,");
|
|
if (protect & DOC_PROTECT_PROTECTION_ENABLED)
|
|
if (protect & DOC_PROTECT_PROTECTION_ENABLED)
|
|
- pos += seq_printf(s, "PROTECTION ON,");
|
|
|
|
|
|
+ pos += seq_puts(s, "PROTECTION ON,");
|
|
if (protect & DOC_PROTECT_IPL_DOWNLOAD_LOCK)
|
|
if (protect & DOC_PROTECT_IPL_DOWNLOAD_LOCK)
|
|
- pos += seq_printf(s, "IPL_DOWNLOAD_LOCK,");
|
|
|
|
|
|
+ pos += seq_puts(s, "IPL_DOWNLOAD_LOCK,");
|
|
if (protect & DOC_PROTECT_PROTECTION_ERROR)
|
|
if (protect & DOC_PROTECT_PROTECTION_ERROR)
|
|
- pos += seq_printf(s, "PROTECT_ERR,");
|
|
|
|
|
|
+ pos += seq_puts(s, "PROTECT_ERR,");
|
|
else
|
|
else
|
|
- pos += seq_printf(s, "NO_PROTECT_ERR");
|
|
|
|
- pos += seq_printf(s, ")\n");
|
|
|
|
|
|
+ pos += seq_puts(s, "NO_PROTECT_ERR");
|
|
|
|
+ pos += seq_puts(s, ")\n");
|
|
|
|
|
|
pos += seq_printf(s, "DPS0 = 0x%02x : "
|
|
pos += seq_printf(s, "DPS0 = 0x%02x : "
|
|
"Protected area [0x%x - 0x%x] : OTP=%d, READ=%d, "
|
|
"Protected area [0x%x - 0x%x] : OTP=%d, READ=%d, "
|