From patchwork Thu Mar 23 00:17:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 95854 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp493713qgd; Wed, 22 Mar 2017 17:19:54 -0700 (PDT) X-Received: by 10.84.179.99 with SMTP id a90mr59816417plc.26.1490228394685; Wed, 22 Mar 2017 17:19:54 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id v26si2489024pfg.206.2017.03.22.17.19.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 17:19:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=nPW0udv+zR4PqcsUxqu5vB17V3imf1In+YT2te6IADs=; b=Kp4LFoGImTo3NgqDXiOyxKV1Qy kqaQ4bn1nMbD4Ka3cH96Uw/1269ddyAxMKo/u6FF5pfJSucUXDFstC1hzwFIWHEP+Z2MqRsprlqu8 UmjgKIshfwKcRslL6HNqi6W+qzYX47Ded0+lmuIQv9CXOW/vJGoXPg0UhVIUtfqKRkx/pa3PbJlGG ucttiV0fQc8PI5pnr0Jdp91sV7njGEaMKWjh/r2JOtQrJxv3rBfdFLqOKIVGqIE/VBsncEjUzeoK9 YFofpMxb2L0H6ApBjFkQxIJDnexmgNTGiNmftDiBZr0Hdy0TOr8zCIT1b8WRSycr+0Iq/sOLsiYH6 zOJ1aIKw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cqqTj-00058s-Df; Thu, 23 Mar 2017 00:19:47 +0000 Received: from conuserg-09.nifty.com ([210.131.2.76]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqqT6-0004a0-Af for linux-mtd@lists.infradead.org; Thu, 23 Mar 2017 00:19:15 +0000 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-09.nifty.com with ESMTP id v2N0I4br008011; Thu, 23 Mar 2017 09:18:23 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com v2N0I4br008011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1490228304; bh=bhayOxSfSColUS+JsUYHgHk3C6D0cUlzWbmSVsAe46c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tY6Qu+h5XGXXeWcMNbFTM26ya+EyKfGQOm5crM5yzUt+jCP7/xXVpWEmgj5+xCRlC VdpxkQZXpvuHdP11Yg2TqcuBBncXqcdctp1Ha7INHDMpqY4t7Z5pGiGf6WGAusQIwo wFgC/IrtMdKUafY1v5fYAAkJgXjR3qPScIHRmjgM08cDrNGqrneiCtLMqc2XdzQs+Y 1dxjg+HgnuIOfdBM8ShGo72lb/qt3U8lP0Pdn8q/MHcDHu+taMexj7knFk5BjWXIcJ RGRCTr+aCKS89eY2soq2hXRzCqwBOLvSlNRjkRgSOZBYsRAWcFcvzyL/aGW8jyCzVm pRUSHJ5wq5ncw== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Subject: [RESEND PATCH v2 41/53] mtd: nand: do not check R/B# for CMD_SET_FEATURES in nand_command(_lp) Date: Thu, 23 Mar 2017 09:17:50 +0900 Message-Id: <1490228282-10805-15-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490228282-10805-1-git-send-email-yamada.masahiro@socionext.com> References: <1490228282-10805-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170322_171908_866696_7EA3A46D X-CRM114-Status: UNSURE ( 8.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent.monat@idquantique.com, Boris Brezillon , thorsten.christiansson@idquantique.com, Dinh Nguyen , Enrico Jorns , Artem Bityutskiy , Marek Vasut , Masahiro Yamada , Masami Hiramatsu , Chuanxiao Dong , Jassi Brar , Brian Norris , David Woodhouse , Rob Herring , Graham Moore MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org Set Features (0xEF) command toggles the R/B# pin after 4 sub feature parameters are written. Currently, nand_command(_lp) calls chip->dev_ready immediately after the address cycle because NAND_CMD_SET_FEATURES falls into default: label. No wait is needed at this point. If you see nand_onfi_set_features(), R/B# is already cared by the chip->waitfunc call. Signed-off-by: Masahiro Yamada --- Changes in v2: - Newly added drivers/mtd/nand/nand_base.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index c4c3329..e13f959 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -669,6 +669,7 @@ static void nand_command(struct mtd_info *mtd, unsigned int command, case NAND_CMD_SEQIN: case NAND_CMD_STATUS: case NAND_CMD_READID: + case NAND_CMD_SET_FEATURES: return; case NAND_CMD_RESET: @@ -788,6 +789,7 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command, case NAND_CMD_SEQIN: case NAND_CMD_STATUS: case NAND_CMD_READID: + case NAND_CMD_SET_FEATURES: return; case NAND_CMD_RNDIN: