Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2252648pxp; Mon, 21 Mar 2022 15:02:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy84FHFTHrxeRJEgtHi0+yk6G80dnPQJR23hqQgNrc4igGZpTm/GIoWJmuCqvK+J2P6TXMM X-Received: by 2002:a63:194e:0:b0:372:c757:c569 with SMTP id 14-20020a63194e000000b00372c757c569mr19489060pgz.516.1647900174710; Mon, 21 Mar 2022 15:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647900174; cv=none; d=google.com; s=arc-20160816; b=yIBrnPfTskiK4W3fSAMBfDOQTKiSYoPps72h0EE1qMWdlKQ0bsbQl4T3zIdbHLm7tz qqAXwPzZzNII2dgtD+zpk6B6MwoGuulE+rZXUBkrHnAOjJ+2V4fvgKEq3anGB9NX8BEx KokpIZNx5i294+TLJZ9mLin9/Xe7s3AMmsCBotn1F6h1cVZtwrX9MZbN6mKNLfXhuLDC QssRW5bUikThK49OAG4NFHRUSup6uSEGUgJUwlpumAd0KurtdjgnH7k1Wd3WPLXoOlHn 5wVE63QYB703MVY1kFRztSJLx1Qc0OkD1HOT2dfUcGaUMb3ggWC+WSypZhmWWzVQWsFg nW2w== 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=/FSvcrz0QymIRCi6RH71gwTjqKsvMqVR1lnXAd9SB4E=; b=RleYnaHDTTsyPetp/ONEtmcVHCKhC3H3H4666Bj86JmmRA+SeODApMzZWb26V5Zx7T KoI3gOryeVtlEd58KdqRy8TpfaQoIRRiVxvUTgWrUc7Xn1zj7vC+zgVNV6CgvZnZVSzO X3u0o4TA91vKfRWQmDOaLY2K093DNNokZwdW5f16XLbr7EgiteLRHye1oxHPAKE51dTn bAsZgdJB3EHrpnyOcn4VVJhb+N4p8KdVg0CW3fpdrdlNEH/2nYtJaJU5Gf0Vj3Sk5nL/ 2aksBuZTadz2zIGdqzfVNiSjJuMO0FEcZHZoG1+z/YKLaHFHSFghn7wxJvpcsnNlUHk1 T6cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Im7k/IiX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u32-20020a631420000000b003816043f0c0si14272593pgl.693.2022.03.21.15.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Im7k/IiX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 8918734D2BD; Mon, 21 Mar 2022 14:26:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344895AbiCUMgQ (ORCPT + 99 others); Mon, 21 Mar 2022 08:36:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347066AbiCUMgO (ORCPT ); Mon, 21 Mar 2022 08:36:14 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AE0619C1B for ; Mon, 21 Mar 2022 05:34:49 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 22LCYgRG082999; Mon, 21 Mar 2022 07:34:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1647866082; bh=/FSvcrz0QymIRCi6RH71gwTjqKsvMqVR1lnXAd9SB4E=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=Im7k/IiXxRtqScsM9BWgoSnBTBm29KR8Cqm/ORmxH9GCx/2rdh7+TX3qG6ujSoc0P bklvB0xKPS9cbndfrAAm4hU98hE8PAOKn5TiLkarmqQP3RBjslJHLSKTK/nDPNwhWC qAd1RmaK+3gHEQaTP5dJpPuelPOK7aNPm2A7zPwc= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 22LCYgDE005898 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Mar 2022 07:34:42 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE115.ent.ti.com (10.64.6.36) 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:34:41 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE103.ent.ti.com (10.64.6.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:34:41 -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 22LCYf2i082341; Mon, 21 Mar 2022 07:34:41 -0500 Date: Mon, 21 Mar 2022 18:04:40 +0530 From: Pratyush Yadav To: Tudor Ambarus CC: , , , , , , Subject: Re: [PATCH v2 8/8] mtd: spi-nor: spansion: Rework spi_nor_cypress_octal_dtr_enable() Message-ID: <20220321123440.prhhkzvgvgao2fqr@ti.com> References: <20220228111712.111737-1-tudor.ambarus@microchip.com> <20220228111712.111737-9-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220228111712.111737-9-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_cypress_octal_dtr_enable() in > spi_nor_cypress_octal_dtr_ena() spi_nor_cypress_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 read. > > 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.