From patchwork Mon Nov 28 21:38:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 9450495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4EF906071C for ; Mon, 28 Nov 2016 21:40:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40ED527BFC for ; Mon, 28 Nov 2016 21:40:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 359CD27E3E; Mon, 28 Nov 2016 21:40:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2F0E27BFC for ; Mon, 28 Nov 2016 21:40:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755667AbcK1VkH (ORCPT ); Mon, 28 Nov 2016 16:40:07 -0500 Received: from mail-wj0-f194.google.com ([209.85.210.194]:34088 "EHLO mail-wj0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755546AbcK1Vjn (ORCPT ); Mon, 28 Nov 2016 16:39:43 -0500 Received: by mail-wj0-f194.google.com with SMTP id xy5so15802189wjc.1 for ; Mon, 28 Nov 2016 13:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dN8TaIbl+RauKUNt7b2qycl9gFNaJvJzL+VGWXtDDU8=; b=i8GocDzhh66hdJA/pUtEvB+weCZXMrwruXQGBqoapiO5Z01qHk8fn1HT52Mz/HT8tn UcMUBLQ1fsn4SGpn39Q73QSWQKAcMVITAAhSXvCGfLmS2U+aFZWhacnmfKfy2bRDb58n zpItLJMiV9voEy2wpzhqfRZD08pWfYADB/M38= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dN8TaIbl+RauKUNt7b2qycl9gFNaJvJzL+VGWXtDDU8=; b=TiWEkIWwFAH26TkQMup2zO99OPSGhuqum6Nj5PZQ5D1lEihsTOZ88UUR4kQCO8CBT+ 1SqXVDGD7PI6iRCP+bLt8PL8YisrhqRW3yYHiyzrbI+ZllU4eJfVyuSlaiLcljglqPKI /ZgAQSE2IKhsYPzT+cdl73yZnAgDQf1bI2CIh5wTwbL+0AbUJgtA7X2NxTSZJxdVM/Dl 1S6y5h9q23IhGJagp1NH3MfY9GJhPI9PmuIJGj/8jU+G+55FU/qOT88GCxGJcPOx8rZe 4zNx26t7lvHWNs5dv5GUzv/B8HYwdH+10CMDZcBiuyHZ0FUkkIRn52+u2JMgK2a51SX5 4z2w== X-Gm-Message-State: AKaTC013UtIEu9LY/3XvFlIuQR4WaB9+tjlvh3cYBftObFOyyf7JaNqNEKuCPM5E+lu29g== X-Received: by 10.194.123.201 with SMTP id mc9mr25187130wjb.47.1480369182300; Mon, 28 Nov 2016 13:39:42 -0800 (PST) Received: from Macroninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id w79sm30825843wmw.0.2016.11.28.13.39.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Nov 2016 13:39:41 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: axboe@fb.com, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 06/23] lightnvm: add ECC error codes Date: Mon, 28 Nov 2016 22:38:57 +0100 Message-Id: <20161128213914.12516-7-m@bjorling.me> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161128213914.12516-1-m@bjorling.me> References: <20161128213914.12516-1-m@bjorling.me> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Javier González Add ECC error codes to enable the appropriate handling in the target. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- include/linux/lightnvm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index 4480d1c..6b26a32 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -107,6 +107,8 @@ enum { NVM_RSP_NOT_CHANGEABLE = 0x1, NVM_RSP_ERR_FAILWRITE = 0x40ff, NVM_RSP_ERR_EMPTYPAGE = 0x42ff, + NVM_RSP_ERR_FAILECC = 0x4281, + NVM_RSP_WARN_HIGHECC = 0x4700, /* Device opcodes */ NVM_OP_HBREAD = 0x02,