Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5718063ybi; Wed, 31 Jul 2019 02:13:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxegQXJhyrgGewNuZDBbzK4mi3aKKU2yhkV70ckAwkAgMSEF+e1YTX/0+9KNVi91a+2GcNn X-Received: by 2002:a65:5c4b:: with SMTP id v11mr70370697pgr.62.1564564389133; Wed, 31 Jul 2019 02:13:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564564389; cv=pass; d=google.com; s=arc-20160816; b=AnuLUTNA0+kYJ04e1/wq+dcKM91tBivDugc3vUxixHFZwyj8HpHdYJryEKihRpaki8 fl4B5T9vLqny+mra2coD98ma63DXBJOHEIZQH2e/p+NyqrctxysFiNcF6RZJFaWsiEoY ZUaEo3cGY0AWn2LlMOZhb4k0vgmbyBj8IGQ2xMQQP8oOKIndYHivlisxwH8R5DwJpYBr TIsrTDDv4CL2dwH0eEzDJ30v+f6E1NRNSBobg0H4o0nieatQKJVNYx39C6F7Twg5+YxN Zb8P+5PlYnPwjCxEYeWJw9+sHblL5OqAi9dg9Q8m5CDtehfn2pfRDUYHaPH57e+Lv2TS 9V9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:ironport-sdr; bh=O20gv4qZtrIvzsmzkb69t+9+nhUyaTwXf0ZAqbZ8q7I=; b=tOKE+LWMuC8uc8lkBAVvStVFRY7yG8PUqeTYqyMnmvlNfoFj7VwwaEOVD5tqQufZTX a4JKNhliMFv/0b8FRJBrteP3UImPS5iVMvSeLqZdNzUW8LNfkyWuOfjqOv2AcgE9fc6S z7A9gANSv1eqTQuIBbJL8i/TJYRE1GZaaDhQE7AdFfoxZIRKCn5wjGSIN+sgLD1GjykV ZXCgJ/Je8J/6J0pp/iCjVt70mXqkveclQyM0I0vIAQSPlGz5Adx8WCLqNfAQ6ye3i49W j8/fvCCTK1H1sAI7crsCVEvj/SXV886f8mRa39ZExn9ItkCpHdY4ce2ccrH0QFhs+C2h UJFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=bjH8OpQe; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h38si13399978pgi.327.2019.07.31.02.12.53; Wed, 31 Jul 2019 02:13:09 -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; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=bjH8OpQe; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727772AbfGaJML (ORCPT + 99 others); Wed, 31 Jul 2019 05:12:11 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:61880 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726717AbfGaJML (ORCPT ); Wed, 31 Jul 2019 05:12:11 -0400 Received-SPF: Pass (esa5.microchip.iphmx.com: domain of Tudor.Ambarus@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa5.microchip.iphmx.com; envelope-from="Tudor.Ambarus@microchip.com"; x-sender="Tudor.Ambarus@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa5.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa5.microchip.iphmx.com; envelope-from="Tudor.Ambarus@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa5.microchip.iphmx.com; spf=Pass smtp.mailfrom=Tudor.Ambarus@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dkim=pass (signature verified) header.i=@microchiptechnology.onmicrosoft.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: UYgahY1/lR1SXQQtxox3GBu3VSj/KoW47BJ+TJdDBHD4AYOWqapl3I+EX2kEqt+rvQbzwaoeMn 7IOMyeHCEccWKjSPJmzhlgBYzbyJp0oiJYID4qJYMAyvUwZYNtO1Nvxd0lcXUaVyukLYZBmlsf lpU5/WZ+Hdlcx4RYogf6mxX9YDEYWY5qn+RzAah9zCMtVgRQj1Loan8BT8C6wodqVU+WJyK3pb zHyNBe+sn41vX3lINqB86zTrAqcw8rn0PeqfWUexJ0as5cPFu2lC8Z68F87nYX91PP24cGjSbp lRU= X-IronPort-AV: E=Sophos;i="5.64,329,1559545200"; d="scan'208";a="41824393" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 31 Jul 2019 02:12:10 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 31 Jul 2019 02:12:09 -0700 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 31 Jul 2019 02:12:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iRVQW0+Tiz5HH0vUNr7MEFYxAuDkpKD0NhwmWjpfoMdncStkDdiJ7pvoCM1g43ZAz2gFd1tpU/QqNRrJ2/KA3GWBVa0qWKNyfrcUVA8z4B8RfnUCypp0w3KHvHZ+JjFB0HzNaftWdFE8IctIEWhcvKaGqfqb0u6HfLWWS6D2k+syR5EpNR1WFiljEugzYIYDTLnVrQHfl3HSPi1Wuw1bZzpIhXN+3kPEphCV7MLoWNZPzNCv68WdAIZ6FyRxAiaJhoM0gX5nQHuZ570au0HNX+XaT3E19Pvb++qdTdv0Ku9ISvMTYzQI+FTxIZ2MDKVgIT5sIijIDip3Fql16Oa0zA== 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=O20gv4qZtrIvzsmzkb69t+9+nhUyaTwXf0ZAqbZ8q7I=; b=JBhVZUZ9vL6KI/lVs0xpPwQUcr+RAkjYtCkF/GQhmkxxnOvXYCNPlPkSxoXe7xn10ccZ9DrqIn53PJFsiGZjgJNwbPgY93y8Sjnhor1tr4OMMKBefb6KdnH9L4DD8KpUQmTH1+2+92ieyix0PMEgL/KFtoMEg/RllfOOnVjIQvOvqRQDKV1um/mOHR8jqRcwZX5aF7/GVDSFvw17qimVocWQ9mM6ZWGl0xwKn62lFOU8A9/+xZfeK3moKMWsOc6wwyCdSAUua+nDhWv7Ai+0l9XzdjkYcO3t51weTFd673o/AqxiC7Eb6zRPQ+khQSqxmg76qDjzrWVNnJY71awDqA== 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=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O20gv4qZtrIvzsmzkb69t+9+nhUyaTwXf0ZAqbZ8q7I=; b=bjH8OpQeL2rX/KTtdxg2tyHT8vaMyEycctXUernoTnkswc2seMC8KNllArDFvtAEaSUuZZGAoRiKkaq8kuc0D2PZPcha+9zjrl1KIRazOZHG4L+YDdy1qaaMDANXeomUilR3iO1lgIuqhmsIP3p37wE6/quTpOEH7kNT2YIbw68= Received: from MN2PR11MB4448.namprd11.prod.outlook.com (52.135.39.157) by MN2PR11MB4414.namprd11.prod.outlook.com (52.135.36.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.16; Wed, 31 Jul 2019 09:12:06 +0000 Received: from MN2PR11MB4448.namprd11.prod.outlook.com ([fe80::61d1:6408:89a2:8de5]) by MN2PR11MB4448.namprd11.prod.outlook.com ([fe80::61d1:6408:89a2:8de5%2]) with mapi id 15.20.2115.005; Wed, 31 Jul 2019 09:12:06 +0000 From: To: , , CC: , , , , , , Subject: [PATCH 0/6] mtd: spi-nor: move manuf out of the core - batch 2 Thread-Topic: [PATCH 0/6] mtd: spi-nor: move manuf out of the core - batch 2 Thread-Index: AQHVR4AGkgpKbjD8rkCgvILRqzwWug== Date: Wed, 31 Jul 2019 09:12:06 +0000 Message-ID: <20190731091145.27374-1-tudor.ambarus@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR08CA0130.eurprd08.prod.outlook.com (2603:10a6:800:d4::32) To MN2PR11MB4448.namprd11.prod.outlook.com (2603:10b6:208:193::29) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.9.5 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 17e73194-4ae8-41d4-1a56-08d715972887 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MN2PR11MB4414; x-ms-traffictypediagnostic: MN2PR11MB4414: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 011579F31F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(136003)(396003)(39860400002)(376002)(346002)(199004)(189003)(966005)(14454004)(26005)(81166006)(6116002)(50226002)(5660300002)(66066001)(2501003)(6512007)(25786009)(486006)(102836004)(107886003)(2201001)(110136005)(305945005)(3846002)(7736002)(68736007)(53936002)(6486002)(478600001)(86362001)(71200400001)(71190400001)(186003)(476003)(256004)(8936002)(6436002)(386003)(52116002)(54906003)(316002)(66946007)(81156014)(6306002)(2616005)(2906002)(64756008)(4326008)(99286004)(36756003)(66556008)(8676002)(66476007)(66446008)(1076003)(6506007);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR11MB4414;H:MN2PR11MB4448.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: rTkecR/SII7FLl7OG6Fxd6TrspA8pykSJ4r9Nni7SL8U+i9ZLIeXeKDOLj0LDsYnZ5XUPGs+26B/orCkbC6bKxtYe7grlxRPVt0ypgVZP0RLYvus839MfEGyfpXbWWtaLzy4qm2XoDHCyuu6UeMHnAkEFppRLIwDtBBlEiwc3ahkjv3TWAylcA9VrKBayDoloSuxcjzqtu7MyNoaZ/Ij5UXPO17wJ/Pu0RqViRiCycvMMDfQmBwJENQvCs07wDzLpVlzXMoSRF/48qQx1ntgYe35W0Fwwt3qa+L8Gnki85wwa34uwn9Z5SDi8ce8VgnDZlvPj5Howxh+gBCt58OetfnmCYIQU5VvQMN2UCvNiNd+nZxXDMUx3pIcZwLWKmXf4ftn+ljZxAzdJcQaReCCi9zUr4fR5fk/9uF+oX51Q2I= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 17e73194-4ae8-41d4-1a56-08d715972887 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2019 09:12:06.1513 (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: tudor.ambarus@microchip.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4414 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tudor Ambarus Add post_sfdp() hook to tweak flash config. In the quest of moving the manufacturer code out of the spi-nor core, we want to impose the following sequence of calls: 1/ spi-nor core legacy flash parameters init: spi_nor_default_init_params() 2/ MFR-based manufacturer flash parameters init: nor->manufacturer->fixups->default_init() 3/ specific flash_info tweeks done when decisions can not be done just = on MFR: nor->info->fixups->default_init() 4/ SFDP tables flash parameters init - SFDP knows better: spi_nor_sfdp_init_params() 5/ post SFDP tables flash parameters updates - in case manufacturers ge= t the serial flash tables wrong or incomplete. nor->info->fixups->post_sfdp() The later can be extended to nor->manufacturer->fixups->post_sfdp() = if needed. This series opens doors for 5/. Tested on sst26vf064b with atmel-quadspi SPIMEM driver. Depends on: https://patchwork.ozlabs.org/project/linux-mtd/list/?series=3D122420 Boris Brezillon (4): mtd: spi-nor: Add post_sfdp() hook to tweak flash config mtd: spi-nor: Add spansion_post_sfdp_fixups() mtd: spi-nor: Add a ->convert_addr() method mtd: spi-nor: Add the SPI_NOR_XSR_RDY flag Tudor Ambarus (2): mtd: spi_nor: Add nor->setup() method mtd: spi-nor: Add s3an_post_sfdp_fixups() drivers/mtd/spi-nor/spi-nor.c | 192 +++++++++++++++++----------------- include/linux/mtd/spi-nor.h | 232 +++++++++++++++++++++++++++-----------= ---- 2 files changed, 245 insertions(+), 179 deletions(-) --=20 2.9.5