Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3793709rwe; Mon, 17 Apr 2023 03:46:54 -0700 (PDT) X-Google-Smtp-Source: AKy350aQ+LWr7IROwIUYuWzuLNIFj1JRVhLxroMReE+9TDnHeZCrbh9hgawT1FMtaZv8wRHRH84H X-Received: by 2002:a05:6a20:4407:b0:ef:cb4c:c24d with SMTP id ce7-20020a056a20440700b000efcb4cc24dmr3436683pzb.35.1681728413944; Mon, 17 Apr 2023 03:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681728413; cv=none; d=google.com; s=arc-20160816; b=x22v5nNgiQQ3GNIgB4nUAXBPpZ0RtSDLbKDydfxKU71PR9uaCYQtrSuHmaqvvIEopd UYfWETXA7Hx+krewd85yyJ8iRoleq+cX5l83+gz6jmls4ZtIOzmwg9SxH8vOJZhW3kjW 5TyretqLo9JKdbLK/fXti6os+60LkFOdFugLK7RcPeO2hXLvoRmv7fiWoZvCSjF/3cv7 iSWWCizjK3CqFCU4BkLTxuP4FJ8r0KxDg0NjYI47g7zoxhD6RRlaiLyowxTwD4fXierS Ib3ta4XE5gfZMzXsfsoL3CviqfKk1tpMdk0RpGCTDd1ws4Iy8A14DwIUhIdo6aRacU3O 3DKQ== 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=ZfyJNVztu+RYwhERG3bSNXoRyRUrmJjqprq+4Kckep8=; b=qdPl6UiwrTYwe2lZDVtSKHZi+QY1MhHXszuSoF39bXQaHYsX2UiQVSSowBSIPYjl+q ZaNC6zIP0GdYDxuRQQZ6iqxu5uwtnSmCRni/yITE4M6IF2m3c4/0GFL/7XZCLxJ+EAmT N7UuBn1sj5xfcMX3ari+9Coi/E+Yz3IHPU2hlzUsKGYI4xq3DjsZvu0IyObxlgpmTW82 6WqIOP/zUJPPrYtMiOWmcRTuJnlhlmx+sr3qZpYZNXxQHZe2R/rYhlDRUOFizQt8MUBs 4zm77P+5I2auhTnqDh4gG8YR7f4hP3vBy357yPYRrBNlM3jAt5GYqImy5bzfvy5hxI0g +TLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Lj9NEl1/"; 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 u184-20020a6385c1000000b0051986d5b352si11750138pgd.505.2023.04.17.03.46.40; Mon, 17 Apr 2023 03:46:53 -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="Lj9NEl1/"; 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 S230149AbjDQKqJ (ORCPT + 99 others); Mon, 17 Apr 2023 06:46:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbjDQKqG (ORCPT ); Mon, 17 Apr 2023 06:46:06 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDFED49DD; Mon, 17 Apr 2023 03:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681728309; x=1713264309; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Q0LVjKHHmuRFdXP0gH1A8hWP0FnpGL5CdzUawYKr0oI=; b=Lj9NEl1/XaADKEMIENvl+tUwF2XAJKszIlIsMZHyZ/VtsfR7HvQewVjx gWMcK7CrgK1vdjMUyZIlco0Hcv+P2VoPcK/L1ZPKT7iDKPGrR+uNS+bow WSaUNLIxkJIFi3iS9IukI0pCHkSqiQVBjcChfJdQrXE0alR3T23MbWsVv sfBW7T2Wf3J/Ee/a+Srx+6QpZy16ImE/9CTk74/AnNXjmpF613lNpT4fj jBGdrRfkmFwnd7W99pJgqGhEXKF8tswwBDcxkx3nOEhQcYezcJT0J7YV4 C5amkMeLNV14DRYV+dVmpigkZAHppNMG9LruzGav6o7uDvhl5bxgVbdjR w==; X-IronPort-AV: E=McAfee;i="6600,9927,10682"; a="342352606" X-IronPort-AV: E=Sophos;i="5.99,203,1677571200"; d="scan'208";a="342352606" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2023 03:43:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10682"; a="759909509" X-IronPort-AV: E=Sophos;i="5.99,203,1677571200"; d="scan'208";a="759909509" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP; 17 Apr 2023 03:43:22 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1poMKQ-0012vq-0a; Mon, 17 Apr 2023 13:43:22 +0300 Date: Mon, 17 Apr 2023 13:43:21 +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 2/5] spi: dw: Move "dw_spi_can_dma" function Message-ID: References: <20230414120520.360291-1-joychakr@google.com> <20230414120520.360291-3-joychakr@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230414120520.360291-3-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 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:17PM +0000, Joy Chakraborty wrote: > Move "dw_spi_can_dma" function implementation below > "dw_spi_dma_convert_width" function for handing compile dependency in > future patches. We refer to the functions like func(). ... > +static bool dw_spi_can_dma(struct spi_controller *master, > + struct spi_device *spi, struct spi_transfer *xfer) > +{ > + struct dw_spi *dws = spi_controller_get_devdata(master); > + > + return xfer->len > dws->fifo_len; > +} > + > + Single blank line is enough. -- With Best Regards, Andy Shevchenko