Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4981100yba; Wed, 10 Apr 2019 08:52:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlK1CBis0+GYcWCem14ro0O/MJLZ5ppxMTn+Uf20VZ/ab3479KzA93VOrUhxyi1JSofz8U X-Received: by 2002:a17:902:2a2a:: with SMTP id i39mr43012948plb.211.1554911537203; Wed, 10 Apr 2019 08:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554911537; cv=none; d=google.com; s=arc-20160816; b=DiDuc6J8AS63v/++CPYM6kI99azSGBX4BHzIVFuwlmdOlSAyo1wZh5x128Y2ffUuet p17czVYZ6FkdIeVfB79+5P+VUrrrEHkE1TThhCVYjx+tlgDvQSOI/MTJNbMEu4mTgGJY FqIu2r2X3hiR5pnQIzFiS8TYBzzk1DUA6jujJRF+Bjxnc68SgJrCF73cYfmIORuxwrSq 1MRJeiZNfYt4QmM406gcUDTPzE/1PQXBtra0K6BFxWqt3mGPk2SQRHpVBTXBD+Qve+SH yokGM2PQP2LxwMC32cqRTOGgmXidGiKdzx4j8BNYjoUDEHUctHRGaxvNNx+XuTcy1gLB K0nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mKgJPzcG9B1p6WaSu4PfmZ6QERurEdmFkN9aB2wm1JY=; b=V2h4XpLKx+T1ViHGLGQBXd0qNgYgpYnuVjsFyKT4Pu5nblhZVMSpd8f7o3ItI1eHfD xIHKl1Cpmcj8SJ6FIWM78MO3ldbGs9NDSdTnlaAK/XdWbDSdQfiaEABCO32ic8L8v3NP /+M6FIKBI5BI0bVUghDUhYSM/3yJ1URlxVNXzVQhH67yyNvRXIAkMyLJ9up8TBwKV4BC zZHVDjokyvPGAAyPK1SHwAmL5f0+RmarzZDvkR4xayFQssponK8Q0nhz52WXYwnPmQqf AdDgrXhjofFYlpROXuzH0xpkoKKTrzKSU1e1bqB5WWlnaENNHCYfmkj/faBLVPms5EUD BtMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="F72eV0/o"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k185si32983693pgc.450.2019.04.10.08.52.01; Wed, 10 Apr 2019 08:52:17 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="F72eV0/o"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731579AbfDJLyl (ORCPT + 99 others); Wed, 10 Apr 2019 07:54:41 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:37768 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbfDJLyl (ORCPT ); Wed, 10 Apr 2019 07:54:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mKgJPzcG9B1p6WaSu4PfmZ6QERurEdmFkN9aB2wm1JY=; b=F72eV0/oUP9Wq8tMbJJa98rQA pXmQq4XeQy7SQfH3kFSElAYET1ZG2J5gR2W6eyShP/xfSF2kgbhufKKho6mlAJCx531ZyXLpSJkGu C+5gWz5ucZ5RAATSep7zE+tyXTBw3+MMs4Gcca2I+9ZkLSROxq9FkDXzCihUKhYU6uDp8=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1hEBoG-0008I2-F9; Wed, 10 Apr 2019 11:54:32 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 861871128ED3; Wed, 10 Apr 2019 12:54:31 +0100 (BST) Date: Wed, 10 Apr 2019 12:54:31 +0100 From: Mark Brown To: Flavio Suligoi 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 Message-ID: <20190410115431.GO6106@sirena.org.uk> References: <1554736964-6058-1-git-send-email-f.suligoi@asem.it> <20190410103250.GF6106@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3snK74p7ddXn3Qrx" Content-Disposition: inline In-Reply-To: X-Cookie: teamwork, n.: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3snK74p7ddXn3Qrx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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:=20 > "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. > The second reason is about the DMA/PIO mode indication.=20 > 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. --3snK74p7ddXn3Qrx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlyt2XYACgkQJNaLcl1U h9D4swf9FQN1Ra4YLunh8c9Ja8dvSdcqUjDUKfRd3Ja7N+6V7epHSWIHnYAOirf6 UCPHczZoUJc8o5kNvW2191qGCCT6lmD4imvWsWVaO/LbpwJAgW7XEezV7nFQVSKV IEshtWiWDpUS1AMxBQAdmMFv4iKaeNddlJqn2bIhb0K2AXOsw8xy1DOyma/zP6XT T4hP/VO3Y5Jwn2hmGTz8hJaixRawaJ4R1ny2WC6xP+Mq20E7adpSe/R/ubRNP7A9 TKajLyvFz1E8QTAud0BtBQusL+0E9rVqbE/l3YV2S0s6Ilo+hWxglmU4jjmdUVxh w+HyRCfALV2XF9KG06PyfzEONSoleg== =32Ct -----END PGP SIGNATURE----- --3snK74p7ddXn3Qrx--