Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5031957rwe; Tue, 18 Apr 2023 00:41:17 -0700 (PDT) X-Google-Smtp-Source: AKy350adVRa5CYcXHW+ExDYpHWjf4F/RCFAH02e8rEDU2KUexmU1nGuryTnglRpvScdM1UmFq4pa X-Received: by 2002:a05:6a00:2449:b0:628:1b3:d499 with SMTP id d9-20020a056a00244900b0062801b3d499mr21911025pfj.21.1681803677301; Tue, 18 Apr 2023 00:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681803677; cv=none; d=google.com; s=arc-20160816; b=lT1nw6psK0kwrS86olwRGDYHlkk4li74Lfz28HvRw/C9strJQ0oBLQ90HL+2zJI153 2Vfavk9N5hELoI5pIBVZVvJMGRC81AgDPilswfiilwUFvunDX+D9ek67TE2NFiHiSxKC kf2lz2JkoCPDLeVe8l3bqppsTArIignoWhvn80ERiXE4xitQPTddgxGOJS1/lt26qgu2 Keivk/xAyp6NPYci1r2JbzKFNluS5LAUZXoh0uSvdhif43X7B6E+gTrHkcOd5oTaca7L 6UFo1QraoNamcJkEMxKNeurWT21zjcoSv0Doi0HpkifOIFeoA81SoorcVRCNdaSPlexp LZXQ== 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=q/h+/hexJ8HCvexAkoF0JqQD1VJ+Ma1amANqP5RHzmY=; b=N1DFMWAU9AokFoyb8p2vo8s+DMp35ukq8dj6UwWngek8CnmUVXmvaimbO0fcgWPNUZ 1N/swmQGVocFnLz76lcWzB89BABxm7UJuNYu4JtlcjdLlCem8OcPVeqR6prhLHOrvhdB T/D5bJHHrN5uJ85LH3fnXOP0dRo9KaH7c24vmuefy4lCGlS27F5bi16cR9wgXFa2dc48 Tpm7X4+QDnp2N4CxzLr88KO9fUeL7imhL5u41ElN7AD4N/wSB8o4Z05g84OZ9GgkvI+9 UE1BoLe4yVvBHsLnxM3GXTUMsZdDvIiWVeYBa4DUnUwUMsvsEERi9tqq9R1yXgA/nd4B EDSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PrHtmRgB; 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 p11-20020aa79e8b000000b0063b8695da40si6974767pfq.238.2023.04.18.00.41.04; Tue, 18 Apr 2023 00:41:17 -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=PrHtmRgB; 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 S230389AbjDRHi6 (ORCPT + 99 others); Tue, 18 Apr 2023 03:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbjDRHi4 (ORCPT ); Tue, 18 Apr 2023 03:38:56 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34FA73C1F; Tue, 18 Apr 2023 00:38: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=1681803535; x=1713339535; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Gvo+MqctEL5HSwatCbCQmqOpF34r5sqpuLtBI4pvBpM=; b=PrHtmRgBycnx2IPFtzyk4DICop9Hb7AmDhBebiv813P04MjmRLoYfNc7 gKHa+7lJvwYpwYVV4t7ZGh2bBloTLYJED8XhCxViQwqs/Bs14K1XOSGkI bWw3qAtz4gL7O9/JPhCRjMc+z1qNrrU/LWYyLTaWOCcO4r1VdKRbh/3hs il0aN73N5UL9FPde2kvEhMhlpntwqGp0Y9sXFn7+kTsFz+nJ6H+3ZO70/ i1TSAltam/3Gpwo0hFqAerwDb8XtSjYTN5+Roq9+bJzJrkSuVMZ1uv7Ww 3UEk6gR5ZjZFFTpXETTCDaGPw8nG4YCfeCC7ni1xGJAxK6BS80kRwJkDO A==; X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="345099113" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="345099113" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 00:38:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="690984273" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="690984273" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP; 18 Apr 2023 00:38:52 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pofvP-001VdU-1K; Tue, 18 Apr 2023 10:38:51 +0300 Date: Tue, 18 Apr 2023 10:38:51 +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 v7 4/5] spi: dw: Add DMA address widths capability check Message-ID: References: <20230418052902.1336866-1-joychakr@google.com> <20230418052902.1336866-5-joychakr@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230418052902.1336866-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 Tue, Apr 18, 2023 at 05:29:01AM +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 had a small comment on this In v6 thread. -- With Best Regards, Andy Shevchenko