Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4638784yba; Wed, 10 Apr 2019 01:32:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzT8egPhpGDDtw1us9W5dgHoquj/zTy2/Psat91n+0vJOjOnv+2sx+OxzuCUpHHamkgtc3A X-Received: by 2002:a62:a219:: with SMTP id m25mr42571771pff.197.1554885138973; Wed, 10 Apr 2019 01:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554885138; cv=none; d=google.com; s=arc-20160816; b=T8QJJBgXLdbRKCzUXLbwsyt3n2ZptvrrQFqHb7tH+ptsUnLNgMcySN1Q7U1PIPCvkz YT7TtkrhVsbYUxHIZATg9Csl0uguHwtbXBFkdDBiS5jnXp0MFCV91yhS26CKk2UQJFn7 CyE7RC4hTEsZXLYnANEymzSEmY326GAp9bB0A9ckFFG+OGN6+VtUwIUoYIUECBWlt4j8 PNeih4qwVm5ci46I6Brlz9wWrHE4O6c1PXZN/2kHUiFoTpFXsPr+sNZQdW+q23ZdTfFs btxUVkuQuENu9Au5rpreTEjrhfmjSByDrfg09c68DmhB814ZYVxjSirIQr60nPlFP6Rj ppPg== 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=e72RZS4+9WMICFOFTBUczq9prn6VPbEwHdAp/6Fz2FE=; b=z++j2Svwnx0Nd8QRSovcRPktCtex+0/Ev/97+2sCxIDcN7Tp1I728KSogWnjdJou+L q+kvt6nRKYSGVLI69AlpMoA9MrOadhb+2RNbHdhKfnwf7SE6pLIfHcuE9Vx4u7HJwU6X oIzKmvfB/Jmjfb7fkqRsVxtpPjZy1ffaj32GN9WhiTAG+cjHcZkINvm0PudjT9v7K6Ar nUD+GGbEbswPcBOk6UiEPGgG884atlO3QD4N6y3Jbl8PpBZ3LAQbfodHsMBkL87qXbsL mUgrRIh+k54WJ5sCEBWjLiC/mihWwYhkhegFp3SgHe16fguCIpPfkjdxadYmzPE/oDOV LAZA== 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 v25si31235420pgo.317.2019.04.10.01.32.02; Wed, 10 Apr 2019 01:32:18 -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 S1729542AbfDJI3e (ORCPT + 99 others); Wed, 10 Apr 2019 04:29:34 -0400 Received: from mga07.intel.com ([134.134.136.100]:52479 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729045AbfDJI3e (ORCPT ); Wed, 10 Apr 2019 04:29:34 -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 orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Apr 2019 01:29:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,332,1549958400"; d="scan'208";a="160344024" 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 01:29:31 -0700 Subject: Re: [PATCH 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: <1554736964-6058-1-git-send-email-f.suligoi@asem.it> <51e9e073-625d-f5c0-6b2e-410f6ddb6346@linux.intel.com> <6cef52a73fb547bb9c0dd84efca8f7f8@asem.it> <2c853342-f937-30e6-ce6f-010e06f7376c@linux.intel.com> <2a8b7e65d1334a5491b8bc9e9a96a685@asem.it> From: Jarkko Nikula Message-ID: <400467d8-19d6-1796-5fa9-cb5b37d61792@linux.intel.com> Date: Wed, 10 Apr 2019 11:29:30 +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: <2a8b7e65d1334a5491b8bc9e9a96a685@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 11:13 AM, Flavio Suligoi wrote: >> [ 9.506895] pxa2xx-spi pxa2xx-spi.13: no DMA channels available, >> using PIO >> [ 9.516770] pxa2xx-spi pxa2xx-spi.13: registered master spi2 >> [ 9.518527] pxa2xx-spi pxa2xx-spi.13: PXA2xx SPI master controller >> (PIO mode) > > I have added this message because, using an x86 machine, the message: > > "pxa2xx-spi pxa2xx-spi.13: registered master spi2" > > doesn't appear in the kernel messages! > Yeah, it needs CONFIG_SPI_DEBUG. >> Actually this info message doesn't necessarily tell will the driver end >> up using DMA for transfers. See pxa2xx_spi_can_dma() and >> pxa2xx_spi_transfer_one(). >> >> How about replacing "no DMA channels available, using PIO" and have >> instead single info message telling is the DMA available or does the >> driver use PIO only? > > Ok, it's a good idea, to avoid to many similar messages. > So I can simply remove the: > > "no DMA channels available, using PIO" > > and leave only the new: > > " pxa2xx-spi pxa2xx-spi.13: PXA2xx SPI master controller (PIO mode)" > Yes, something like that. Now I remember, please also take into account driver is dual role since commit ec93cb6f827b ("spi: pxa2xx: Add slave mode support"). -- Jarkko