From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70254C2BA19 for ; Tue, 21 Apr 2020 04:52:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E00622209 for ; Tue, 21 Apr 2020 04:52:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cH/hgtjA"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="vWfB7eOO"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="M+gzLZiY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E00622209 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:In-Reply-To: References:Message-ID:Date:Subject:To:From:Reply-To:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FhxBJGY71XAkepwWK5sE3G1Pl5g4hNjnYYkIe5Y4J24=; b=cH/hgtjApt64iM NvTdXbVzfqTNKGLNLqCKYlQGhraM3EGzeDYZVo3N8zVKJUAN5WjFda+JLfQ2gnxuYns2WlHKGFRFV Lib/bNa4IB9nkBPn6DBtzQjWOCIhVEV4JBpaROnVwfeAwS5y2EIyRuqYHbrug2sPJp4g1nu0Ecpdu eUBBgQuf11M/ngYL8wdqQkOjhveCL4ivLiI9PC3QubCndXgvXx50x3KK1unNe5ZerBgtz7aZaYLEP TJ31wWUTBPFHFYLn0AGtsT/jCkLjzOZbGlqE6BLcV0RKSAxWqElWJmzfoggVVptgummxR/IOLu1yc EAWaO2YA9Ss18bb9NIdA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jQktJ-0002X5-Go; Tue, 21 Apr 2020 04:52:13 +0000 Received: from esa3.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jQktE-0002VD-2Q for linux-mtd@lists.infradead.org; Tue, 21 Apr 2020 04:52:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1587444727; x=1618980727; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=kcuRfF3wOOIH6y7YJTYK8rGqDUdN8xpS9MBPB1A74Xc=; b=vWfB7eOO3hmX7q/qoQiFKLuNq/XKvXWf2sfvV13J1/57NLoB9REjmIBg NLFOH4Rtg26cxcmr3zNkE3VsQj0+pc9zs/UyJ4orAN/9IA9cI03YhCApV 2y2U7DMKKLHhpOIwZkAbwskB1XCEGh/p+oCbTQLMruAsj9f8f/qy9VmDt qQSEzPYHnUqMlWwzWM+1NaaR7sV9ulgI4uBJzDWSWcLkmC3Ogb/HURD0Y jCw25gwOQQFYvermlJrItfdxpWE6TlaYn1L48dmzrbNzkYPzgBY1mLTth IR7H1QX4vy84cH7a01wa91ADWvvtJ90bHkkXYcakAQRUUCnzSaiIYwNGB w==; IronPort-SDR: mLt/66QvLhnQ3vzM1TFPPnt964/BXzzXyb6XOqenofzwbDQvi7b4/JjIRvKsqvKvD1/lNSiVJF LPyIHk43TyeemTH50eg11y8d67mP9WNWHArcG/5wRKXDR6a9iOk8QK/X/ldcqAvI2seOLk6fHO drqnMaWTEMKIrlpSe1sn8eMapaG616isDL3TV7u+UDSmmgLYroPv3nxEd3TQBUFJ7Sgh+AjzXR D05fKWOw9jb3pO1b/hfN0S1nhJBs5X3yQVIFj6/O4tXHv67TAAMMO8CjQw2Qp3is1/1vNgPMkw g+8= X-IronPort-AV: E=Sophos;i="5.72,409,1580799600"; d="scan'208";a="73979363" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Apr 2020 21:52:06 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 20 Apr 2020 21:52:05 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 20 Apr 2020 21:52:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aYBXHJwM+wrSV+ccUu/7/1yroZbxLLsMLe7na2H6LZgYF+dbD1nMvNB9n7RsR65dA6y6C3gD9GIhVvQVTu3+N2L55m1tPMc4DZS5riIQEFirb2kcqQ8Tye9SHOIdedm4e23E+700ojn3b9FGRSfK67jop3lvUGVQgkGm06/T1JjzKhc57BygfxAxBP2SwvC7+0UNJUw0Lq8mttPsy8K7JESrvEGEWD/MBJ9fkuaU95CC5F/7WQi5SEtE7v9+R+cDkmVFuVxlFaSjgoaG5OQD5BlXQsqdFa1w4+DGgBkMSyRWzr6R/9gW+tH0y7KRFyvMpLwa9NHfV6rS7KpF8hI55A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kcuRfF3wOOIH6y7YJTYK8rGqDUdN8xpS9MBPB1A74Xc=; b=GLZNG4S/QUBzxCHQXWWBNkuw5PP3wN1xRxruWJjBBd8w8pxTZuW7Syfq57Im4vsUtfDWc7+bDuuRJA542B51UdrVB9AnJXMZPHSau6b7m7ShpGcHmJE/3s4N/WOMcitSjFplh0aiLWYb3CoMOfNlT3bPOHubJIf7J7hY73LGgYIa3vxRz/z7fcWpjrvOOwUvvc9RA1NAwQ/Q7iXCsoEZc/OLfjM8hn8nYNAE7gy5Pt4VCnax7YyV9d/RTp9Xcdadm/t8MbtRkjTfWZCWFjJxdqLwR3fMl9o6PNYg6GM+gZuguKFMzr7yHmqukCSlAqHIG0k83NUpRa985fO+ruGPpw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kcuRfF3wOOIH6y7YJTYK8rGqDUdN8xpS9MBPB1A74Xc=; b=M+gzLZiYejw0A9E3PSZLePf7G55IxI/xGNlQeTgp1C1F3brILT5g7Y3KLI8Os9ZucG+oepe8DLne2j1tWJJwSatnbHkYglP0tbZY6qDWWytLF5cy+2H8Nt2vzo+amDqJk/YGUhfRUdePhoEHCx1g0/JgANKiq3S+7Xdvfz5qKMk= Received: from BY5PR11MB4419.namprd11.prod.outlook.com (2603:10b6:a03:1c8::13) by BY5PR11MB4387.namprd11.prod.outlook.com (2603:10b6:a03:1cb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Tue, 21 Apr 2020 04:52:02 +0000 Received: from BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::d847:5d58:5325:c536]) by BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::d847:5d58:5325:c536%7]) with mapi id 15.20.2921.030; Tue, 21 Apr 2020 04:52:02 +0000 From: To: Subject: Re: [PATCH] mtd: spi-nor: Add 4B_OPCODES flag to n25q256a Thread-Topic: [PATCH] mtd: spi-nor: Add 4B_OPCODES flag to n25q256a Thread-Index: AQHWFyrJEeAl1Y63FkSdbq93yQPoxg== Date: Tue, 21 Apr 2020 04:52:01 +0000 Message-ID: <9715610.TpusJ8o3lr@192.168.0.120> References: <20200417174620.16420-1-danielwa@cisco.com> <12178429.kzmL6e4XO6@192.168.0.120> <20200420162550.GZ24466@zorba> In-Reply-To: <20200420162550.GZ24466@zorba> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tudor.Ambarus@microchip.com; x-originating-ip: [94.177.32.156] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 87bd4c2c-928e-4c17-8aa5-08d7e5afbb4e x-ms-traffictypediagnostic: BY5PR11MB4387: x-microsoft-antispam-prvs: x-bypassexternaltag: True x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 038002787A x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB4419.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(376002)(39860400002)(346002)(366004)(396003)(136003)(316002)(66946007)(66476007)(66556008)(76116006)(64756008)(71200400001)(4326008)(66446008)(5660300002)(186003)(54906003)(91956017)(966005)(2906002)(81156014)(8936002)(8676002)(26005)(6506007)(53546011)(14286002)(6486002)(478600001)(86362001)(6916009)(9686003)(6512007)(39026012); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ohdmcydyN/+4QHGCBR71zw0vDEZ/ASykGSW+H96ZuoGubebfzNFrO24m0+E1nodsq3+5+64ffjIF3ttsrydWUXee6+7XH46h4SCqyZahdMfs4e5uZ/vunl1Gj1TJQJpPDqJeHaLiW0IRYX+cF3e1c0AOPlvDlEFsWiJ16JnthOEeK/0xMrSUla3hwlTn6Lhl4o8rs0UV7GndafGfaC/vKyo9t1BZHxI77/1ILH2JFCzag26nJQaDeA7nfSPxKAV6W6huvWN7tA8pqOJDfoP09F3bdn+HRIBQZIZb8OLA58HAgW5w13rUZ174FYPxafLlQ40QQETvUPGChXjbv8SdhmOfGmpGyWwWTNiRxkz2AJolP/jBmdJM+rL1TnuJB1DbODdHycsIzw18xCBd+Qm2bRYOq/0+AtH1a1pyOKBSDbiZRWhR/q0tUubAFt6jjJJjENKbKMd8IoMAo1AICqHhyYseixQNtXOtp0WSfwltuAJ5RmGsRxFP6NEbLVWGJaJWd/Vtk1uZKZSjq00cm34QPZwlB44e7o8RRmeG+7KdV8mV8HUqdcBywoTDPCEM90qQ2t32W1+EHl2An8Ymw+tXRA== x-ms-exchange-antispam-messagedata: asyEKS8qIRmFvKrInO8v1/Wl6gmAxT/NiCGaA1+PnwE8aoixQuyWXVHtFKbWpdq8OGAtLu/R9xdeW/b2wVd5SYOKIioDlt/0rmURc/f2b+nvcnbsxxyiuF4nzfRhoPj64YrknWjS+crtDp2TKE8cRg== x-ms-exchange-transport-forked: True Content-ID: <87E0B0B534719C4DA8797796E957ECFD@namprd11.prod.outlook.com> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 87bd4c2c-928e-4c17-8aa5-08d7e5afbb4e X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2020 04:52:01.9139 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WO+oRfiMlu4TAcY2uhIQFVIJ7dXf+FA/zugX4o8gwIeI5AjmykoLQA7lWFWxNQAV9YKJDAKv6M6ckjygDyEjAWRsB/nYpNDL0jyNaxEsNec= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4387 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200420_215208_212599_43E16711 X-CRM114-Status: GOOD ( 13.43 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: vigneshr@ti.com, richard@nod.at, xe-linux-external@cisco.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, miquel.raynal@bootlin.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org On Monday, April 20, 2020 7:25:51 PM EEST Daniel Walker (danielwa) wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > On Mon, Apr 20, 2020 at 03:45:59PM +0000, Tudor.Ambarus@microchip.com wrote: > > Hi, Daniel, > > > > On Friday, April 17, 2020 8:46:19 PM EEST Daniel Walker wrote: > > > EXTERNAL EMAIL: Do not click links or open attachments unless you know > > > the > > > content is safe > > > > > > The n25q256a supports 4-byte opcodes so lets add the flag. > > > > This is not true for all the n25q256a flashes. SPINOR_OP_PP_4B, > > SPINOR_OP_BE_4K_4B and SPINOR_OP_SE_4B are valid just for the part numbers > > N25Q256A83ESF40x, N25Q256A83E1240x, and N25Q256A83ESFA0F. > > > > You need to differentiate between the aforementioned flashes and the rest > > in the n25q256a, in order to add the 4-byte opcodes flag. > > How do you suggest I do that ? Can I add a new entry into this table with > more specific information about the chips ? > We need to find a differentiator at runtime. If we are lucky, there might be some SFDP changes between the 4-byte opcodes capable flashes and the rest. Please dump all the sfdp tables, we can start from there. There's a thread that might interest you, see http://u-boot.10912.n7.nabble.com/Regressions-in-MTD-SPI-FLASH-td382956.html#a383126. A more elegant way to solve it, is by parsing the 4bait sfdp table, but I haven't checked if this flash supports it or not. Anyway, not something that we can control, the manufacturer should add it. Cheers, ta ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/