Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4844307yba; Wed, 10 Apr 2019 06:12:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWDyqVYN08TNHx8e83YcXkwqEEGJBlolS9mnT6+PVFN4+HJYE1bIKEYu26NFhOJMfnMeOL X-Received: by 2002:a63:751d:: with SMTP id q29mr41292413pgc.215.1554901939388; Wed, 10 Apr 2019 06:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554901939; cv=none; d=google.com; s=arc-20160816; b=oTYJeRGW13YFXFyw5greZFcJff5zc+hxr2vGndhL5vGmqCBQfJrJ9J7k+AOQiMDk9T TxDxzVs6CPeSXp8cBEqDSZWj6kMf2ZK5awCDzmk1R+vqydkrEheskOifcO64z1e+HK2y YwPR0WLWf8y34GCRH7zHHsUWtS/ddSx9YYJFi2qN88VtH5F30pUxnVZKMceUvUX9ltIe xkgj5HFMRP1u9+sirTqb+ZpFuXcmbT7ecZ8PBZkYNtkxblag7fSp8iLFk+fZn6ux1B7l yXH5cyyxbWoraNUzPFuB+Bzzz7bJ0POwxA2AFK+hw+cN0iroA0Kmui709J0AsI/EyOtz iy+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=q79ylfqorZlHv6DDfdAmeQiM9dEdx9t5W4K5ZSQIoG4=; b=m23bcBPcoXyf1rjIwrIxRaADJs0M6fNTA1HQsxTQQ5YLRo6B5spjv/9etejVFIcvGL 0iTg8rJgUU8unYLRwJs5xswq/CW5fh/3HF5cQCRBf566bSvPGKmNJDIdoaH105JXKu2G +tUfJJGa6CnBy1p0Dgzccpqw7mFL7/aSfjOI96v1dGIRsjcEGTbAYwn52Pdt4ZrkmFA6 a1bfWAM3AK/CvMEmhu2srBIkEKWm3TwxZNRGWPTsEqds3WJEvWepvVMzjhrxzzgLB6VP CQpmnyb2G+KcJxmbjqx73MrJmsokD6xyPPaGBfAxer3X3lDhSHJLz5u6ev3c3dhXcGJ5 7BrQ== 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 f1si31858587pgm.373.2019.04.10.06.12.03; Wed, 10 Apr 2019 06:12:19 -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 S1731635AbfDJMBU convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Apr 2019 08:01:20 -0400 Received: from smtp.asem.it ([151.1.184.197]:56986 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727515AbfDJMBU (ORCPT ); Wed, 10 Apr 2019 08:01:20 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003804311.MSG for ; Wed, 10 Apr 2019 14:01:16 +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 14:01:15 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1261.035; Wed, 10 Apr 2019 14:01:15 +0200 From: Flavio Suligoi To: Mark Brown CC: Daniel Mack , Haojian Zhuang , Robert Jarzmik , "linux-arm-kernel@lists.infradead.org" , "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 1/1] spi: pxa2xx: add driver enabling message Thread-Topic: [PATCH 1/1] spi: pxa2xx: add driver enabling message Thread-Index: AQHU7h76xswpdz/DmEySUaMIIqbaa6Y1E7kAgAAzYSD//+NxgIAAIlmw Date: Wed, 10 Apr 2019 12:01:15 +0000 Message-ID: <6953cafeb6bc4367842f37f567bb893f@asem.it> References: <1554736964-6058-1-git-send-email-f.suligoi@asem.it> <20190410103250.GF6106@sirena.org.uk> <20190410115431.GO6106@sirena.org.uk> In-Reply-To: <20190410115431.GO6106@sirena.org.uk> Accept-Language: it-IT, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.17.208] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-SGHeloLookup-Result: pass smtp.helo=webmail.asem.it (ip=172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A0B020B.5CADDB0B.0086,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 > On Wed, Apr 10, 2019 at 11:47:43AM +0000, Flavio Suligoi wrote: > > > You have right about to avoid too many boot messages, > > but in this case, using an x86 machine and with > > the spi-pxa2xx in DMA mode, so without the message: > > > "no DMA channels available, using PIO", > > > there is absolutely no indication about the existence > > of the SPI master controller. > > It's totally fine to not have a boot print for the device, the best way > to find devices if you need them is to look in sysfs anyway. Ok > > The second reason is about the DMA/PIO mode indication. > > With the board I'm using, sometimes the spi-pxa2xx driver can't allocate > > a DMA channel and works in PIO mode. > > > So, with the advice of Jarkko, I think that a valid solution could be: > > > 1) remove the "no DMA channels available, using PIO" message > > 2) add a new message with the indications of: > > - controller mode (slave or master) > > - transfer mode (DMA or PIO) > > > What do you think about this? > > If the system is randomly failing to assign a DMA channel when it should > then shouldn't we just fix that? A print which is presumably intended > to prompt the user to reboot to try to get things working doesn't seem > like a good solution. Right, I'm just fix the DMA problem (I'm preparing a patch about this) Flavio