Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5899343imm; Tue, 12 Jun 2018 15:35:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKdSHtRHhCNowdh36sKZL9GvWCatOArKfoqHZgXtVKSC3fWHK/gBOGOjadb3jZu5RxleS4s X-Received: by 2002:aa7:80cf:: with SMTP id a15-v6mr2232539pfn.19.1528842950221; Tue, 12 Jun 2018 15:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528842950; cv=none; d=google.com; s=arc-20160816; b=VZHrzIcKUb/55TEVQ/tSQ11mAa6sd++K3MMCx6l0lgLHmvBAeTqHdxVA/aNzSXDkMl VI0K0euNmSgB0n/ELpL3zRGpKefRkgaNjoA1Te0THVI8QrNgQOCrSbJJ2hy4Kn6fXnBg Gbl9jVMKNF/Ugntn0mrT5eWmbYLJSs6rsmcMRVf5EMrpgOhxDuSLc9FNcdmLp8T7OI9s +Sg1Emc82QwhehegHQtxa922fcHU4yWdFkE6iyPVFK3czJCOnXYuF4MEoe2XE8FOWtqR YBTmy6vXbfURyDJ97CSXgPEBdIFRjb5LVaQHLTxy59SysiDcBb4XcnVaxJ5l3LbwqkMW G9ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=3DdX3QQwAoLbCEjJkerWXQZNXdnq+SpdQzynNiCO2dA=; b=Z3cze2O1cqPJNKt1iyxLjVKTPSKsUpCrHD0naoSPixu030K6eHrXSxD0vvn5PFI3yq dVck6l2cD8cO8ZNIjsigywpVGyWChTsxJ4raA1Tf15U2DqCgniU10xOzlNbDp/uaT0nJ pgOodtwFbo/rF5hIoUxhUhuJ9oDVznWSyouSGq2/1KDw5Wg+6ejMKxyjn4rrzHc3v23c KdQH6a/JEn6pnAMpMfEYZsvrwEiJpVnIafjN4FMNGOBwqSQ6DPGyGqcFGRyXNp37V5Pn fWt2tleSl8sivcTuznLtSpNTqDpaZmBhV6SJXz/V3MtjHRbuwOVKDcgM2TVfZe2mMEdt qB8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k82-v6si1145921pfa.53.2018.06.12.15.35.35; Tue, 12 Jun 2018 15:35:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934879AbeFLWfK (ORCPT + 99 others); Tue, 12 Jun 2018 18:35:10 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34274 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934314AbeFLWfJ (ORCPT ); Tue, 12 Jun 2018 18:35:09 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id A1C0920731; Wed, 13 Jun 2018 00:35:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 4AF07203EC; Wed, 13 Jun 2018 00:35:07 +0200 (CEST) Date: Wed, 13 Jun 2018 00:35:06 +0200 From: Boris Brezillon To: NeilBrown Cc: Yogesh Gaur , linux-mtd@lists.infradead.org, boris.brezillon@free-electrons.com, frieder.schrempf@exceet.de, computersforpeace@gmail.com, david.wolfe@nxp.com, han.xu@nxp.com, festevam@gmail.com, marek.vasut@gmail.com, prabhakar.kushwaha@nxp.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: spi-nor: honour max_data_size for spi-nor writes Message-ID: <20180613003506.2b521e94@bbrezillon> In-Reply-To: <87sh5riqxx.fsf@notabene.neil.brown.name> References: <1528708694-19407-1-git-send-email-yogeshnarayan.gaur@nxp.com> <20180611114916.351ed272@bbrezillon> <87r2ldj7xi.fsf@notabene.neil.brown.name> <20180612092248.4e6a3e92@bbrezillon> <87sh5riqxx.fsf@notabene.neil.brown.name> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Jun 2018 08:24:26 +1000 NeilBrown wrote: > On Tue, Jun 12 2018, Boris Brezillon wrote: > > > > > Just because you managed to solve the problem in one driver does not > > mean the problem does not exist for others. I read this datasheet [1] > > several times and couldn't find a way to say 'I want to keep the CS > > asserted between 2 transactions', so I think we really need this patch. > > I agree that my experience doesn't necessarily generalize. As the patch > carried by signed-off-by (even though I only wrote little parts of it) I > wanted to make it clear that I had no desire to promote the patch - > maybe I stated that too strongly. If that's a problem, we can drop your SoB. > > Thanks for the link to the data sheet. I had a bit of a look, but > reading these things must be an art that I haven't fully mastered yet - > it would probably take me a few days to really understand it. > The Programmable Sequence Enginine (Section 10.2.5.3.1) seems > interesting. I wouldn't be surprised that that lets you do interesting > things. It does. > > It is obviously quite a powerful unit and it is surprising - to me - > that it might not allow arbitrarily long messages, but I cannot justify > the time to really dig in and see if that is the case. Unfortunately it does not allow you to manually control the CS signal, and when it comes to data transfers you're limited by the TX/RX FIFO size. > Maybe you are right. I have no particular objections to the patch, I > just don't want to be seen as speaking in favour of it. Okay.