Received: by 10.223.164.202 with SMTP id h10csp1859693wrb; Fri, 24 Nov 2017 02:29:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMbR147WaNXanYfFDJXpQGbTbS10T370qkh14+FM2U6GrTHVtpsfS2VNkMAGJhFD8TdW5wZf X-Received: by 10.99.178.14 with SMTP id x14mr12170518pge.423.1511519379206; Fri, 24 Nov 2017 02:29:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511519379; cv=none; d=google.com; s=arc-20160816; b=Dh2ioRpRG3fnKFD5tJzuDwddSOd9EuxLGSjyios+0bsYeaoHwbVuiOJc/uTgf6X2Dw 14QRHZckpKdKnvMi2xyq9+SD3hnJPOg3UX839wU2lJgwSIMdJsRQ3L19bhsYAIaxkq7J A3i2QJ2XD/SnZ+2UBf2IOVF+SfGZz8hBLvo7dQ1pDSqE3o1Nf+N9vH6lUEekaBirnsJm 67jSv1F3wdgE17YL+93u/w2bu8mEkSm95PoKjcxSaqNjaVIFTeWDhmT5NtA7YtnkI4V/ 58f09DsRqxQ62yZ/H1S4q/1q1ditNnZKObbgLIbfgQsjanH5HvPw9BgMletRL7eGkEWs d9Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:arc-authentication-results; bh=EBAXtVwlchhZ/S2cmNFyVSf3eqZv5SVmSDKqs7NE3F4=; b=Am0Lkpq4Ix22uqykSPImW9M8wVWLfLt2+mKDahH2wQmd+ViuGUx9hBWh/AgRflSmaj wjT64imjevrl7T5yI2Y/s4LNsYZlBMxcYF2A32zQfXP4Nqta8Yq0zhUclAJmfv0hWnU5 wDAbGWA+Qdgq8NAgDdImODs/9QqtqEgHlwnPjQE+yZb0FsP5uKrL+/697QnXY/G/63Wk 0quMy6gC7tI8TdhpUCvARqsFO/kUCaFN7JYa+1EC4kcDblsVkE4njAHNrrgcpH2lATAW 8awBYKNfuoblumjOIyIMqqZ23FSz+StkKxsHNr5o+EURunkT7OC97AuXPRCbIYqMwA3b B3sg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o30si17728490pgn.211.2017.11.24.02.29.27; Fri, 24 Nov 2017 02:29:39 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753391AbdKXK11 (ORCPT + 77 others); Fri, 24 Nov 2017 05:27:27 -0500 Received: from mail-by2nam01on0070.outbound.protection.outlook.com ([104.47.34.70]:56960 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753303AbdKXK1Y (ORCPT ); Fri, 24 Nov 2017 05:27:24 -0500 Received: from DM5PR03CA0025.namprd03.prod.outlook.com (10.174.189.142) by BN3PR03MB2354.namprd03.prod.outlook.com (10.166.74.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Fri, 24 Nov 2017 10:27:22 +0000 Received: from BN1BFFO11FD032.protection.gbl (2a01:111:f400:7c10::1:175) by DM5PR03CA0025.outlook.office365.com (2603:10b6:4:3b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Fri, 24 Nov 2017 10:27:22 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD032.mail.protection.outlook.com (10.58.144.95) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.218.12 via Frontend Transport; Fri, 24 Nov 2017 10:27:22 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vAOARInM009453; Fri, 24 Nov 2017 03:27:18 -0700 From: Zhiqiang Hou To: , , , , , , , CC: Hou Zhiqiang Subject: [PATCH 0/2] mtd: m25p80: restore the addressing mode when stop using the flash Date: Fri, 24 Nov 2017 18:08:46 +0800 Message-ID: <20171124100848.1828-1-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.14.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131559928425452774;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(7966004)(39860400002)(346002)(376002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(110136005)(356003)(8656006)(77096006)(305945005)(72206003)(8676002)(105606002)(97736004)(81156014)(81166006)(68736007)(316002)(104016004)(36756003)(498600001)(51416003)(2201001)(16586007)(4326008)(86362001)(39060400002)(189998001)(8936002)(50226002)(106466001)(47776003)(1076002)(50466002)(85426001)(5660300001)(48376002)(2906002)(53936002)(50986999)(6666003)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR03MB2354;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD032;1:9kvdlXkwsn+KGEZwQVCpmV3Li8CWb7NK8UN2pxRYOdwBD+T2N1L/0ylBWrB3tYqdN+Q5L2Gg0u7+c8BVT2uhlcMbGKmL3m50Z8Uk9mmC57PBS1nM5+hAmcckKGu+wkN+ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4628075)(201703131517081)(2017052603199);SRVR:BN3PR03MB2354; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB2354;3:WdyeiZ0Mck9FsxvFl1hEzu6XhcaK13uvc/9mpf86SOhuISva9bVAXqvRu+XNqQZ8dzBSBy78DxjhbiIqDVD9/Ri0VwFujH113zattnPZOhDuUpcTuEyVAfu8fZOH7ya6DlJ+VyqxzRCv02cDtPFy2xN0y1JJ5xOYKfOiciWjBOk6BEbO30CBEXNE94oq4call5jhDu71yiIlP5wptGE4jsEjCmkKpFVmYW5du1s4gaC6+c1y4HSRoiA/FlHFr9dt3DxBuPTY/48wEW7TE4X1KMb76MP0vAZtlu9Z5yhONVmMmC9Fy2XoaEswsihVvBdhyDfgtcC+Nvzr98VxeQM97E9hj4H3/bGEGuDSI2C5UV0=;25:NTM4WPS8L73Mm1sthg5hBsQ/anZOA+kX8y6k/kC4CVryduOWDcVkFWk3FvKolEtoe5XVt1/cdXDLNLFWQSWq8UVNBPaUWpTTslb772ryUhfr8txHQeypGWmJymcrlkQL/fTXZANNIZBa/MGFh4A+qcZWQ0orwMX+HaiIs5hBroTO3NASq4GCYi9Woa7bHVnISe+m2aw2y3JEaz/jKDYzFJKgihZhWQ1fICMZH10mAT0mk2gLvIDnVtJ4BKQIhi5Btk1Tp+o8xXGySBgTOWa4z0OhD6Hyy4aoN27sCNX39F42AYeQs+q5Am1aKuZvSJ9I8pQpLmtWH6NV962Rc4X9Fg== X-MS-TrafficTypeDiagnostic: BN3PR03MB2354: X-MS-Office365-Filtering-Correlation-Id: ad0f6395-6934-4b93-94e6-08d53325f2f0 X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB2354;31:Anto0oyUQgo5oPo96OB5EJJGONBzbUUl8Rj+GLu9YPpoA83azs/yyc2fmfvTPJnsAuW910wO7/QokVhbi9vrEbuLZJaO8T9HsEC3fCT9aB0i++5qbLuk5CUuiazijuGu5P3qILIdaAfYs4Bz8LMgrivYFwJzkFj645ViWSCIZYzJ4V5SS5joOImIZ7K66KuJPJsL5W65YSj7kW4UJuEk6+jk6StNwucr/WpaTKb5Q6o=;4:Q1vWYInSHEJcXe2g8hCvkGkPgt2fW68wcuGSEqHCXk3DAbprUbLCAa2HEhXsNQbFMuJWYX0eEZwgQGz37jsAYmec7TrC3Qc070Tu5roVDVlOdiYxzewAiGsmvxqnYUg0KMUJjm6Pu7U+d44bvxOIQlHmIzzyZSSbOaAgFIBAxy5js+YcWvQoYb1QMM8RD860iKsU8VB/ag3nTC22m5irG1dC1ey5Xtoszg5I8HiPhtpzOqNAA41+0JbA3/1QIwVQcZNNm5Wh+uZbO63pPQ8d9EOoUg9P37gDDJJ4escmsIEA/B8xYl/2RfM04iIRi2B6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231022)(3002001)(6055026)(6096035)(20161123561025)(20161123556025)(20161123559100)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123563025)(20161123565025)(201708071742011);SRVR:BN3PR03MB2354;BCL:0;PCL:0;RULEID:(100000803101)(100110400095)(400006);SRVR:BN3PR03MB2354; X-Forefront-PRVS: 05015EB482 X-Microsoft-Exchange-Diagnostics: =?us-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sl3pIG6NZ0+X9WEudIVnUOw4EbQiS+F/rkX1uqW08GgiIKCAvcwSJgekgv/5Xh6uyN6FMk49HaGg/3whoehzeMKfO9/aBi1rh5nacYrNuudJb3UeoCvUbchu9v/rhSTnQnApB97ObJmMVoevTgJALceFySH7/4nc02dzpgBw/FlmOuvuXki58MOazkufWv7zUOc6No45VWi6N0wX21J3hIaQgnSztmqlfS1kgCFiD2jQCvPmE/Tl0f9L8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2017 10:27:22.3580 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ad0f6395-6934-4b93-94e6-08d53325f2f0 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2354 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hou Zhiqiang To be compatible with legacy device, reset the addressing mode to the default mode. Such as Freescale eSPI boot, it copies the images from SPI flash without firing a reset signal previously, so the reboot command will fail without reseting the addressing mode of SPI flash. Hou Zhiqiang (2): mtd: spi-nor: add a API to restore the addressing mode mtd: m25p80: restore the addressing mode when stop using the flash drivers/mtd/devices/m25p80.c | 8 ++++++++ drivers/mtd/spi-nor/spi-nor.c | 8 ++++++++ include/linux/mtd/spi-nor.h | 1 + 3 files changed, 17 insertions(+) -- 2.14.1 From 1584942877362846936@xxx Fri Nov 24 10:28:35 +0000 2017 X-GM-THRID: 1584942877362846936 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread