Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2868888ybi; Sun, 9 Jun 2019 23:26:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3v81zc2QCk4Nf73r1NyK50ufyqh+g0f8hAb6vn/9daSl8wp8RIgo/c8SR4zhwlFOoj9L9 X-Received: by 2002:a62:8c81:: with SMTP id m123mr14308015pfd.240.1560147973492; Sun, 09 Jun 2019 23:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560147973; cv=none; d=google.com; s=arc-20160816; b=jNagfZmxtqCgZjQG7WZPgQakF2GC9AZqoy/AnalOWyhi5L7fW18S/UFfNhNhJcZPLA 6op/isJWHWGeFTWPhfcw6YsUgcx30OurV5X/7Jl7MUUBFB03xaqcraAiVbpMvsMLjVCu 1LeGP+/csdue/3zVQCV3eC/7cogu9xOZBrxh0HPgZzqYMF51IJJmrpW0hvJpdNDaHQ9D iDI5Yn8q4Hby3/VB0XYPSeJ3rUBO3D61m+TILdujUOoCJmfxl77NvPtMBH9zXZWz6o3H la9GcAxM+U6gLNTyDhSkNl4UYSNwLqS92kBhTAg7TTeVopRJ+kwnlHrLe3DNt+hQa29v 4Uzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=aL2tpdUKHw05u+ZkffpJ7O9v7ev7PFJCnIIlysFHIP4=; b=UVbnl7LcEtwm2Kbdja8Vwjl06ydWlYQFjfKHyXzLJbTUTwiLv2ben39OOc/yF7HMDD /KX04LmZeVnliVY0jxknMDdeqZpgfIoGDe3Di6rl+WnKSNkuOcUb9BgekU3J6UEkUE0P HJGZ67JyzrAweZOgJTfMD5Qfl0em5OvTpgFY2F4TMqP7G7k92O2LxRsF0ns3GqaGdIBt J65kWcdIfeSh1hXcd1jDLa/3AtE1oBzqcI2LIFf8rZWMc5Tk0uHEyIux2kzuuC7mD//o Hujw11G/TF+nX2ViqKPj2YsLiWlyteGPRTvaZRhpQ9W2GSxZduIwW7Lou5lUAyjFMPcZ OihA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=rab16fPF; 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 t7si8674475pjq.53.2019.06.09.23.25.57; Sun, 09 Jun 2019 23:26:13 -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=rab16fPF; 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 S2387655AbfFJGYO (ORCPT + 99 others); Mon, 10 Jun 2019 02:24:14 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:2600 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387431AbfFJGYN (ORCPT ); Mon, 10 Jun 2019 02:24:13 -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 X-IronPort-AV: E=Sophos;i="5.63,573,1557212400"; d="scan'208";a="35048209" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Jun 2019 23:24:13 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.87.151) by chn-vm-ex01.mchp-main.com (10.10.87.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 9 Jun 2019 23:24:11 -0700 Received: from NAM05-DM3-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_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 9 Jun 2019 23:24:11 -0700 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=aL2tpdUKHw05u+ZkffpJ7O9v7ev7PFJCnIIlysFHIP4=; b=rab16fPFgSaUcsxFFngUfLSF8abcOi7LdwsA0as4J2fEYbV9zYYoifws5FsC+h/PYxhswyBD47p9/3f7s5DQxp1Qrkkd6KIVV9evIJ/X9O/iSmd0kxJzgF8FhEMmP7Pc5xsoHaVfIAIkMgj2AsVmVPyZ9PcVB9rNPta6dJqnqaA= Received: from BN6PR11MB1842.namprd11.prod.outlook.com (10.175.98.146) by BN6PR11MB1556.namprd11.prod.outlook.com (10.172.22.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.13; Mon, 10 Jun 2019 06:24:05 +0000 Received: from BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::e581:f807:acdc:cb36]) by BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::e581:f807:acdc:cb36%9]) with mapi id 15.20.1965.017; Mon, 10 Jun 2019 06:24:05 +0000 From: To: , , , , CC: , , , , , , , Subject: [PATCH] mtd: spi-nor: use 16-bit WRR command when QE is set on spansion flashes Thread-Topic: [PATCH] mtd: spi-nor: use 16-bit WRR command when QE is set on spansion flashes Thread-Index: AQHVH1UacBq0FintGkWJpZVpCwLZ0A== Date: Mon, 10 Jun 2019 06:24:04 +0000 Message-ID: <20190610062351.24405-1-tudor.ambarus@microchip.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0801CA0082.eurprd08.prod.outlook.com (2603:10a6:800:7d::26) To BN6PR11MB1842.namprd11.prod.outlook.com (2603:10b6:404:101::18) 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: 596e57fc-8ac0-4fd4-b087-08d6ed6c3c3b x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BN6PR11MB1556; x-ms-traffictypediagnostic: BN6PR11MB1556: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0064B3273C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(346002)(366004)(396003)(376002)(39860400002)(199004)(189003)(6486002)(2201001)(6512007)(14444005)(256004)(86362001)(36756003)(2501003)(1076003)(53936002)(4326008)(107886003)(6116002)(3846002)(2906002)(25786009)(5660300002)(8676002)(81156014)(81166006)(71190400001)(71200400001)(99286004)(14454004)(66066001)(8936002)(316002)(7416002)(54906003)(26005)(110136005)(50226002)(66476007)(64756008)(72206003)(486006)(66446008)(66556008)(6436002)(446003)(476003)(2616005)(186003)(478600001)(76176011)(11346002)(7736002)(6506007)(102836004)(305945005)(386003)(52116002)(66946007)(73956011)(68736007);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR11MB1556;H:BN6PR11MB1842.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: dYfEWYf3SMQef9sEV7G5JDgvehoZx1uVxuAQoyJoRIIPZz9Terla7dFsjtIgyyigs1fyIyPKF0vo9OhQ8HjZKwiEfRFrHhnEWxCyoW0v94IZMbxIQPq/5dN/lvqN4Bdu4Lxild1hB4ytFw2HxfmzRRbxJIRfLSi0OxqqC/UN5K/QDqsoT8a3y7D16+U2MKA7U4mtq0fVuZ7QhvTQxDCyeWB8PHIOj+LWOkmmdrzc5P9j6VTEJkXusUuh8y7BjT3Gy0oao0jJX0FD13xYV+YXnpSKTVvholRdTNYZhKAJM55bXVw4LEY6jtSC9TZi2h1U/7YfKsoP5aoRXYT7dewuCsSPJMLboZ7T7+SqdEIDLlCwFifhdI0A2K+GiAPigrAHpRbxr4fdPPnZaMYdXXq9e+vWmEVoT+xkU15fnG1Lph0= Content-Type: text/plain; charset="utf-8" Content-ID: <5BD403A693F3B64CA9B42896918ABA1C@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 596e57fc-8ac0-4fd4-b087-08d6ed6c3c3b X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2019 06:24:04.9925 (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: BN6PR11MB1556 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogVHVkb3IgQW1iYXJ1cyA8dHVkb3IuYW1iYXJ1c0BtaWNyb2NoaXAuY29tPg0KDQpTUEkg bWVtb3J5IGRldmljZXMgZnJvbSBkaWZmZXJlbnQgbWFudWZhY3R1cmVycyBoYXZlIHdpZGVseQ0K ZGlmZmVyZW50IGNvbmZpZ3VyYXRpb25zIGZvciBTdGF0dXMsIENvbnRyb2wgYW5kIENvbmZpZ3Vy YXRpb24NCnJlZ2lzdGVycy4gSkVERUMgMjE2QyBkZWZpbmVzIGEgbmV3IG1hcCBmb3IgdGhlc2Ug Y29tbW9uIHJlZ2lzdGVyDQpiaXRzIGFuZCB0aGVpciBmdW5jdGlvbnMsIGFuZCBkZXNjcmliZXMg aG93IHRoZSBpbmRpdmlkdWFsIGJpdHMgbWF5DQpiZSBhY2Nlc3NlZCBmb3IgYSBzcGVjaWZpYyBk ZXZpY2UuIEZvciB0aGUgSkVERUMgMjE2QiBjb21wbGlhbnQNCmZsYXNoZXMsIHdlIGNhbiBwYXJ0 aWFsbHkgZGVkdWNlIFN0YX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