Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1494113pxk; Fri, 2 Oct 2020 10:52:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7YR5NpWSRSRMxwAA9fLeszqwMvgN3FrkRF49yr6Rd8p31ICnNV7e61+ZpEXGI0mQGiq8M X-Received: by 2002:a05:6402:3c8:: with SMTP id t8mr3567728edw.266.1601661125425; Fri, 02 Oct 2020 10:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601661125; cv=none; d=google.com; s=arc-20160816; b=XBwPRA5gRWePwfuxhGV8jh7Tc7SoPmW8YMD9T2M1HWJpWahFu6Qo3s2e4H7WSXq/4J jeHkYs8ifDW9kBjEojLFX/fkp+l7Y/VTNH8oK4ZL7dKFulHN+4I25tsa99/2t1Bdg1tk 6QQ7cuny5mHaUPsYLldRZYDc+ogL7G5p2nHjJzvRaJXn09ABA44fomGzM61r9NOOUOHv phgA+QRn76BzDx15hfTr9u8UQwXi1mqbRf/p3KUW8jqWuAtcNrJ7hlb1Dhsi/CMWXM6A VwpA+pBYFsq9Us45ggBvXXPaoXT3lTXFznDRDzg87RRU/1undiYzj5d1kQIu8zJjtj0w wOPw== 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=yPCSkn0fo6J66ZGwwYp7rVFApOwRA83Z5X3mvupTJZ0=; b=NPWeNHhn1GXKqq8AeUL3UpgZ5JaouH1w/5WkB5jxkUOtyTgLJq0iW2+vIjDyoHSZHm QoB8G3fl0bUBmD1WJchaj88u29P/Y16bHToIpX7v8T/Dposqxkvu6HNSdJHEXfXc7+Rg 07Ff2GMLD8U64j4MIRNmLXmxzBeHWx+r0fM1oVwWsmX7X4Mi6LZ+nDYuGAjL/+M4c1pc t740PR+PetnO3vpIk7ZmSe7rR8zkAL9FjqSq22GjHfl04NOLcEFNi3SQVVywBk1FaOie H1zamvoysyp/9ZWnoIZTQHmZL4GlLH6yCNFFPA2FJqUK4IbBx6vCHi5+iE2WldDDQJu8 g8yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zlKsQAtj; 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 r5si1605371edv.96.2020.10.02.10.51.42; Fri, 02 Oct 2020 10:52:05 -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=zlKsQAtj; 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 S2388198AbgJBRsf (ORCPT + 99 others); Fri, 2 Oct 2020 13:48:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:51344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgJBRsf (ORCPT ); Fri, 2 Oct 2020 13:48:35 -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 88A5920758; Fri, 2 Oct 2020 17:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601660914; bh=CzKOeFawjuGPDhKj3RI2NcBnNWsVd2Mxj93dT6NuZMs=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=zlKsQAtjSxJA6MQEJD1FLtzWRuTd7DfBki21bDohcdcJDiaXtFZJvQJAmHrDxgx9v advxZIfQ6HOv6g+saqEGqh4Ec3ndWz8HOCCmF23wdEFDs8GHxrjdzFXsubQNYRxHuR gEFWsG4ps0oAnY6VmrQG/09+aII7HpmXkk+YEQwY= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201002160324.GE5527@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> Subject: Re: [RESEND PATCH] spmi: prefix spmi bus device names with "spmi" From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org To: David Collins , Mark Brown Date: Fri, 02 Oct 2020 10:48:32 -0700 Message-ID: <160166091282.310579.8553391053258607173@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 09:03:24) > On Thu, Oct 01, 2020 at 05:45:00PM -0700, David Collins wrote: >=20 > > The SPMI regmap debugfs files are used extensively for testing and debug > > purposes internally at Qualcomm and by our customers. It would be help= ful > > if the more verbose naming scheme were accepted upstream to avoid > > confusion and broken test scripts. >=20 > ...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 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?