Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2705725pxm; Mon, 28 Feb 2022 04:45:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzH1BuGebEKIKR3jp7VoS8lR5W7hfF6t0EtIrbQDDCDM3khdhwTiKyflA6+2HxuaWBvnMhb X-Received: by 2002:a63:2155:0:b0:374:a199:c381 with SMTP id s21-20020a632155000000b00374a199c381mr17481494pgm.319.1646052352345; Mon, 28 Feb 2022 04:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646052352; cv=none; d=google.com; s=arc-20160816; b=Unum/6hZRzixLA2NogK5qKwZSXWUbIsAfDj6NRt82Wx6k3FJLC0bb1oJFI8zugEd4e 4T1W12ewNJy2arW++6sb703XKxLY1vo8y6zRbEFipBxtPsxJjTMnjuQBUw4I7zFeBzCU Be7/mhJn3njmIid6kyMi0fpRxiRDA0sg5jT3Lp4XPF+GB6LsbQKZyksLJAOcRpzeGu3D Wr/u8zv/8V1HScpvidojv3xvGPq55XVf0du31MmjQxLa33u3r8o2U5IRKsv4YVHJphRL 3ITcR7S9sCsXNLvYus55AvYhPxoxbdkEZIpeAkoHVdZxtw45YrJT8j5WCwawtIzRpX5v J0gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4VzC7ROhWDMBtQLRH/AgK4scmAM3WqvnjpcWBDcWkO8=; b=SiGY09UIJvGZFdpgQ0cGj1HnSl/iZrsRS5qkFWnoRBN+PTIt+K+B3lcVj1f4U3VGuG DqhPWCzEOuIsI35DXrUpQsHvgDQ3Zqy2D2t5NE1mmQ0vR/ElyxfZekMUlz9s/cxqBbh6 Oh0qh/+6ZWIxeD1/QnZ2zfdrNYhLZ1UneTHdMmMoLZlhvJGTnaG32TWsbepFiRRFdTYu OAzug361w4V+yXHpl68Ez7KspId/FVrf6UOpnRGTkp8T6l0r6CD2OIpRJzVdO0GIL+R6 80Dw+FH54VX96RoSlR2MLVUwhAh5YbHBER/bss+nJpyNg+19MKsKcR4KznCrYAybLsuV 0eVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b="DyYFqk/h"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a632258000000b00376c1304ebfsi9037122pgm.729.2022.02.28.04.45.38; Mon, 28 Feb 2022 04:45:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b="DyYFqk/h"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232302AbiB1LSN (ORCPT + 99 others); Mon, 28 Feb 2022 06:18:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234423AbiB1LR6 (ORCPT ); Mon, 28 Feb 2022 06:17:58 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE3EABF2 for ; Mon, 28 Feb 2022 03:17:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646047038; x=1677583038; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=t73JCsD7PZHwhkuYI4yML7PDv9mGaY4kWadlsL2q9n8=; b=DyYFqk/h50/u9V0/8uJs5f+UoAy6scdrcwFapbOqrPhW1ZWMPnTTbDUS AMD7QT5H8FNMpVET1J+AS/JcqR+nnENLLj+U0HuxG6t64jdbeHlfQ9XAD jEgNYTJhEsuXp6+5RHSFTPybHkf7PfNEI0jFI0czu+yyYjnp6P6nN6bN5 6SdG5Ave5x9daOUuyI6EHbeVBwOJfHwqYpL4p1arCABBd2lbmNK0QxrMI gVh4g/NU/zlBmGcOVEslAefwD8jkUTCsDprIl80uo+DxpAF0MVXcVC4c0 DLAwnadIXvvJbCKeyHrkuTwWaQrQMSErGv51TSSU/Reuzvct0za1iDeAq g==; X-IronPort-AV: E=Sophos;i="5.90,142,1643698800"; d="scan'208";a="155099335" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Feb 2022 04:17:17 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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.2375.17; Mon, 28 Feb 2022 04:17:17 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 28 Feb 2022 04:17:14 -0700 From: Tudor Ambarus To: , CC: , , , , , , Tudor Ambarus Subject: [PATCH v2 0/8] mtd: spi-nor: Rework Octal DTR methods Date: Mon, 28 Feb 2022 13:17:04 +0200 Message-ID: <20220228111712.111737-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a combination of: https://lore.kernel.org/lkml/20220209133656.374903-1-tudor.ambarus@microchip.com/ https://lore.kernel.org/lkml/20220210023334.408926-1-tudor.ambarus@microchip.com/ Macronix patches will be handled in a further series. v2: - Fix bug on octal dtr disable, s/nor->reg_proto/SNOR_PROTO_1_1_1, because after disable the nor->proto is not yet updated - update function/macros names to comply with Michael's rename series. Tudor Ambarus (8): mtd: spi-nor: Rename method, s/spi_nor_match_id/spi_nor_match_name mtd: spi-nor: Introduce spi_nor_match_id() mtd: spi-nor: core: Use auto-detection only once mtd: spi-nor: core: Introduce method for RDID op mtd: spi-nor: manufacturers: Use spi_nor_read_id() core method mtd: spi-nor: core: Add helpers to read/write any register mtd: spi-nor: micron-st: Rework spi_nor_micron_octal_dtr_enable() mtd: spi-nor: spansion: Rework spi_nor_cypress_octal_dtr_enable() drivers/mtd/spi-nor/core.c | 153 ++++++++++++++++++++++---------- drivers/mtd/spi-nor/core.h | 13 +++ drivers/mtd/spi-nor/micron-st.c | 112 ++++++++++++----------- drivers/mtd/spi-nor/spansion.c | 131 ++++++++++++++------------- 4 files changed, 241 insertions(+), 168 deletions(-) -- 2.25.1