Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1623840pxk; Fri, 2 Oct 2020 14:40:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7yBgLkQ9Uxg1Kx439uj1nJEhOGk5kLpKmQNfm6UNf8EosPSfWztwuiuPZIwJ5ss4nooVp X-Received: by 2002:a17:906:6a82:: with SMTP id p2mr4151560ejr.3.1601674858928; Fri, 02 Oct 2020 14:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601674858; cv=none; d=google.com; s=arc-20160816; b=WYcUXUPSl2tuqC13480tP7OgcMRbK/UVvtZiuZo+KzmClADsLLfm5IttDEKYKlMOuc KlSVKEZNgSOpOnPRSOKDfaro7AMAjiN/LNtEuwKb0/Eu1MYLhU5CUv6wKC6Rm6R2Gq1a HpZieAHiWP+DWFZhBgKVubUURGybOz3Mgy50IRV8XCOaE6sADN9iFutTtYN3SZDDk7I+ FywwKT4zzWovlhTmYrERATXBa0wV/e9w6Bc9oD6twd/Jx1Y1dNT15NY3QmMA4nzSUx3X CuF4miESJQaw6ee0kKQNUEUYREctdYOu44oGZowd2uUE3vrP9tMFLFWU7IfdLiDawkV3 AOdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=PQsb4hDMsQ0CKkgWn+xS6Cls4rSJ4G/NBB5LLpZLs2g=; b=EzGd9vDTgRgdt05kp5Ilybw+6pHzuyt8bSI7b5FTVvOLwne3A25lhWiEGQMxzqoUWj g09p6wcN3MZ9VO6UG3su1F75Nt51QhnBe0dB96bbbbuf68nVnB9vRBBYi4WTgfd4vFB5 9wj5U5pqTKxzHiScAK7PwlapKc4Jn6/vDvE4J+CDE1QbOe8b0HiDLynEL6Lfx2tSaLrh 1OU+nk1ur4psC4SHQJZl7foe1JealSSla0Zhexea1aHXj+Ja64iCgzWAWPLejaXpS9sS g2I49WSLn15emFQ0OXfMCKyU+eCP8zHdUwokX1/Xs+0780gOpTOm5uyUcyX/0sqYin1T Y6CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j4XNicKR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk18si1881598ejb.172.2020.10.02.14.40.36; Fri, 02 Oct 2020 14:40:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j4XNicKR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725616AbgJBVjh (ORCPT + 99 others); Fri, 2 Oct 2020 17:39:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:49796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgJBVjh (ORCPT ); Fri, 2 Oct 2020 17:39:37 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ECEDE206DC; Fri, 2 Oct 2020 21:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601674777; bh=EigpOxJQN1NRYUgWkdPC3dt6d4DG7VwzcQ8x6TXs15k=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=j4XNicKRslHPHRJomOZpo4tfYRPsNgkvNENfihlL0okeY+8olvMkrycqqhGDtWqnx 6Yo9s2kFvY8Iz8Miuvb2l51iScLReRb8OGM95aozkkIy81UpQR7FrPKNunB7a+naoP zs6wLQCBhunewdyIGVWULGQ6J77qGYbl9lwWj1Z8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201002180430.GG5527@sirena.org.uk> References: <1600812258-17722-1-git-send-email-collinsd@codeaurora.org> <160151084091.310579.3876905878885019200@swboyd.mtv.corp.google.com> <20201001174326.GT6715@sirena.org.uk> <160157827040.310579.12112194764912078296@swboyd.mtv.corp.google.com> <7c45b147-f1d2-4b32-9e51-71c5d2cb576f@codeaurora.org> <20201002160324.GE5527@sirena.org.uk> <160166091282.310579.8553391053258607173@swboyd.mtv.corp.google.com> <20201002180430.GG5527@sirena.org.uk> Subject: Re: [RESEND PATCH] spmi: prefix spmi bus device names with "spmi" From: Stephen Boyd Cc: David Collins , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org To: Mark Brown Date: Fri, 02 Oct 2020 14:39:35 -0700 Message-ID: <160167477566.310579.12040108464021349450@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Mark Brown (2020-10-02 11:04:30) > On Fri, Oct 02, 2020 at 10:48:32AM -0700, Stephen Boyd wrote: > > Quoting Mark Brown (2020-10-02 09:03:24) >=20 > > > ...and doing this in the dev_name() should help other diagnostic users > > > (like dev_printk() for example). >=20 > > Don't thinks like dev_printk() prefix the bus name? See > > dev_driver_string()? So I agree that having the bus name is useful, but > > confused why there are testing scripts and things on top of regmap > > debugfs >=20 > Not that I've ever noticed, eg on the console. I see things like this on my console: [ 1.684617] spmi spmi-0: PMIC arbiter version v5 (0x50000000) and 'spmi' is the bus name I'm thinking about. But I think that's because there isn't a driver attached. Nothing prints for the 0-00 device by default, so I enabled the debug print for it and I see [ 1.693280] pmic-spmi 0-00: 28: unknown v2.0 Anyway, the device name was written to follow i2c as far as I can tell. If scripts, i.e. computers, have a hard time figuring out the name of the device then fix the script?