Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2216824pxp; Mon, 21 Mar 2022 14:07:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL2k/uLv/PLB2eS5oO7gjXyBJyFSXVuSZZNEYDfZRO6A1Yz31Pjb1yeYfRLoqoYhIT11P0 X-Received: by 2002:a63:c50:0:b0:381:5118:62d6 with SMTP id 16-20020a630c50000000b00381511862d6mr19259808pgm.420.1647896837197; Mon, 21 Mar 2022 14:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647896837; cv=none; d=google.com; s=arc-20160816; b=Wzg8OMUaPhDaMO1nwv2nO3ixdNa2zVuzn/78DBmkE75ewlxxP9RLPlwdDtPLjptczs BLngPlYu/gsxfBJ/xn+uAQKWD2Im9xXLltFgjTRhzJa6sEfYUY9koqWa4XddMuqgBD53 +VNLGMKlor7ZDZrhoNSt/ZqyzOuBS8zBH7/wURq2kv6X//JsImACcLMYhTmhZFVFDzQG 6zH9gtWcZ577uoQvHX2SwzoBI7RDJNwPSHnq9SxRHz31GRRAT5617CGV2uIJuFsZWv6I lJ/1mBdfuLBJCBK4MbxtzMI0/QvN4DKIC/Htiaivh1PjZs2kr0KlnIYplyvtaw5SZ2L9 kXJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MEA3swct/gXS3CRD+xbJHu0YGsdqqaAsegYmAfs8ewg=; b=DbxjGeCk4KdIUWmp3B5nusjrnMVFONDEZ4nI0eK0rtm/6XAQirUlKow58qAu2CcKiv NWbEEBnunz/xWgSV7zRC8CMi9rbbDPWkch5T0DcWsG3g/xPFEzfwGA9duRu43VLJ6YSF W75Mhqn2J/hKa8rJItxiab1QqF1cI2McWVqSmeeI8SAGmN3WSxpv+QbHAz2mTiv5Z5U7 kom28RColdJvmb4NMiSSbHyImp1nnfePPN0BLrS1Hx/i/roIw/eE9X8Cd1qEQBSphV/b OcPlnRtMjXwfsoHNdHTg3sjdCo+MH192xS26A+ymY5CujKjNF+2eI5F/Fc9OsbvRxs4g mkEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="QDpl/chQ"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b17-20020a6567d1000000b003816043f066si14453410pgs.603.2022.03.21.14.07.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:07:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="QDpl/chQ"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6BBA51B2569; Mon, 21 Mar 2022 14:01:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347414AbiCUMfF (ORCPT + 99 others); Mon, 21 Mar 2022 08:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347245AbiCUMfC (ORCPT ); Mon, 21 Mar 2022 08:35:02 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FD01186E0 for ; Mon, 21 Mar 2022 05:33:38 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 22LCXUqt008541; Mon, 21 Mar 2022 07:33:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1647866010; bh=MEA3swct/gXS3CRD+xbJHu0YGsdqqaAsegYmAfs8ewg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=QDpl/chQJ3vvpFqNCkobRi1OgHb95nXuQrycQCRRq7XWUSIPLd5eng4ODuMmwycs+ 1m6uUpkgRKItyjIhA/rV3E2XkPNZTcFQQDn7+9idb5h1ogkLo6Q0CSsSqNGWtRbI8B HRTsQqbVARlvKmx78eZJ+kBtYer8GRxVz620dPQg= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 22LCXUna004124 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Mar 2022 07:33:30 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE109.ent.ti.com (157.170.170.41) 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:33:30 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) 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:33:30 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 22LCXTDg063280; Mon, 21 Mar 2022 07:33:29 -0500 Date: Mon, 21 Mar 2022 18:03:28 +0530 From: Pratyush Yadav To: Tudor Ambarus CC: , , , , , , Subject: Re: [PATCH v2 7/8] mtd: spi-nor: micron-st: Rework spi_nor_micron_octal_dtr_enable() Message-ID: <20220321123328.pmronanogv6oveut@ti.com> References: <20220228111712.111737-1-tudor.ambarus@microchip.com> <20220228111712.111737-8-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220228111712.111737-8-tudor.ambarus@microchip.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 28/02/22 01:17PM, Tudor Ambarus wrote: > Introduce template operation to remove code duplication. > Split spi_nor_micron_octal_dtr_enable() in spi_nor_micron_octal_dtr_en() > and spi_nor_micron_octal_dtr_dis() as it no longer made sense to try to > keep everything alltogether: too many "if (enable)" throughout the code, > which made the code difficult to follow. > > Signed-off-by: Tudor Ambarus Reviewed-by: Pratyush Yadav Will send my tested-by separately once I get a chance to test this. -- Regards, Pratyush Yadav Texas Instruments Inc.