Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp346305ybg; Wed, 10 Jun 2020 02:19:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpQGKNV7ua8ARAkrk5MW+moGlJuiIebn0fvApzYtIwfxvLP2I1kkSzv11jz9P/GUbDoLxt X-Received: by 2002:aa7:da4f:: with SMTP id w15mr1580770eds.384.1591780766294; Wed, 10 Jun 2020 02:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591780766; cv=none; d=google.com; s=arc-20160816; b=AbPIVpwY41vKmTzftL8c581GmyLz5EIB5F5eip1LrID0sS1aToMuwjhCIBjG8Xdu0I r0qOCe+8Asj9mE/CwEzHQEkQKAUbep8t2bg2kPAa4qI0d++6q7KeDcBMDcAQPHW6G6qM DAQMr3nagtDwEaS8lroiSbTDgNBA0JfzI9iqTjpR/E2M60QmwtHn+NgHQsO5RKsTe1gF qY2k9oRcVnGEwiaQcR0K/viz4sJjpjOQ9JS2RXcbJPT8psHfOEnbdmN7zivBmS5Ct5Fx QUkdRPyMVaq6wly5P6pqFbmK6Bn+D+/wW2VYDZ/IJl1knC89FxfFlKBszQE+HGa4y2cO RMhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:dkim-signature:ironport-sdr; bh=uFB8UA5LtSlSvu9TuJrMAU8B3bj2MvvYNR4xhwO8GjM=; b=ChxMnzQbrnSlsyUsdN2zzTAXdILcJr5OE8cSMzZTcHRdDwwge63WHzcf0D62vIY2Um rIE493TcTt+EMjOCCyBO3G6o2h/VSRzN6fSduzDLKzq0aWEq2O9k36+ZIJH0k/EAPg5G 2kXMRqy0NgV68FAwN131nDgDjRJNnMCf3p+eZAGaX0jv7EyaWE+VfsQXVlkZcxlgzWWM 76FHJAEbCTaQ3NrgWscxa5Fv3E0onpBw0crkJbaEQtg1jRx/Ol9ZHgbr9yc74CpsjZWg 5/cYLWoJFEsfHkvXaalXMxDbIhvYqQm/XfpLRM+zIOZ84uDDIo9xLhkhasg6WFXsLqHQ nOwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tq-group.com header.s=key1 header.b="J7/1uOlt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q22si12088555eji.446.2020.06.10.02.19.02; Wed, 10 Jun 2020 02:19:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@tq-group.com header.s=key1 header.b="J7/1uOlt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727045AbgFJJQp (ORCPT + 99 others); Wed, 10 Jun 2020 05:16:45 -0400 Received: from mx1.tq-group.com ([62.157.118.193]:57510 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726981AbgFJJQp (ORCPT ); Wed, 10 Jun 2020 05:16:45 -0400 IronPort-SDR: QPwtd4PcZPyNZ7xjw5yFjJ4Y1Z8et1VF/uhqk0znRb+k7N/trw6xfkPltpRtHBKJf9kVll1Ct4 cLANCzUhoyl7LUlMK6XpB7inYHhHVK09f5Uv27yn0IJJYgI9oo49QtVnEfjtQqUxcQXILqj/1h ZeIuq0daIKXHoA4mYfIxadWs80tVyY6fpFu9/nJ4WN+0hQOJf9Uu+OZUTLlO9HKGcBBO0gZ/Ph OqJvmC8Iju+rPYrS2VQSBPE//r32WPr5miET4lVykTu/BCSCYUhR/AfblD7XbBKCLZlOxiZi8A yHQ= X-IronPort-AV: E=Sophos;i="5.73,495,1583190000"; d="scan'208";a="12632101" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 10 Jun 2020 11:16:42 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 10 Jun 2020 11:16:42 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 10 Jun 2020 11:16:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1591780602; x=1623316602; h=from:to:cc:subject:date:message-id; bh=SX7bKwUUzHRTqxNVLzwW4z+x2qXT4twsmECkG5lWMXw=; b=J7/1uOltcQpINyPJbQQgp6qUSG9QCxtSsrBreI40RN7h5AvFB1aAAGc4 MxSkcDJ2izp0362df8qY7GCRdnYjztRSkVlJFAMxqD9Bf9KC0vD7oFRAt CU3sria1ZtTBYEv5lRhIL6gHpNY7Vtt6Vcx0kOFpZ4JvnhwZLlWorqpni ruxYd7xpTWoRKCWzxdCuVaIcR9o1l7qel/pkZ832+Wh1wGOdW0TB67H86 oC25fauxtdeQ98/j/ITWGW0nS7abZYrmHCT9gofCGbAvTsEZhc2kkC6w0 woNk5ZwV40jJyEC1tXx/6rzFpSU/GG1QA2f6QlrRK2kI40gJpvMrBua4N A==; IronPort-SDR: mBT2aiLqUhCJswTXYJscs4zNFhgiuH9x90QvWp81VGM3M9sbZnOfSoFS1StLCP+O8QtzP6VvWC vssH08/zYlyLCOvxBENWBEUSvtzWnvF1yGxMOIh72JRcTumEAzxzo2gIFl4wjwJQp7tdkop3CQ O3NNuJp3jsCNW2iXaUxOC4EGyUDKyuNhnzkhd5edCUnlNkJQwMRKOov5Zd1KyVMVcdVr/ifJr3 wwLnuYcxzlxO/59jgcKveDp0aJVBaIKmkVKYusAmD0r0PvkiNteg9xbJ5h8jp4nS822BHOb/wy 9qg= X-IronPort-AV: E=Sophos;i="5.73,495,1583190000"; d="scan'208";a="12632099" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 10 Jun 2020 11:16:42 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.117.49.26]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id C8AB3280065; Wed, 10 Jun 2020 11:16:49 +0200 (CEST) From: Matthias Schiffer To: Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Krummsdorf , Matthias Schiffer Subject: [PATCH] mtd: spi-nor: micron-st: enable 4-byte opcodes for n25q512a Date: Wed, 10 Jun 2020 11:16:16 +0200 Message-Id: <20200610091616.29555-1-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Krummsdorf Set SPI_NOR_4B_OPCODES, as the flash supports 4-byte opcodes. Signed-off-by: Michael Krummsdorf Signed-off-by: Matthias Schiffer --- drivers/mtd/spi-nor/micron-st.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c index 3dca5b9af3b6..8edfde053f31 100644 --- a/drivers/mtd/spi-nor/micron-st.c +++ b/drivers/mtd/spi-nor/micron-st.c @@ -58,7 +58,8 @@ static const struct flash_info st_parts[] = { { "n25q512a", INFO(0x20bb20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | - SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6) }, + SPI_NOR_4BIT_BP | SPI_NOR_BP3_SR_BIT6 | + SPI_NOR_4B_OPCODES) }, { "n25q00", INFO(0x20ba21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | -- 2.17.1