Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5032451rwe; Tue, 18 Apr 2023 00:41:59 -0700 (PDT) X-Google-Smtp-Source: AKy350bR7wloXhJfn/NKy0fmo1kYaP/CZqOvjF7BVLihNUYgyfOn9qN+MVDleLSakFAQHQEFvq0v X-Received: by 2002:a17:90b:1d0f:b0:247:1f35:3314 with SMTP id on15-20020a17090b1d0f00b002471f353314mr1102110pjb.48.1681803719589; Tue, 18 Apr 2023 00:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681803719; cv=none; d=google.com; s=arc-20160816; b=aXmVj+9S5ISHdq2gLyxcp2B0C4VqPKs7yNXkvpPclz/OVe2Lax6j+CFJDcVzR2ZXji KZavEfsevjVAOTllgOZB3Hj2UAPxr5v1MpTX1i5dg7Y/n1AqoNYrsTDc8koWHd+DTxxj JDVRSo5R1/EPx5+zHaTJcGzj+t5LKcIEXs20OgkRc01VdVGxTVfe7/U7eZcmUSWbn129 7jWWMNbih2r9CEMlwOkGzwRUG+a3CM2jxWP9Q5RWUAseZRAHfU9yhMflZE7bEN0H52Xs 5O/0B6jFCn9Oa5eqnK0/VvdElxqd4xuTSLCKOVew9BmzdsS2qK03xy7NdQ+PK1qmfnb3 qsgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bkZVYEeeW2+8fNla5y9nWRK+oIyXQaW6HgJe9pu8KLk=; b=VE94DXAvojgQgLkn489A15cB34UtcKyGlTkNRUa5N4mubmrNvypwdQy+nRY8WnSnoY R8YFQBqP2oGhItN2NAlmzOSzAGP75v4RXjkZFn3mjV/tsq3iGZsO0op16rZw43PwuLGN W9RZ0rFRoJytWg6808mqG1GXNkLofnGFgNPwsYKpdP4gcrl3WKfYZjmncPFGlWJ6g+tr KWRWqnOTwCvk2rHXAxpJCjcGEyQwcruwrPE38e97g0QJFlY8P1dQA9nw/eTDsAP2sOSh AiZ2M6GzEmEBEawfw1aOmGiuQGds6Q2ue8Uv84KVxZqo5rjVO0pqCJFd1nycYZWqgKkI xGYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SyEfqdhO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om17-20020a17090b3a9100b0024666ca75ebsi14482061pjb.116.2023.04.18.00.41.48; Tue, 18 Apr 2023 00:41:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SyEfqdhO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230123AbjDRHf6 (ORCPT + 99 others); Tue, 18 Apr 2023 03:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229984AbjDRHf4 (ORCPT ); Tue, 18 Apr 2023 03:35:56 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAF543ABC; Tue, 18 Apr 2023 00:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681803355; x=1713339355; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=iBXL32ZoktEVZQJ07ztS/Tq0AkNQ5nMBLWpXT4c4Syc=; b=SyEfqdhObFe/HxlA7Alt7wt5zEVRi0evEqUnsI6DEtWRPha2cmm2dfXN o2Tzy5uXmmdj51bUB+zESGiycRlYh9xKSytnAzwRWnFYNiRYS9s3IBw9n r+gFQ6mFHeuYyBSDAp93122WNWeV3nu8C7ZIXxkEVhhUOD1iE1dwz8MfD IJOSuZ1D0q0TXnjc5Yt5gbu5Og+WVjodww9ZWt5ws2xC6xuZ3m3jdKjFr yhIe1MaWbPuHJ4MvNG5e6kiVCma3CZp0z7YIkn5si6QoarlKDijI/WRVR 1OfbfW0AEbx6a2Ej3/4nd/G7iszOUO29jS7v9aXD9wamK5fEOUeZZ1d/u g==; X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="407998088" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="407998088" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 00:35:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="815103411" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="815103411" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004.jf.intel.com with ESMTP; 18 Apr 2023 00:35:52 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pofsU-001VZr-31; Tue, 18 Apr 2023 10:35:50 +0300 Date: Tue, 18 Apr 2023 10:35:50 +0300 From: Andy Shevchenko To: Joy Chakraborty Cc: Serge Semin , Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, manugautam@google.com, rohitner@google.com Subject: Re: [PATCH v6 4/5] spi: dw: Add DMA address widths capability check Message-ID: References: <20230414120520.360291-1-joychakr@google.com> <20230414120520.360291-5-joychakr@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230414120520.360291-5-joychakr@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Fri, Apr 14, 2023 at 12:05:19PM +0000, Joy Chakraborty wrote: > Store address width capabilities of DMA controller during init and check > the same per transfer to make sure the bits/word requirement can be met. > > Current DW DMA driver requires both tx and rx channel to be configured > and functional hence a subset of both tx and rx channel address width > capability is checked with the width requirement(n_bytes) for a > transfer. ... > + /* > + * Assuming both channels belong to the same DMA controller hence the > + * address width capabilities most likely would be the same. I would add something to explain the side of these address width, like * Assuming both channels belong to the same DMA controller hence * the peripheral side address width capabilities most likely would * be the same. > + */ -- With Best Regards, Andy Shevchenko