Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp710100pxk; Thu, 1 Oct 2020 11:52:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0ixikLh8YjvTvA2ryGYkhNSgNMg5klyXw+PLs2H/TfNnwmrXYB2URWNwoaub2V7jJJVK1 X-Received: by 2002:a17:906:b1d7:: with SMTP id bv23mr9185292ejb.464.1601578373814; Thu, 01 Oct 2020 11:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601578373; cv=none; d=google.com; s=arc-20160816; b=AUCfyEZbVRA0KOkjcgz5MXJ2j6KSEDNI6k4f75CdHuPjSjMYZQqigdvz53IiSV0ndh fr6ltSZhgN9L5VQ5bq8kWLl69Z3StYFjASk5ier0YJCRFeP8+7sTE4PdRjnDDzEbegYC sK6bHn8+oWeJXJyy1OtQhlxop/BH7o9V9HWne8xTooyzu5s3xs+FOvfRXZy8dFRpe/Vu cpmZzyMI2/JfZsD2g3JkNewK2GpTWesPIgL6NeK7yxBJblp3LBqCiPXor13+PYC0Pm0B CsqBhrWX8FO4YFIZTcsC3WyDUpFApwrFGwO3odMX0qWy/EQndQlMeGzp86ccNb72blF5 aW4A== 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=eOYIdJGWqEAfz6jpj8wvBQhrttzYgZWxQvkgMAkVHzc=; b=Qmq4fAvG3UWf1z764WoDydrykPFhVhapEaMRujwoU69eByAibkYZdJphjTDY0AZVSV wXkg2u9pVBt1J/HX+UC+Kkx5oZWWTttM5kYQSF/JHvIIUfeNPCRsI95scFMV0pkbfMu/ njEKtJN+RttGJZqRj51kj1CXSHF2fxWTP4/Egt8EDSgdXawIMMB8Rv9HpnvTF0GBk7dE 0w/uVAelN7qGQY7eummRrGCi3CF9JzOL72s3kUfIwjojj/9/lsr+glli/RBDMGGTcWRC zqOoK7V8pdHEAhAywI8RnWWYLaht34nXW3mBvArQMM5jiGSgxCXUHkUEjPOpQQt+RYac hQQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jzlBRf1D; 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 3si4394550ejr.430.2020.10.01.11.52.31; Thu, 01 Oct 2020 11:52:53 -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=jzlBRf1D; 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 S1732287AbgJASvM (ORCPT + 99 others); Thu, 1 Oct 2020 14:51:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:39168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729047AbgJASvM (ORCPT ); Thu, 1 Oct 2020 14:51:12 -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 9583320882; Thu, 1 Oct 2020 18:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601578271; bh=v1fQHu7qwliGOnNWTNConojv/IvzPORHTszjE+Q+PFc=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=jzlBRf1DaUTx1mvCpoM2/Ko4zqz3+e6ns6IoPib/SPuU68Rz3JrV1KEJo9eKokXeS 9DbbNPFJxJmBQZcV4qm+DpNAXWCaWmxltzY3i0PZttVidWlyoPQ2FLgu6fAdYycvvs ASxm6tQ20C/jLHYQewgXf1t2IRuxG+Ng04QKXH6w= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201001174326.GT6715@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> 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: Thu, 01 Oct 2020 11:51:10 -0700 Message-ID: <160157827040.310579.12112194764912078296@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-01 10:43:26) > On Wed, Sep 30, 2020 at 05:07:20PM -0700, Stephen Boyd wrote: > > Quoting David Collins (2020-09-22 15:04:18) >=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. >=20 > > Can regmap debugfs prepend the bus name on the node made in debugfs? > > Does it do that already? >=20 > It doesn't do that. I have to say that given the use of dev_name() in > logging it does feel like it'd be useful to have distinct names for > grepping if we're running into collisions, IIRC the reason I went with > dev_name() was that it's a commonly used human readable handle for > diagnostic infrastrucuture so it makes it easier to follow things around. To me the dev_name() usage seems fine. Maybe David has some real reason to change this though? In general I don't think userspace cares what the SPMI device name is, i.e. the device name isn't used for dev nodes because SPMI doesn't support ioctls or read/write APIs on the bus. That could be a nice feature addition though, to support something like i2c-dev. Changing it so that regmap debugfs is less likely to collide looks weird. It doesn't actually collide anyway, so it seems like we're adding spmi prefix to make it easier to find in debugfs?