Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1504076pxk; Fri, 2 Oct 2020 11:07:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylG9olIyAYwyVR4qJkeI3skpdsIXicq6PVKhFvfF1gJ9OiRi241qmjBadyLSjT9KRmxywQ X-Received: by 2002:a17:906:a415:: with SMTP id l21mr3326103ejz.431.1601662058971; Fri, 02 Oct 2020 11:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601662058; cv=none; d=google.com; s=arc-20160816; b=AhjIMI7DYzWazoy6iFkUIFVx1qJ+bz1hosHOatFdKAS8QmjZ8Lp/16zll5/99PdR23 C4o3zU01fd4l/uUA6aPJC2vNmB3SsVt2Dq8nF2XL3BUZt2jalBar1r32wXYKhyub/tmX p+MkEssP0QKEi71ff1etJtJqalpf2m3AHrmJxolcvoSiO/yHV0KacfYE4bmorIUwMLcD xQVNH1M+g3xkGMzFcP4Lxv+pqNZ27mdKpEDqYZVG/a5lc5w91WK8IOxMQJopCWs4YzC6 3tuCwDxPgsL7QBQAUJQhPbm0zpAjvPg2uPzzVNT1LSY2z60bh5zU7GvZYqO7ttk/d7eP iHzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Oe+3SffaeBwc55zwzkbQrnE3bc7XKzRIRUmtpfkaZko=; b=isZpbvtiO0hfrQRSaq8zX66DyoOOReB5VY5/lrG0CoAqbXe3q/LIcJwU7dRlBwLg/k 52Bskk9dCWmLn+C+0zmvQiTo0PSLls/T5WgC2mEyWtJWMzjQh2B2shpvI0Ga2HR0Z2dE rUj79Af4ms0fekTyL7hGSui16P9swHoeDXjY47tBugMrBumYuZ569A7bICIqwoxoF445 5og0ih49EFZ/LMSs2VFoBNQdW+yEpuCSm/xPXku0wgS0hcrTnAGw0Au1ZqBVUUFCcmcU 0+ErFiYXCfIBy9miQGATjOFf37rw0OpiGMNkAEHXNz/4/OmeGGtJqZf6YIFJvgBmYsIK 8q9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qvDSd+47; 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 n23si1564142eds.342.2020.10.02.11.07.15; Fri, 02 Oct 2020 11:07:38 -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=qvDSd+47; 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 S2388374AbgJBSFb (ORCPT + 99 others); Fri, 2 Oct 2020 14:05:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:34826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgJBSFb (ORCPT ); Fri, 2 Oct 2020 14:05:31 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (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 903BD206DD; Fri, 2 Oct 2020 18:05:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601661931; bh=K98AP66VVpH1sW1F+yuwy7UvFoxzrQ3z5eMj19KgSYo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qvDSd+47gVYYokPvzqNTa7CSC30B++lr99Jdav8wlM5KOdQXYtT06x6vUfOlSQkm/ n7LwyKlj3q8R+YIl6R2A+SFA/2+/Oi8VlPLS4Cn3BACyVv5M/YZGgMex35RP8b4uHh g2J9kknn48cpGPEgy7kr5pjpStA82ksE/6JDOoI8= Date: Fri, 2 Oct 2020 19:04:30 +0100 From: Mark Brown To: Stephen Boyd Cc: David Collins , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH] spmi: prefix spmi bus device names with "spmi" Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eVzOFob/8UvintSX" Content-Disposition: inline In-Reply-To: <160166091282.310579.8553391053258607173@swboyd.mtv.corp.google.com> X-Cookie: Words must be weighed, not counted. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --eVzOFob/8UvintSX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 02, 2020 at 10:48:32AM -0700, Stephen Boyd wrote: > Quoting Mark Brown (2020-10-02 09:03:24) > > ...and doing this in the dev_name() should help other diagnostic users > > (like dev_printk() for example). > 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 Not that I've ever noticed, eg on the console. > Put another way, why not introduce something similar to i2c-dev where > userspace can read/write registers for devices on the SPMI bus? > Otherwise I presume the test scripts inside Qualcomm are just reading > registers out of regmap? I know some other vendors use the regmap debugfs for their diagnostic tools (obviously not with SPMI). It's generally so they can get the benefit of the cache, it's a combination of allowing the state to be inspected while the driver has the device powered down and for devices on slower buses being much more performant. --eVzOFob/8UvintSX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl93a64ACgkQJNaLcl1U h9BaWAf/cFdBtjH6GQY9ZqGf9hPnOUU0nn9nOZGmbmyOE9nWblV57YRMn+RfN/KU rpdN/51JdNRZBtCh6lQC4llsK41K6EGf/xiscHLcl2iz+8733AuSiEM3nwa9uq7Z Bfb/w3SN1TrVV2XYeBdEgYDFCDlpCRjfdNr4MMvRtsVmb2gUpRLL7SOk8D4rvj2t QD93bgb13uCfQRHR5z21r+Uzz4rL4Fkhh1Ip+POrTjbuuZPPsdgSzquyk0/0VsoD 04YJxq072QvA5r42XK3HeAIl0bItvR68F/OXXdW46isM4ybE8gJ/MZLtEgFRMa+m 2T/vXwIWUYK20s/aBxAg1lLphd+PAQ== =te6r -----END PGP SIGNATURE----- --eVzOFob/8UvintSX--