From patchwork Thu May 30 15:10:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13680530 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2FFE2C25B74 for ; Thu, 30 May 2024 15:12:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5cIDWs9ThAOTCh5hPlpfxUef1olcC716FBSORYEozv0=; b=wHhA2o+xOq0Z0z CoCJIg9GypCitNC5FywXUKmH5+FuhbNPHq8f9T2BfrSPfxPqCBaKreSs1XKSbXrBvo+2XSlVlOoXd KgpKI0A6pXpWZalmg3BRQLf9uB1Qfak3MKocNrdtuSeaYt1GYNYhBj6K6a9ptGUEszTsDfi60fdlU WAV2LAziGOIeIhgJoTgjv3+FSJgbn6/Jt4QTrr8SidNn/4I5fZg1bYVC0umNCwoorgu0rTaUPucdV n7RA4mohLpsAM+N4oe9xW7iJM3TxmKUu8iSA8eiQqhPo+jUjYXcOn5ZWRRshI/h5s07/aGmAF3dlo WIqxGgXQDLqeTUQeb9XA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sChRU-00000007eyG-0g4z; Thu, 30 May 2024 15:11:48 +0000 Received: from mgamail.intel.com ([192.198.163.8]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sChR9-00000007en1-3GZw for linux-arm-kernel@lists.infradead.org; Thu, 30 May 2024 15:11:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717081888; x=1748617888; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VtuiMejnZILT/hyIjcNOY30dlVGcZI/pZvafnR2kTW0=; b=D+LQz5XeABHvQK+aNs9r6RNpK2ai8375nhTb07irgKjCtBgwXbN6Ewqv PoBdxlYBXU+WqsbCtRqiv0b+d4YfB1eIndVu3tGyCQS3WJdbnc7r5CV9Q Pvk1OnCLorCbMKUBrPP7x6oyg1wnHt/nW94heHNtAlzCTDGRh9OjPque/ uoXous4VwHuSnNOGBMPo7rISvQHINTFZ8PCCRndfKAtCGnP6+maPSWrS/ ELb7fMEyNy9CQqkxrFrHUWWe98BjV8zEiM24nv/8WG5RPIPmYsDTWiM8w j8s/reAQW/aNZSNgi0x6HXzHIT48zz4+69ZtrVIpC9GWDWywE+JWlgufu Q==; X-CSE-ConnectionGUID: 4qwYnouyT3i+EgCAX/NDEg== X-CSE-MsgGUID: E8VXUxzjSk26J96faBYzqQ== X-IronPort-AV: E=McAfee;i="6600,9927,11088"; a="31093059" X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="31093059" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 08:11:26 -0700 X-CSE-ConnectionGUID: UfNqA/KvRC27iVrFMnKkuA== X-CSE-MsgGUID: rivNWmNoRDSgY/osG8FgRg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="40288503" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa005.fm.intel.com with ESMTP; 30 May 2024 08:11:23 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 62AE46CB; Thu, 30 May 2024 18:11:19 +0300 (EEST) From: Andy Shevchenko To: Mark Brown , Andy Shevchenko , Linus Walleij , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik Subject: [PATCH v2 06/11] spi: pxa2xx: Print DMA burst size only when DMA is enabled Date: Thu, 30 May 2024 18:10:02 +0300 Message-ID: <20240530151117.1130792-7-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac In-Reply-To: <20240530151117.1130792-1-andriy.shevchenko@linux.intel.com> References: <20240530151117.1130792-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_081128_273976_C8CFFDE4 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Print DMA burst size only when DMA is enabled to avoid making a false impression that DMA is enabled when it may be not. Signed-off-by: Andy Shevchenko --- drivers/spi/spi-pxa2xx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 19ee7739f4bd..30a829b74a22 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1434,7 +1434,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) if (IS_ERR(platform_info)) return dev_err_probe(dev, PTR_ERR(platform_info), "missing platform data\n"); } - dev_dbg(dev, "DMA burst size set to %u\n", platform_info->dma_burst_size); ssp = pxa2xx_spi_ssp_request(pdev); if (IS_ERR(ssp)) @@ -1516,6 +1515,8 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) controller->max_dma_len = MAX_DMA_LEN; controller->max_transfer_size = pxa2xx_spi_max_dma_transfer_size; + + dev_dbg(dev, "DMA burst size set to %u\n", platform_info->dma_burst_size); } }