From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AE56C433EF for ; Tue, 12 Jul 2022 07:23:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231666AbiGLHXg (ORCPT ); Tue, 12 Jul 2022 03:23:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiGLHXf (ORCPT ); Tue, 12 Jul 2022 03:23:35 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F69E99667 for ; Tue, 12 Jul 2022 00:23:30 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 26C7N6OL085875; Tue, 12 Jul 2022 02:23:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1657610586; bh=iQV1bIfl8FQruMBMeoBcsL27lyqT/vZYQCTpuCzw4Zo=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=j0KNRpArAEa6aSXJQR8nKgogyKnQl0u53MZMrSEAJk/AZDZ6+2mfYc5yYLMpeYDsa DN1gdmM3XirRW2U5ee/g2EX8YX78HmOXKHHzi0tWVGcc1tDSKoADwnEM+/exRX2cd6 vhzUMqv9WZ9z8BedxzYo0Ih6dNe++AkkYjctGyDk= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 26C7N6is022176 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Jul 2022 02:23:06 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 12 Jul 2022 02:23:06 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 12 Jul 2022 02:23:06 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 26C7N58A042639; Tue, 12 Jul 2022 02:23:05 -0500 Date: Tue, 12 Jul 2022 12:53:04 +0530 From: Pratyush Yadav To: Michael Walle CC: Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Shaik Sajida Bhanu , , Subject: Re: [PATCH 1/2] mtd: spi-nor: introduce SNOR_ID3() Message-ID: <20220712072304.icesvrfmem5lgr6i@ti.com> References: <20220510140232.3519184-1-michael@walle.cc> <20220510140232.3519184-2-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220510140232.3519184-2-michael@walle.cc> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/05/22 04:02PM, Michael Walle wrote: > Up until now, flashes were defined by specifying the JEDEC ID, the > sector size and the number of sectors. This can be read by parsing the > SFDP, we don't have to specify it. Thus provide a new macro SNOR_ID3() > which just takes the JEDEC ID and implicitly set .parse_sfdp = true. All > new flashes which have SFDP should use this macro. > > Signed-off-by: Michael Walle Reviewed-by: Pratyush Yadav -- Regards, Pratyush Yadav Texas Instruments Inc. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A50EAC43334 for ; Fri, 15 Jul 2022 12:19:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232731AbiGOMTr (ORCPT ); Fri, 15 Jul 2022 08:19:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbiGOMTn (ORCPT ); Fri, 15 Jul 2022 08:19:43 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5D45B6173F for ; Fri, 15 Jul 2022 05:19:42 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.92,273,1650898800"; d="scan'208";a="127988338" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 15 Jul 2022 21:19:41 +0900 Received: from localhost.localdomain (unknown [10.226.92.160]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 81666429692B; Fri, 15 Jul 2022 21:19:38 +0900 (JST) From: Biju Das To: michael@walle.cc Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, miquel.raynal@bootlin.com, p.yadav@ti.com, quic_c_sbhanu@quicinc.com, richard@nod.at, tudor.ambarus@microchip.com, vigneshr@ti.com, Biju Das Subject: Re: [PATCH 1/2] mtd: spi-nor: introduce SNOR_ID3() Date: Fri, 15 Jul 2022 13:19:34 +0100 Message-ID: <20220712072304.icesvrfmem5lgr6i@ti.com> (raw) X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220510140232.3519184-2-michael@walle.cc> References: <20220510140232.3519184-2-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Message-ID: <20220715121934.FXGL61W7k7UD0uoatk8HcwwreBE8RY13_Md1DZXwWn4@z> On 10/05/22 04:02PM, Michael Walle wrote: > Up until now, flashes were defined by specifying the JEDEC ID, the > sector size and the number of sectors. This can be read by parsing the > SFDP, we don't have to specify it. Thus provide a new macro SNOR_ID3() > which just takes the JEDEC ID and implicitly set .parse_sfdp = true. All > new flashes which have SFDP should use this macro. > > Signed-off-by: Michael Walle Tested the macro with Renesas AT25QL128A serial nor flash. So, Tested-by: Biju Das