diff mbox

[3/3] lightnvm: Add CRC read error

Message ID 1485431260-20268-3-git-send-email-javier@cnexlabs.com (mailing list archive)
State New, archived
Headers show

Commit Message

=?UTF-8?q?Javier=20Gonz=C3=A1lez?= Jan. 26, 2017, 11:47 a.m. UTC
Let the host differentiate between a read error and a CRC check error on
the device side.

Signed-off-by: Javier González <javier@cnexlabs.com>
---
 include/linux/lightnvm.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Matias Bjorling Jan. 30, 2017, 10:16 a.m. UTC | #1
On 01/26/2017 12:47 PM, Javier González wrote:
> Let the host differentiate between a read error and a CRC check error on
> the device side.
> 
> Signed-off-by: Javier González <javier@cnexlabs.com>
> ---
>  include/linux/lightnvm.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
> index 11c318e..51cda67 100644
> --- a/include/linux/lightnvm.h
> +++ b/include/linux/lightnvm.h
> @@ -108,6 +108,7 @@ enum {
>  	NVM_RSP_ERR_FAILWRITE	= 0x40ff,
>  	NVM_RSP_ERR_EMPTYPAGE	= 0x42ff,
>  	NVM_RSP_ERR_FAILECC	= 0x4281,
> +	NVM_RSP_ERR_FAILCRC	= 0x4004,
>  	NVM_RSP_WARN_HIGHECC	= 0x4700,
>  
>  	/* Device opcodes */
> 

Thanks. Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index 11c318e..51cda67 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -108,6 +108,7 @@  enum {
 	NVM_RSP_ERR_FAILWRITE	= 0x40ff,
 	NVM_RSP_ERR_EMPTYPAGE	= 0x42ff,
 	NVM_RSP_ERR_FAILECC	= 0x4281,
+	NVM_RSP_ERR_FAILCRC	= 0x4004,
 	NVM_RSP_WARN_HIGHECC	= 0x4700,
 
 	/* Device opcodes */