Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3135232rwl; Tue, 27 Dec 2022 05:00:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXtX2OAr7r3jUiRY5jkjQ/GZj6o6+SV/e+Zk0x3Dqa55MVO9O4jq6cIlXo0cai47JUDwx0ff X-Received: by 2002:a17:902:7b8b:b0:187:4920:3a3c with SMTP id w11-20020a1709027b8b00b0018749203a3cmr27482437pll.33.1672146046038; Tue, 27 Dec 2022 05:00:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672146046; cv=none; d=google.com; s=arc-20160816; b=Vmtlw+GbhePOUCyVhihPMnbqjJjaAAqGxLLw3uzPUz8HmRGMhW23hwQSSmCZdBC/bs KirFfSD8gMSe4Gx0F/uK+9FPph7azwhnhFi4mVllpF7ZENFnRUJVAr65Cq2M9F+9BWy3 FYk3NWFFWCd+W4X5wZVV1sEAP+EZPzCLDI1o/Lbv5iWAYfwTLmPm1b4MbMk+kMhSAhCW TO5r7cJnpJCsXWIHeu0gs1xZYdFs2+vSGIwX9tYcxmhjKjTpVZe8s36ei0xBUoX9wJy2 xIPmQxYJk1D5f4XjWPkkpy6ejHIjNuu5iWql1ZzU/s2/+CkQrHq7s6FlRhRgW+Wm8wTa gJbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=CAAvJN77bvgX7oGEekHJcV4mBzu/DWg2fOxNjin+9Hc=; b=aFTtkJyAyKoMG9Vl0LppgSZGRbbc7YchQ0KAc52WX1blUIKTIfpeJknQZOvRL3BpYN pxJqobqHMvIlsceXTY3HN5ooCsyfY1MeA2Q7BPtZtnQHrXekPUshaHcszhyPhFnDZqTh 6OmiiOBS7493JHEHtRW6a2lYhZUp01sNoeB0ys5nXZq06034/la0JUPXP4JBBXbPdAt9 CdrWxDRLnzJc07IHTV0fDVdGDhQbHD9DLEA3WBny+d6IB9MN4MmIPdSsIw/rC6NgqADJ dkwANe33GMMQ2HfoQPsivFh4JI00TNWyRUV39Y/avyF6aMCCAivc+nshKtNBZxejFSuD bjYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=CSdxd9zI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a170902d2ce00b0018962fa3890si14653777plc.601.2022.12.27.05.00.36; Tue, 27 Dec 2022 05:00:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=CSdxd9zI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231215AbiL0MiD (ORCPT + 67 others); Tue, 27 Dec 2022 07:38:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231586AbiL0Mhq (ORCPT ); Tue, 27 Dec 2022 07:37:46 -0500 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8226C2A3 for ; Tue, 27 Dec 2022 04:37:45 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 74D8A15D5; Tue, 27 Dec 2022 13:37:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1672144663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CAAvJN77bvgX7oGEekHJcV4mBzu/DWg2fOxNjin+9Hc=; b=CSdxd9zIl65XUlXt2RIzmcidEvaoXvNPRocz5E8L4+rLCOEXYxE1mO4PqLEKpfydZ5uXlu ehVFfLL7hyuDxxKKpOsA/n7uv8JHG/Qa5qZcfNPMItpNKfgUuD0KzGrwPUI7ceO7b+Nuz1 h6f3cMNZ0UcojcdDJfQTtS6LdiwUSbkS5Dq+rCLMdNTM04XbulwHLLIYOsgSGb6YFekJGI 5axoPSly5aZe83WMuOlrPgNK3iZVDzhIQ4XUzY7vX2Yewmit7tQaFnRLSnqDRmFkxyHQ+I JvxuFN6mQGJCjuRboX+EQRlEH5Z+7q2Q8plMGrnK2feSX+SsMfvrwJCYv568Lw== MIME-Version: 1.0 Date: Tue, 27 Dec 2022 13:37:43 +0100 From: Michael Walle To: Tudor Ambarus Cc: Nathan Barrett-Morrison , greg.malysa@timesys.com, Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , "open list:SPI NOR SUBSYSTEM" , open list Subject: Re: [PATCH v4 3/3] mtd: spi-nor: Add support for IS25LX256 operating in 1S-8S-8S octal read mode In-Reply-To: References: <20221202135539.271936-1-nathan.morrison@timesys.com> <20221202135539.271936-4-nathan.morrison@timesys.com> <9927a8c3-40cf-2c69-46c6-f660ff2422b1@linaro.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <14b5fc24d0e9391807768c595a4277ee@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-12-26 09:17, schrieb Tudor Ambarus: > On 26.12.2022 10:04, Tudor Ambarus wrote: >> Hi, Nathan, >> >> The series is starting to look good, but I'll need another version, >> please. >> >> On 02.12.2022 15:55, Nathan Barrett-Morrison wrote: >>> This adds the IS25LX256 chip into the ISSI flash_info parts table >> >> Describe your changes in imperative mood, e.g. "Add support for >> S25LX256" instead of "This adds ..." >> >> It may worth to re-read >> https://www.kernel.org/doc/html/latest/process/submitting-patches.html >> once in a while. >> >>> >>> Signed-off-by: Nathan Barrett-Morrison >>> --- >>>   drivers/mtd/spi-nor/issi.c | 32 ++++++++++++++++++++++++++++++++ >>>   1 file changed, 32 insertions(+) >>> >>> diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c >>> index 89a66a19d754..362bc3603d8f 100644 >>> --- a/drivers/mtd/spi-nor/issi.c >>> +++ b/drivers/mtd/spi-nor/issi.c >>> @@ -29,6 +29,35 @@ static const struct spi_nor_fixups >>> is25lp256_fixups = { >>>       .post_bfpt = is25lp256_post_bfpt_fixups, >>>   }; >>> +static int >>> +is25lx256_post_bfpt_fixups(struct spi_nor *nor, >>> +               const struct sfdp_parameter_header *bfpt_header, >>> +               const struct sfdp_bfpt *bfpt) >>> +{ >>> +    /* >>> +     * IS25LX256 supports both 1S-1S-8S and 1S-8S-8S. >>> +     * However, the BFPT does not contain any information denoting >>> this >>> +     * functionality, so the proper fast read opcodes are never >>> setup. >>> +     * We're correcting this issue via the fixup below.  Page >>> program >>> +     * commands are detected and setup properly via the 4BAIT >>> lookup. >>> +     */ > > Why don't you set the READ support when parsing the 4bait table? That would deviate from the read handling of all the other modes. > We need to see the SFDP dump to determine how we treat this. I'm not > sure a post_bfpt hook is the right thing to do for this flash. See: https://lore.kernel.org/linux-mtd/e07105d41ec62a6ee47ca0295ca347dc@walle.cc/ But yes, I missed that you should include the sfdp dump and some other commands in the comment section of the patch which adds support for that flash (see Tudors reply). Tudor, what is the status of your documentation patch? I'd really like to refer to the kernel docs instead of having write the same over and over again ;) -michael