Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4700327yba; Wed, 10 Apr 2019 03:06:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgR97mPyPXnmZS2t2auI9h6RzRfsCqS/9xvrNLixWIaqBnkugZ694yyjNqE4d08cAxfy6o X-Received: by 2002:a63:f212:: with SMTP id v18mr38874416pgh.231.1554890783960; Wed, 10 Apr 2019 03:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554890783; cv=none; d=google.com; s=arc-20160816; b=S/AtMy1Iyf1/YIU4tIUgbQuTsayEqHN0THdzqMZR3dPTitxz8V4XNVeU/Z8GfGzadf hV1AK2szJQnsZBL1F0/XUTT4A+AecFARB+wPUSvy0f0ovw77YeiBPJkatzBpu4x5cOUP Y7WnnjTQDQBr5sZoBjVgMG7o07ZGMorfWhh2wKs+uOYELt3ItLO31xqJmF/NtRf3b0ih gvg7pKYb4sEFQ0WyJ7OjTXpU93Tfe+nFVVIYCvn1VHg4r1DwuisqZowKdUW5hCyjbHyx XjHE7mCsb98vRDOGGojeUqmWQRp3evEYiOQ7WlslMU08adKbKtUMvWOMpeMHfKIDNxiE Mykw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=xhTodBQ4qGkgu+rq69bsWpKfOUrBqZaCJg6wADJXHis=; b=dP5ZZXFNHMcgt0pLOHzytV1bMXgBEPUbZehaUVA2MgLwikdb/eZQX8YVg7QcTsFTJy N2bjCd28xknkEYALQsVewV+mkETdOZmpjzCSi7KPeFgjSK7X2X7vAUSTm/AHahzdePzv rBVnOl1dVO22zlmf8YwQTWJs/kxWYsci2RSkPL6s+/HT3Y1ChLE7pmu3jt760ANnGS+j wV7QJPLNdz5oJtWqdLO0+BvQuV+PuQLK6Iu9u/N+nNOUj1llbiFCKLmXpdGEA9a+/1N+ WlhGs+zKEBpMolFCKaq5MWP3TnBZUuAx4xaH3ffmnFewmdYjaJlHxGoej6vhOdgtWKTg V1Fg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v69si30673537pgd.276.2019.04.10.03.06.07; Wed, 10 Apr 2019 03:06:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730063AbfDJJrQ (ORCPT + 99 others); Wed, 10 Apr 2019 05:47:16 -0400 Received: from smtp.asem.it ([151.1.184.197]:60385 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729737AbfDJJrQ (ORCPT ); Wed, 10 Apr 2019 05:47:16 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003803861.MSG for ; Wed, 10 Apr 2019 11:47:11 +0200S Received: from ASAS044.asem.intra (172.16.16.44) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 10 Apr 2019 11:47:10 +0200 Received: from flavio-x.asem.intra (172.16.17.208) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server id 15.1.1261.35 via Frontend Transport; Wed, 10 Apr 2019 11:47:10 +0200 From: Flavio Suligoi To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Mark Brown , Jarkko Nikula CC: , , , Subject: [PATCH v2 1/1] spi: pxa2xx: add driver enabling message Date: Wed, 10 Apr 2019 11:47:04 +0200 Message-ID: <1554889624-25000-1-git-send-email-f.suligoi@asem.it> X-Mailer: git-send-email 2.7.4 In-Reply-To: <358f26bc47bd4aa289971f0a763b27cb@asem.it> References: <358f26bc47bd4aa289971f0a763b27cb@asem.it> MIME-Version: 1.0 Content-Type: text/plain X-SGHeloLookup-Result: hardfail smtp.helo=webmail.asem.it (does not match 172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A0B0201.5CADBB9E.0077,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 (_st=1 _vt=0 _iwf=0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"); + /* Register with the SPI framework */ platform_set_drvdata(pdev, drv_data); status = devm_spi_register_controller(&pdev->dev, controller); -- 2.7.4