Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4981023yba; Wed, 10 Apr 2019 08:52:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYBZ2PtSnU9lRkN34T8aYJfNBXgSvGQ9l4cTdvzpbg0Ls81EzZcj68tX5kqaxOAdtuODbW X-Received: by 2002:a17:902:8d89:: with SMTP id v9mr44612140plo.230.1554911529132; Wed, 10 Apr 2019 08:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554911529; cv=none; d=google.com; s=arc-20160816; b=ddmjlaf1ZWHj3wFRRu7V/9GOWLKRD91VYUBHi+76jUfvcWF5RVKh+2VKioCPE9OhVm eCssPSPATV1d6udE92xTfd3IYL6CBZDLtw8MrYd6Zdkh9qLyxxyj+MFprTknu6eCNRMv 9F9MaVfkSrElocCk9zECwUOlIvbYvjdMcJrenuO+Ta3pc7HklfAPEpyfmjmK87rsJoTf cBS/gSPGPRehDHKTgxK4iwh35OvzzrExHYOdL9z3Wr+5HeukQ7FShNuVdJrX5SolLYoA OQQ4aMgg3kS6MX3BdWNtYGJuhTBtof2b5viVBToVqwyyXta3k5eS4bhttAN7U1O5Z0Y+ 2YUg== 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=CvDMMEoZpN7ax4qqwJQivkWJBVHhO4cH6RUFWc3vKS8=; b=c2uzy+Ikef8r0bLvLDKF1gK/AqZIE95Qovq8DutWcEb4NUe5Xir2qQZYfoZ7mZOMYh Rmyp/4koiqZN/tsJ6T6GzEr/ePb9dtlsP5KRPw883hZqrMKPGjv9qmhFv6oi3b8Hneb5 EvY2UdHhsX+bF1O76N9jLc084EsqZGXqkagPj177tVJsU3CMBJ1k7NqwXQ6CpQoxWQVV AvnYZ6OWfy5IuFelgNHsdjWqdbH8+umpPTRRSMLd4edEw7clqn7q1+c8Ry1+WjSDVsaO ONSDHX5acvj73yc53RnIVpQ6lpQ5+wOLbZ0w6puXI8w0ozVONlDIjb9nEPC8fPUQ+wMZ 6nJg== 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 f59si2892816plf.343.2019.04.10.08.51.52; Wed, 10 Apr 2019 08:52:09 -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 S1731523AbfDJLrt convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Apr 2019 07:47:49 -0400 Received: from smtp.asem.it ([151.1.184.197]:56840 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730920AbfDJLrs (ORCPT ); Wed, 10 Apr 2019 07:47:48 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003804256.MSG for ; Wed, 10 Apr 2019 13:47:44 +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 13:47:44 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1261.035; Wed, 10 Apr 2019 13:47:44 +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/DmEySUaMIIqbaa6Y1E7kAgAAzYSA= Date: Wed, 10 Apr 2019 11:47:43 +0000 Message-ID: References: <1554736964-6058-1-git-send-email-f.suligoi@asem.it> <20190410103250.GF6106@sirena.org.uk> In-Reply-To: <20190410103250.GF6106@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.0A0B020F.5CADD7E0.003F,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 Hi Mark, > On Mon, Apr 08, 2019 at 05:22:44PM +0200, Flavio Suligoi wrote: > > Add an info message for the PXA2xx device driver start-up, > > with the indication of the transfer mode used (DMA or GPIO). > > > > This info is useful to individuate the timing when > > the module starts. > > Adding this sort of message to every driver is going to make boot far > too noisy, it's one thing if we actually enumerate information about the > physical device but this isn't really that. There are already prints in > the driver core for when things get probed which can be enabled if > ordering issues need to be debugged. 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. This is the first reason for this patch. 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? Flavio