Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3668825imw; Mon, 18 Jul 2022 12:18:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tdxXah/7o6mBi8gSKbuKSpb/6kmDBnEDzHsiqc9t566EEpfpKQ1YQUguzfIVd2pA/YiCLn X-Received: by 2002:a05:6a00:21c7:b0:51c:4b2d:f82f with SMTP id t7-20020a056a0021c700b0051c4b2df82fmr29797796pfj.29.1658171916505; Mon, 18 Jul 2022 12:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658171916; cv=none; d=google.com; s=arc-20160816; b=O388XYO9wjtPqMZUAITT9FX9436tW2LEZGDjA7q3yqXUTW/Ri92y2ueW98xSGZO9Dv Afovbb8NqxeRoPnrWk0DTPfvcthdIY2sMO2q8MRQn0BVwayw9UnjLd00ufofhl5oPhgF b4JntcROGCxPWg5qHnLzhEcokNEiWRN4MgL4e9y5VxH96o/U3dMYV8kQlO555tgFqtW4 LLTLKSzhjdHgdLLkgJb4bALrcvTO//3JA9/ukOGdhD5xpNeVk7yvrEZ8sfgfI97Y7p/+ W1m8lxSq3XLrjhFHqU91bRGpi3b25s1PGqD3RKcsTT4HNoiJ07xCRhAB8X0+5y2I8PkL jRSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ajZurwdncCAgynNzM1MrS9PWiOGYl6kXPZjU9+ZXs/g=; b=JbF2u7pIlKq7gFlwWWDhp+zgQYPw0qYBksKGvN5Y47RzyhmLYgQT+JNBoJ/QvebSXF KNukFcPhgd5mPdfd0+/UaoDC+syEDS9uOygCAR+kYEKT2DKFkgMAyDY9PgxOLGmkDh/7 8KGncSCqiTsZVh5bNDv2Fmq15KKn40g7aJmZZRsKxPmHpCg88DJaT2LUtNwZ8HRefAxd hBaFxZkM/Jfi2ymfBtqAsp4aSYAsWYVSbArI2KYOZcs7q5Meq2WTCMhvnp3eumNTXIH2 jjmfRzes+Jq3SZrrd2dj+wIz4MXjq99rd7ngr5YCABrNzo4ElGTXOU2ly7aJm39UckFC WBcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=SO2JrpLH; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb22-20020a170903259600b0016a749201eesi14676564plb.283.2022.07.18.12.18.21; Mon, 18 Jul 2022 12:18:36 -0700 (PDT) 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=@sifive.com header.s=google header.b=SO2JrpLH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234098AbiGRSto (ORCPT + 99 others); Mon, 18 Jul 2022 14:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbiGRStm (ORCPT ); Mon, 18 Jul 2022 14:49:42 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64F1512091 for ; Mon, 18 Jul 2022 11:49:41 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id os14so22992714ejb.4 for ; Mon, 18 Jul 2022 11:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ajZurwdncCAgynNzM1MrS9PWiOGYl6kXPZjU9+ZXs/g=; b=SO2JrpLHD8/U3tQZJl9vxDLzH9y1488eAfsc5OcHp4Ap/tQCTnUC8PrSHYfv82S3AY rDFWm3RtyD9e3TE/1uDsGyymMJEEEMBnPQkCIUVOBY/eCGCKLcqhQNJQxoAo0+YTVpt7 L2jBrfJnsljJupsGuLN1QTmblDUhugZTNDQK/blCup99f4pKeXmjWFAzyLbBZomHVC6m /pvwuuC/QnFA4NJ0ScysJwkXFElXIV1vcoDtITwMImEO9yCfv+VIeg6loUzh4Rl8o/+T x53vSTUGoTNHfrV7fWU+VWzR60c4ckzl6c4f6WqYvHqPYGHufFv2LUK1fsPr74/HEUZW lC5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ajZurwdncCAgynNzM1MrS9PWiOGYl6kXPZjU9+ZXs/g=; b=aM3ahjhKo9WGyecwfWPcfUiainMuKSIxGalm4Eh05hlj8CZTrgXCXZIhvzGOO1leUW WxoaZoBzc+Of5u70YoQs0JruFTBXYUcvrqb3VbL0HomlKmMdzmDw+LmuBjeOGbBvF8FX U4sTm4tVUo9dCZIaZ8yzsXHzNWOrlSKugBYU3ipUZ3HKjKLCsECXqUZg1cFeI37t0ku9 K6VEHJw/mujW4vJAZTtxeFYNvPIvgu2gESL0PYWT2ty1YkFQ8M096auBQPwN9kvarDs3 erPhPXcRLlwsYaw6Ftm4SCPq/zTnHuUyb21NIWDg2Ix0CTOcUs8NpAbDKycROw9UjQvq VhWg== X-Gm-Message-State: AJIora8F0VbhrDmzFECzQCFiWPFJfjpQR9HmBks53RWaoeAYjKzndF9P BC5caKWuYq5g/Gm1UIl0qZJmvJ2KjWncN3iQCj54Vg== X-Received: by 2002:a17:907:2888:b0:72b:8f41:1405 with SMTP id em8-20020a170907288800b0072b8f411405mr26049141ejc.564.1658170180010; Mon, 18 Jul 2022 11:49:40 -0700 (PDT) MIME-Version: 1.0 References: <20220712163823.428126-1-sudip.mukherjee@sifive.com> <20220712163823.428126-3-sudip.mukherjee@sifive.com> <3a9877d0-3cc5-6452-764b-d07b38c72b00@microchip.com> In-Reply-To: <3a9877d0-3cc5-6452-764b-d07b38c72b00@microchip.com> From: Sudip Mukherjee Date: Mon, 18 Jul 2022 19:49:29 +0100 Message-ID: Subject: Re: [PATCH 2/3] mtd: spi-nor: add support for Quad Page Program to no_sfdp_flags To: Tudor Ambarus Cc: Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Greentime Hu , Jude Onyenegecha , William Salmon , Adnan Chowdhury , Ben Dooks , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Mon, Jul 18, 2022 at 6:02 PM wrote: > > On 7/12/22 19:38, Sudip Mukherjee wrote: > > [You don't often get email from sudip.mukherjee@sifive.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > Some flash chips which does not have a SFDP table can support Quad > > Input Page Program. Enable it in hwcaps if defined. > > > > diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h > > index 58fbedc94080f..dde636bdb1a7c 100644 > > --- a/drivers/mtd/spi-nor/core.h > > +++ b/drivers/mtd/spi-nor/core.h > > @@ -462,6 +462,7 @@ struct spi_nor_fixups { > > * SPI_NOR_OCTAL_READ: flash supports Octal Read. > > * SPI_NOR_OCTAL_DTR_READ: flash supports octal DTR Read. > > * SPI_NOR_OCTAL_DTR_PP: flash supports Octal DTR Page Program. > > + * SPI_NOR_QUAD_PP: flash supports Quad Input Page Program. > > You don't need this flag if your flash supports the 4-byte Address > Instruction Table. Does you flash support it? Can you dump all the > SFDP tables, please? Not sure what the correct way to dump sfdp is. I did this from sysfs. # cat sfdp | xxd 00000000: 5346 4450 0601 01ff 0006 0110 3000 00ff SFDP........0... 00000010: 9d05 0103 8000 0002 ffff ffff ffff ffff ................ 00000020: ffff ffff ffff ffff ffff ffff ffff ffff ................ 00000030: e520 f9ff ffff ff0f 44eb 086b 083b 80bb . ......D..k.;.. 00000040: feff ffff ffff 00ff ffff 44eb 0c20 0f52 ..........D.. .R 00000050: 10d8 00ff 234a c900 82d8 11ce cccd 6846 ....#J........hF 00000060: 7a75 7a75 f7ae d55c 4a42 2cff f030 faa9 zuzu...\JB,..0.. 00000070: ffff ffff ffff ffff ffff ffff ffff ffff ................ 00000080: 5019 5016 9ff9 c064 8fef ffff P.P....d.... -- Regards Sudip