[v2,0/1] mtd: spi-nor: gigadevice: gd25q256: replace gd25q256_default_init with gd25q256_post_bfpt
Message ID | 20221016171901.1483542-1-yaliang.wang@windriver.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1095928wrs; Sun, 16 Oct 2022 10:24:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53Rx3Pdf9GBqcrRlvwHnv5pT4WoJJ/MSMYxDrgi22wwku21JnaJqp+dsDcxpRVfUny96ir X-Received: by 2002:a63:f47:0:b0:46a:e00c:24c7 with SMTP id 7-20020a630f47000000b0046ae00c24c7mr7263473pgp.239.1665941056319; Sun, 16 Oct 2022 10:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665941056; cv=none; d=google.com; s=arc-20160816; b=lb2ehbFcNpg+tiDu6DrslS0NzTUIxXgj8zSqs2A7fhXzbUtM7RktN757Rk6LIeNTMl ZTG27SjplH5Ywf37+4k/5grZVi44b3/DTVRQp8XJrdkRK8ngr3os4BjEG2Kw6g5cIpCM X2AUEtcoRVeId8VmYeX0IgbeQC7zSxYhezVuTUv0byZ+vB/hOOOtKENpwsH01JDbtZRt SdWK5+GaPQ2zlk3uLGSG3yEWc85CcpQAFszSwFEzCZjMsTzwGiXM2wdShKGWOZjXK6bo 17VT8bQHiaZbm1+XziaunLdNcPtEJ/6mWgd+R4GbKQRbNho7SV8WxRNdWhyRKFazLHUa ssqg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0oquvqOLgUg+VJQHiajJ6QdIvz2deOkOJUQc81tgIUs=; b=lgO97z9YxpodNvxjT3BxZsQO8YAkBYCXurd4AYqYWAY3XCaXW5m/Y1YfuMswVltNUz CpWUWY+92d/QE+7MaKQtndcTGEb6ENEOSzXdboGA0NRkegt2lyQXXhfmqD3RxWDkGiL+ CLEGo0mEXyF8xd7JLjZXoXjh57fDPjRHB/hGl2stjIP29snUVIg+98QQdYzefw08CByX YMhKpM4alh/4yloCqgk7dWx4/9iXWq5cv7t8mwvf7YMwX6nJ2by7/EZpe9jn2rQYms6f L6EencbN4a//PPQyMt32QLR6MHclFQq9S+LbZFduuKCAd2DO75P5jk9h+/mv9J+f/pf8 20wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=Eevu7pWl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=windriver.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020aa78895000000b0056353f0bd40si9587914pfe.29.2022.10.16.10.24.03; Sun, 16 Oct 2022 10:24:16 -0700 (PDT) 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=pass header.i=@windriver.com header.s=PPS06212021 header.b=Eevu7pWl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=windriver.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbiJPRUB (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Sun, 16 Oct 2022 13:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiJPRT7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 16 Oct 2022 13:19:59 -0400 Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63CFF27913 for <linux-kernel@vger.kernel.org>; Sun, 16 Oct 2022 10:19:55 -0700 (PDT) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.19/8.17.1.5) with ESMTP id 29GHJFkB021043; Sun, 16 Oct 2022 17:19:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PPS06212021; bh=0oquvqOLgUg+VJQHiajJ6QdIvz2deOkOJUQc81tgIUs=; b=Eevu7pWloLPqp5oZn3mo9LBeBaLg82CsmX9CZK3XOA55EgLJECAA5WoW9BXeaKpHHFPu 9FbH8r9r9Js9ZO1raiW6CVofwNmMdjciRsltTvx0FnyZ/0B3+gm1DKiLk5xFNEI/yPSK HRRSgewfBoAtcnCsioOmlA2eX5sUFrZZjZWZvtsaPRywi9sVHWpz/DvnwrCfH+pREwK/ msttfG/y6mRjKbNLmrrWPhMK/L2cTRdbMuHZVaxb/NU7NUSwysOGIF5ZP8aV31aJEuxp eNwoi5n0+TwnFr+6JMTdUZJxn2K4sV2T3tfpUNRQLCN74VHx6hzr60moncQ2+IU0KSui xg== Received: from ala-exchng01.corp.ad.wrs.com (unknown-82-252.windriver.com [147.11.82.252]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3k7ku990xr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sun, 16 Oct 2022 17:19:15 +0000 Received: from ala-exchng01.corp.ad.wrs.com (147.11.82.252) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Sun, 16 Oct 2022 10:19:07 -0700 Received: from pek-ywang12-d1.wrs.com (147.11.136.210) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server id 15.1.2242.12 via Frontend Transport; Sun, 16 Oct 2022 10:19:05 -0700 From: <yaliang.wang@windriver.com> To: <tudor.ambarus@microchip.com>, <pratyush@kernel.org>, <michael@walle.cc>, <miquel.raynal@bootlin.com>, <richard@nod.at>, <vigneshr@ti.com>, <andy.yan@rock-chips.com>, <cyrille.pitchen@wedev4u.fr> CC: <linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v2 0/1] mtd: spi-nor: gigadevice: gd25q256: replace gd25q256_default_init with gd25q256_post_bfpt Date: Mon, 17 Oct 2022 01:19:00 +0800 Message-ID: <20221016171901.1483542-1-yaliang.wang@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <1dddc60f-44fd-df65-f491-be8379fe2380@microchip.com> References: <1dddc60f-44fd-df65-f491-be8379fe2380@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: pxAS3buvNuYBdn8smUk4Vp5_CjbYhNAI X-Proofpoint-ORIG-GUID: pxAS3buvNuYBdn8smUk4Vp5_CjbYhNAI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-16_13,2022-10-14_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 mlxlogscore=756 mlxscore=0 phishscore=0 spamscore=0 malwarescore=0 adultscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210160106 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746832851797896470?= X-GMAIL-MSGID: =?utf-8?q?1746865809064818582?= |
Series |
mtd: spi-nor: gigadevice: gd25q256: replace gd25q256_default_init with gd25q256_post_bfpt
|
|
Message
yaliang.wang@windriver.com
Oct. 16, 2022, 5:19 p.m. UTC
GD25Q256 'C' generation 'GD25Q256C' implements the JESD216 standards, JESD216 doesn't define the QER field in BFPT, but the 'GD25Q256C' does define QE bit in status register 1 bit 6, so we need to tweak quad_enable to properly set the function. 'D' and 'E' generations implement the JESD216B standards, so parsing the SFDP to set quad_enable function is enough for them. As the default_init is deprecated, so the post_bfpt hook will be the right place to do this tweak. Changes since v1 [1] - Just tweak the quad_enable function when needed. Yaliang Wang (1): mtd: spi-nor: gigadevice: gd25q256: replace gd25q256_default_init with gd25q256_post_bfpt drivers/mtd/spi-nor/gigadevice.c | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-)
Comments
On Mon, 17 Oct 2022 01:19:00 +0800, yaliang.wang@windriver.com wrote: > GD25Q256 'C' generation 'GD25Q256C' implements the JESD216 standards, > JESD216 doesn't define the QER field in BFPT, but the 'GD25Q256C' > does define QE bit in status register 1 bit 6, so we need to tweak > quad_enable to properly set the function. > > 'D' and 'E' generations implement the JESD216B standards, so parsing > the SFDP to set quad_enable function is enough for them. > > [...] Updated comment in gd25q256_post_bfpt and applied to spi-nor/next, thanks! [1/1] mtd: spi-nor: gigadevice: gd25q256: replace gd25q256_default_init with gd25q256_post_bfpt https://git.kernel.org/mtd/c/4dc49062a7e9 Best regards,