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 05837C433F5 for ; Mon, 21 Mar 2022 12:27:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345875AbiCUM3I (ORCPT ); Mon, 21 Mar 2022 08:29:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238218AbiCUM3H (ORCPT ); Mon, 21 Mar 2022 08:29:07 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D634137F49 for ; Mon, 21 Mar 2022 05:27:42 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 22LCRYil046641; Mon, 21 Mar 2022 07:27:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1647865654; bh=FAd5GKdyIw3ZiXx8nIs8f0v/D9Hi8ggK92xb4uS0ISM=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=uP+/4YmsFXWNPZp5R2KmFFevGstjg1SZIrNE3Qiajv6GB2Iir7Vj1/iD81A2tcoXA xhEvq4OmPdpk2hEvxh97aydsSByPEwlxQOQnuC715zb323G2ISWEFneJ6fXqQ/W/9i jCpx3ddRpjdMW9Fhw+2GNvCZKKBIwdElNoYuVQZ8= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 22LCRYod125824 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Mar 2022 07:27:34 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 21 Mar 2022 07:27:33 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE102.ent.ti.com (157.170.170.32) 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; Mon, 21 Mar 2022 07:27:33 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 22LCRW2s025738; Mon, 21 Mar 2022 07:27:32 -0500 Date: Mon, 21 Mar 2022 17:57:31 +0530 From: Pratyush Yadav To: Tudor Ambarus CC: , , , , , , Subject: Re: [PATCH v2 5/8] mtd: spi-nor: manufacturers: Use spi_nor_read_id() core method Message-ID: <20220321122731.m6wp6weydczlyv7i@ti.com> References: <20220228111712.111737-1-tudor.ambarus@microchip.com> <20220228111712.111737-6-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220228111712.111737-6-tudor.ambarus@microchip.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/02/22 01:17PM, Tudor Ambarus wrote: > Use spi_nor_read_id() core method to avoid duplication of code. Now the ID > is read on the full SPI_NOR_MAX_ID_LEN instead of > round_up(nor->info->id_len, 2), but it doesn't harm to read more ID bytes, > so the change comes with no secondary effects. > > Signed-off-by: Tudor Ambarus Reviewed-by: Pratyush Yadav -- Regards, Pratyush Yadav Texas Instruments Inc.