Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4407861ioa; Wed, 27 Apr 2022 03:14:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKY7j+Qm1oXny08BbFrCdIrDp7Vm7HJ/Gy0U7ero7SP6z1+ga/kY5ihm6w2+SY+ld6Tvcv X-Received: by 2002:a63:384e:0:b0:374:ae28:71fc with SMTP id h14-20020a63384e000000b00374ae2871fcmr23184168pgn.159.1651054470028; Wed, 27 Apr 2022 03:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651054470; cv=none; d=google.com; s=arc-20160816; b=CBgFETuY6W+NOH8WdHcdi/+jMP2uHqAXTsxALZjydmelDYJrYI9rqrUzF/1r058TJA P/LL4/LCSAwYwzImXTSVpdxldvRc4lJ8WDhTNQsrtWS8BzCCEt1758a108jOneW01gy9 ek8mS+PEwsb3WSloulWedKQ/7rJEfnrT3PX0FjQyBAEbrD36EqnKl+ckk2QxyRxyWYPj Yy7KDlAQr2ElJA6kUzmNB22uRUWAqh69dsJYpzzfqnDWdvKc/5v15EG63GcoeWBE6stU ypL5N7fDVR78THb8QgjT+5WZkZsfjteXV+ScF9w8JYijyokvjLq04H+nf2kz6ExzdQ5r xRTA== 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=kXpnKZPSd6Bc0SfVzhPyIFl8QKwcMhZDEyWtuIqi54E=; b=y/ocppT2BW1ymYe7v9OlNAnoRB9dr4IE069GmXxduFZ+/nH9huEmBAo3pWqa5kR2gM gp+QwLz6LJlYGOO6B22+cD+jMEFfh0Dbisbf0+NMy3NECg7VicWEEMdDrXbQXi5f5CNQ CKdtIB289lG8M3XUydoGHxnxBf3PZkMo/qtKJoA1ATZ6V+K3WiQ+if8BEaEqt39TA/xY I9T1+yXPy26O3EnN6HUt+duIG77xuv9sK87995AO2UHi1WrmEPyXNW1/HCDGjbQLHH+t 9LmWRgi8YhuPpnOC9wq5HNZcFQkXmZ2GjmyeM8Jec59LaH0fimsAPBSD7udZ6po6i5EV wKEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="KwtrjDd/"; 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 r5-20020a635145000000b003816043f0e2si1018293pgl.727.2022.04.27.03.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:14:30 -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="KwtrjDd/"; 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 DBE5332FF44; Wed, 27 Apr 2022 02:36:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358003AbiD0GOG (ORCPT + 99 others); Wed, 27 Apr 2022 02:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357993AbiD0GOE (ORCPT ); Wed, 27 Apr 2022 02:14:04 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64FB8275D4; Tue, 26 Apr 2022 23:10:52 -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 23R6Aiuo031644; Wed, 27 Apr 2022 01:10:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1651039844; bh=kXpnKZPSd6Bc0SfVzhPyIFl8QKwcMhZDEyWtuIqi54E=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=KwtrjDd/13hHI7TIVMv0mLGdXGutEAbvgJt+w4Fae/1cd12Vzb7/Id8395na24KAG bQn/40MjWXUtsIC9oKUsFffF0TX3y2HT1Ys6MPrFYTHr9MWUuYkrggmZzxNZ9oCuxx w2rUtxKsP2ch7075WEbT7Rq287vp21KSjkFBRpXA= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23R6Ai5b116236 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Apr 2022 01:10:44 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) 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; Wed, 27 Apr 2022 01:10:43 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Wed, 27 Apr 2022 01:10:43 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23R6Ahi4130008; Wed, 27 Apr 2022 01:10:43 -0500 Date: Wed, 27 Apr 2022 11:40:42 +0530 From: Pratyush Yadav To: Matthias Schiffer CC: Mark Brown , Tudor Ambarus , Vignesh Raghavendra , Ramuthevar Vadivel Murugan , , Subject: Re: [PATCH v2 1/2] spi: cadence-quadspi: drop cqspi_set_protocol() Message-ID: <20220427061042.6xmzg7i6ozhlbhzi@ti.com> References: <20220420155616.281730-1-matthias.schiffer@ew.tq-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220420155616.281730-1-matthias.schiffer@ew.tq-group.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.5 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 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 20/04/22 05:56PM, Matthias Schiffer wrote: > As suggested, this removes the whole cqspi_set_protocol() function, as it > is not actually needed: > > - Checks for unsupported operations are already handled by supports_op(), > removing the need to distinguish DTR and non-DTR modes in the buswidth > setup > - supports_op() ensures that the DTR flags match for all relevant parts of > an operation, so op->cmd.dtr can be used instead of copying the flag to > the cqspi_flash_pdata > - The logic in cqspi_set_protocol() is moved to cqspi_calc_rdreg() and > cqspi_write_setup() (with a helper macro CQSPI_OP_WIDTH()) > > The helper macro checks nbytes instead of buswidth for 0, for consistency > with supports_op() etc. > > Suggested-by: Pratyush Yadav > Signed-off-by: Matthias Schiffer I know the patch has already been applied, but FWIW, Reviewed-by: Pratyush Yadav Also did some basic testing on the latest linux-next, which has your patches. Things seem to work fine. -- Regards, Pratyush Yadav Texas Instruments Inc.