Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp330745lqh; Mon, 6 May 2024 23:36:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGw51nIEeJtD03+OZguiOUkDqmWgiwTD4i9GnTLUSjgjgKmfoOGQp0emIkWEGEBEV0wEpJFwFzQYhGfv9D92+aLQ3U22jISSTAQctaYQ== X-Google-Smtp-Source: AGHT+IG0/0LDP6rvTnmlW56GYzlZYs//bKGUdAzLHn0S+W5NojR+Kx/JGBdurBXb+AiPVIpyFEyP X-Received: by 2002:a50:bb06:0:b0:56e:3088:49a with SMTP id y6-20020a50bb06000000b0056e3088049amr8814362ede.37.1715063762892; Mon, 06 May 2024 23:36:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715063762; cv=pass; d=google.com; s=arc-20160816; b=wf9olBWano7NhspOr5oOfachLIvtaOHcb793fGiTdg5b20yVuweOvOTlyqIOAqtVIh I2XZ704n3T6mfYvMoKGDviNte/iPrvoUTGiBZ8si579NranKq/d63zvBuRr6cSTiU2/y n9nFUvU2d/dhq8EJNNKiOjpj056djZRr+hU3HB5iFJjpIX5RBl9kY1itM6RmQNcOpRuX I6wbvQExIDoNE+3Ctj2gdBCbyml51AMGpay/x6IGD2leVtrnOlRmhiME6jtFHCxfO5+c WAbPtemHwFh2FtpScwWGzAZYSyZzqZS0UUM9RAgyItNG6GFZZlajb+4+qjP5u8A1NnAC Kz6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=nzTwLWbUAsb5JINFC14BaeVP+0Lag734+FE4N4N9PQk=; fh=r1DNx14w4VK54mRvsaPGlAu4jAeRB0STLhA2tZn+Pr8=; b=s3S1xx879dl1O/cNGxYa4pnGqDeA2eha1tDKqRsNNSVcH6dZO9cF0BFpc/RYDbEJ4h XsiMFbpVmtM46TpBpDorGsUAotWOPVx8mC55Th4q0TSqrJwsbGpAy4dZPwqinraEZyWG JCMD7LIhv7YDUdRQNdcnjq9AOR6lyx8ADd9zt4pjpqEG289G+ETANxRV8Gftw7e3JC2J taKSmbEZep/DoBxN317HHecuRvKw0c8AXEnuKZn7fFnrzPI3/m0ykMGtftBHFvTRUkSK 7Oe4N96zIwcdGETjp5slD1I1aPjmlEbiWW4BaAC4X0Z8a9aPfCMHpEthsmxIRYcgzVZ0 1EBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rD6QrtV9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170759-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n19-20020aa7db53000000b0057223971c40si5690357edt.30.2024.05.06.23.36.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 23:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170759-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rD6QrtV9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170759-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9C2DA1F20583 for ; Tue, 7 May 2024 06:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4C2978C6C; Tue, 7 May 2024 06:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rD6QrtV9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C28E42EB08; Tue, 7 May 2024 06:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715063749; cv=none; b=u6SN29XCloBaQ2jqYTi2sEJlVcKKFFMasIA2wANt/72ZrbznZnxOgl7OJYN10Qq+uvrnSUhcLq9UK2mxSk+8KZKuNjI0jmaroWsIGomM8dGqbszAAjJGRDFvpWAYvqAL8RtHSPQJBBkbHJ63VjqF3U/1c2qERaqC/R5RBZmpa4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715063749; c=relaxed/simple; bh=/Mlhnh+UCfgw9ZOZJQ3oMWCD2KpVf5vQppclCcvAgLQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=EUPUJJMNOi5u5TC8PTFKc49dV2b1LW6spbGXmIaE1oVB3bkOc0IEDXm0sVana8TGA+mMPORNsNGkEQjWcVZUGNMXAD6/4Z1mBOqtIR8xgKI4cVWacs0RMgoZm6sbUtGpISXIOJ5iD4ICLD4DspbkIFNyt3v0tdULs7HJXqR3Crg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rD6QrtV9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C92F6C2BBFC; Tue, 7 May 2024 06:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715063749; bh=/Mlhnh+UCfgw9ZOZJQ3oMWCD2KpVf5vQppclCcvAgLQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=rD6QrtV9qW6k0cGQYJWhixxTt7MFNwMKrQleRioW9eppgaO5tlBFTJqgudXH68Lxl hEIXYoEcKQjWZm1Dx53KyJGV+ICvVQLWm1ytCKQ7vVEdAKiGXocecKWyE7qOW/LvmP RkXuj3piPlKQLWvUbeI3vvztNvziA1w3Z/3givY3MYwXUqd4HCwh/4OEuwoya79if4 1DV84Ms0zk94F/TcpDsnjOMgiw5V35bwlWCIEhTwbc4yPtA2pUXvD1KDI92ug28E3v /Nu2Mjyj7uuokyu1kw5giCAlRyKQM9qz4cszR6BhJrGCQCGW9eFxDrZ+YlshtyfrDe woDv0ZbVHn0qg== Message-ID: <8f3cc030-e3cb-4758-8114-7364ce47481a@kernel.org> Date: Tue, 7 May 2024 08:35:40 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 05/11] i2c: core: Avoid config node enumeration To: Krishna Yarlagadda , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, corbet@lwn.net, andi.shyti@kernel.org, wsa+renesas@sang-engineering.com, ulf.hansson@linaro.org, adrian.hunter@intel.com, digetx@gmail.com, ldewangan@nvidia.com, mkumard@nvidia.com References: <20240506225139.57647-1-kyarlagadda@nvidia.com> <20240506225139.57647-6-kyarlagadda@nvidia.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQk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VcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240506225139.57647-6-kyarlagadda@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/05/2024 00:51, Krishna Yarlagadda wrote: > Add "config" as a common node to add device configuration settings and > other data. This child node should not be treated as a device. > Skip "config" child node during i2c device registration. > > Signed-off-by: Krishna Yarlagadda > --- > drivers/i2c/i2c-core-of.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/i2c/i2c-core-of.c b/drivers/i2c/i2c-core-of.c > index a6c407d36800..f50206c6c4d6 100644 > --- a/drivers/i2c/i2c-core-of.c > +++ b/drivers/i2c/i2c-core-of.c > @@ -98,6 +98,9 @@ void of_i2c_register_devices(struct i2c_adapter *adap) > bus = of_node_get(adap->dev.of_node); > > for_each_available_child_of_node(bus, node) { > + if (!strcmp(node->name, "config")) > + continue; NAK All children are devices (they have unit addresses). Do not introduce some another, parallel addressing. Best regards, Krzysztof