Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4716025yba; Wed, 10 Apr 2019 03:27:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqHY5cQ24cqcHVkL7RjARqdGTluwB5xjP8/JMF4YIn+6njrHhHZ8YEdjzptIqIjSWlGlLE X-Received: by 2002:a63:4616:: with SMTP id t22mr40411186pga.217.1554892036187; Wed, 10 Apr 2019 03:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554892036; cv=none; d=google.com; s=arc-20160816; b=s8LdmTcqtJ9XPDiINiaMnvbjzz4ddOudGvkvFbHUOSDGqGtAXxgiBsqIRzFxTZuH9l Y4iDXZrsAfR47xk517xq9l4y4tifC0Rpz34RaNs1IPJwa0xnC7hxYDq0Dlh8dEwqvATx 04tJtVyj98RORitwPfHMCWh3jA0ysHFcbgXGyjVl+33KxFALRKg8d3JGd+LR4oJ/WYGJ XcXMPYki/NqmCNg57wmx6B+OSbBZGTvIw9oI+VLn1OymNk0IBvi695+uirSz1jB0Oq1q ggcCTwdZJJsZKUZnNcudx7LJeCHedgvvrloNOl9/qkrWtyF/gW27//e553tAkjAouTbf d/JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=tS1Ks/nl9lLQvVOCEVECDs2OMtoQ4PNb9eepCNjq918=; b=Dvh5QpHaGauUp5Lz62qwVrAE42SVt1ZOKnpT8EXMIwrmXtUQdElgOIJqAbGwHgK/os dppOS4Ohrz5rsfgildInwFU5w28CL3yej6Ctjk13ZMpgufECWcfY47u8CWPr6komMDPd PSCj5vitQ/5DSjgGst0CV2jDuSb59cww5BhrYdsQCWC9ct4KiCIe1whyWh7WA8H89/ai KaczhLzWl+jC3HBrKaiiICjC/HP+XLQOLIODGwf7LMVxV2DRmBAY/Zm8HbRWdMI0W8ge Vscw/Ei1R8mUvO6uCjVLSatdIIDfstcSf8SEjAI4/7fxbgSff9c0D4r25xJVsMjsjH/y UsKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q61si33112954plb.245.2019.04.10.03.27.00; Wed, 10 Apr 2019 03:27:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729862AbfDJKLv (ORCPT + 99 others); Wed, 10 Apr 2019 06:11:51 -0400 Received: from mga03.intel.com ([134.134.136.65]:38468 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729838AbfDJKLv (ORCPT ); Wed, 10 Apr 2019 06:11:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Apr 2019 03:11:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,332,1549958400"; d="scan'208";a="160367842" Received: from mylly.fi.intel.com (HELO [10.237.72.159]) ([10.237.72.159]) by fmsmga004.fm.intel.com with ESMTP; 10 Apr 2019 03:11:48 -0700 Subject: Re: [PATCH v2 1/1] spi: pxa2xx: add driver enabling message To: Flavio Suligoi , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Mark Brown Cc: linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <358f26bc47bd4aa289971f0a763b27cb@asem.it> <1554889624-25000-1-git-send-email-f.suligoi@asem.it> From: Jarkko Nikula Message-ID: Date: Wed, 10 Apr 2019 13:11:47 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1554889624-25000-1-git-send-email-f.suligoi@asem.it> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/10/19 12:47 PM, Flavio Suligoi wrote: > Add an info message for the PXA2xx device driver start-up, > with the indication of: > > - mode (slave device or master controller) > - transfer mode (DMA or GPIO) > > Signed-off-by: Flavio Suligoi > --- > > v1: - first version > v2: - remove warning message "no DMA channels available, using PIO" > - add "slave device"/"master controller" indication message > > drivers/spi/spi-pxa2xx.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c > index f7068cc..b9e04e2 100644 > --- a/drivers/spi/spi-pxa2xx.c > +++ b/drivers/spi/spi-pxa2xx.c > @@ -1696,7 +1696,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) > if (platform_info->enable_dma) { > status = pxa2xx_spi_dma_setup(drv_data); > if (status) { > - dev_warn(dev, "no DMA channels available, using PIO\n"); > platform_info->enable_dma = false; > } else { > controller->can_dma = pxa2xx_spi_can_dma; > @@ -1818,6 +1817,10 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) > pm_runtime_set_active(&pdev->dev); > pm_runtime_enable(&pdev->dev); > > + dev_info(dev, "PXA2xx SPI %s (%s mode)\n", > + platform_info->is_slave ? "slave device" : "master controller", > + platform_info->enable_dma ? "DMA" : "PIO"); > + "slave device" is ambiguous. Please use "controller" with both, i.e. "PXA2xx SPI %s controller (%s mode)\n", ... ? "slave" : "master", ... With that changed you may add: Reviewed-by: Jarkko Nikula