Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp70545pxk; Wed, 30 Sep 2020 18:14:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkLH1eYM3ue3jSqhFh1L1dpsi1HAMbW6wMLeS0H3ylD2F1/2uRZN1RqfBtQSPNqmQjlpax X-Received: by 2002:a05:6402:1058:: with SMTP id e24mr5511331edu.357.1601514847570; Wed, 30 Sep 2020 18:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601514847; cv=none; d=google.com; s=arc-20160816; b=RfzIfc4taf0q8zMD2KM5zYAjvRjnffGf7h+0w7b5W/J99LV0sLWCxWXF7U7sn8ubNJ Xc47hWgdYxk5QCLmd6nV4dMiMbkwkP9uAtFyxhnHIy1EHPTYWRSl1OKyTIpmImmrehJC GMGgvkIoxw6EfCocZm1G3zRGrWTwUKUJBx+XwursnwUREwAk61YzBEvc6ST20aXVv88p 4cLkwUUTwEnBR/uwhUtwGICn3TTnPxTaE2PuXtj4rVdaKThGtfGzVCuzUNkT9MpmxV9W 8mlVO0PtX7J7rnix46RKZnG9OMg2kQ7stGX042UUrudSnRemMokpz5+FM15e3H+maB/3 gBmA== 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=/L5lZucoCa7h6Lixa7LevmnkauSwhzynBEpret8JHpE=; b=ozo/iLwgoSGLx+aKu6zyUR+s7iZIlxrgGNIpit3b8sPBIdIwCW5COfMsZcc4GggVVa EYiMDldav0UozX576sMuLmQR5titOccCyObSko+owHCpiZ2rSUMSUCqgDx2NOShksZYk 15lyLBlbwgIe03GW6IAMP2XHI3UUa3DSZ4H6Zn4wQSS0v84CtPfaS6nFqThW2/+usR4L EjAcJtSh0eAmdw+ycB98uwxTj3ExiCSscnoIWtIB9VALUH0UO0DMaTkzWFrlvprbXbPw rvHTUp/3FVHLxFHE3Y4gLMNSJI0MqI75LyEwZ/vOHn65jgyDVZkEGx3R0PYC8TO4s+t4 /MKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TggYMSF9; 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 w16si2314949edx.322.2020.09.30.18.13.44; Wed, 30 Sep 2020 18:14:07 -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=TggYMSF9; 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 S1731005AbgJAAHW (ORCPT + 99 others); Wed, 30 Sep 2020 20:07:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:34292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727210AbgJAAHW (ORCPT ); Wed, 30 Sep 2020 20:07:22 -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 263DD2067C; Thu, 1 Oct 2020 00:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601510842; bh=mxHwJtix2oePz5Y9t2+7oqSmrOrDdzGdUegooLeZXRg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=TggYMSF97Vr6v945B53ghryBpD4/zASFXFa14LjZYicweDEigAZx84+11vHZg5IrS Or+LVtIT4AsKw13BRD/lw9ocHc0clF443zrit/J5NCFC3PTluDtsJeUXXPlXMKMG+Y c7jEWg74Tt1w6ciTZ4suf+8XGQUEfo8XiK+2k8Yo= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1600812258-17722-1-git-send-email-collinsd@codeaurora.org> References: <1600812258-17722-1-git-send-email-collinsd@codeaurora.org> 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, Mark Brown To: David Collins Date: Wed, 30 Sep 2020 17:07:20 -0700 Message-ID: <160151084091.310579.3876905878885019200@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting David Collins (2020-09-22 15:04:18) > Change the format of spmi bus device names from: > - > Example: 0-01 > to this: > spmi- > Example: spmi0-01 >=20 > This helps to disambiguate SPMI device regmaps from I2C ones > at /sys/kernel/debug/regmap since I2C devices use a very > similar naming scheme: 0-0000. Can regmap debugfs prepend the bus name on the node made in debugfs? Does it do that already? >=20 > Signed-off-by: David Collins > --- > drivers/spmi/spmi.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/spmi/spmi.c b/drivers/spmi/spmi.c > index c16b60f..ec94439 100644 > --- a/drivers/spmi/spmi.c > +++ b/drivers/spmi/spmi.c > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0-only > /* > - * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. > + * Copyright (c) 2012-2015, 2020, The Linux Foundation. All rights reser= ved. > */ > #include > #include > @@ -62,7 +62,7 @@ int spmi_device_add(struct spmi_device *sdev) > struct spmi_controller *ctrl =3D sdev->ctrl; > int err; > =20 > - dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); > + dev_set_name(&sdev->dev, "spmi%d-%02x", ctrl->nr, sdev->usid); > =20 > err =3D device_add(&sdev->dev); > if (err < 0) {