Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4743201pxb; Tue, 5 Oct 2021 09:23:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBaYT1WgB7drs9BJwZsEOmLUcJof9tjbvo+wQVDPcjE3K2yp1T5EDd5JhIqAFf+3QWfvfT X-Received: by 2002:a17:902:db0a:b0:13e:e968:e144 with SMTP id m10-20020a170902db0a00b0013ee968e144mr2528642plx.43.1633451022396; Tue, 05 Oct 2021 09:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633451022; cv=none; d=google.com; s=arc-20160816; b=pDKZEJsTDFwTRi9Grhm/KnvDPVhm0GtBoQc1MltdEW7/zbJfoQbD1JL4YPP7PnEe1e CS+uwhoEg1GHF2YTpNDY340gnHdyGU0kjIjh2LUs0Sj3qrn7SLzlpLHqWgvY7k5wZ2GG 1KUaS6oIg1v2QOMYeBIeOBtmJ1kziZae3skU8vXZmH6BXMqaz63SHsg+fsPsFIGhG5W5 0WFXoRSiA0X6AuNc37GFG6moeXmfarYSbuyh4Z8JGOUVF5XwStspbfnPLgMymNseZnT2 8Wc58inOTk2MAixdHF+2UhNQsJj88m83Zb8r0pGh6OFkSOZ7d0lZnWX/TF8PLNsBZ9wv jpDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=pnuijllcF48TQBaWzZFWC9eCNgBTqV5KCzhpX3RP2HQ=; b=nEqOGfefKCCc4TeFE/Xfi+SVPgD0HgyjGQEz8LIdvZ0Eo7Z3QAw291vBV7Xh1328AE PnS0WZfDYHyzFaLCbevAnNCfNu881TK6LETMpL7Lz4u48pkaqbmpgiKifr4lXloJIE+P iCcYsPfnvYPnY4024dTeDiO30nkHubGmf9/6BooVtxs4q0wmTsDVmD3ppwpW7zI61peO eAMgzYA4psqJH2TO7559TbnaA/ftJ4glzGQRYOhPRJzQfyXRtkaBoM1tMhuDr1eOUGpb 33VZya4UWPD/gonFrhw86iqGQE3Iz3BYV6i868cN5XaN8PQkcGmIQtGuLfR802/YRDsS znjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 72si22538147pfz.199.2021.10.05.09.23.27; Tue, 05 Oct 2021 09:23:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235305AbhJEQYW convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Oct 2021 12:24:22 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:53843 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbhJEQYV (ORCPT ); Tue, 5 Oct 2021 12:24:21 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MGQSj-1mZ6wD2C4b-00GoB9; Tue, 05 Oct 2021 18:22:28 +0200 Received: by mail-wr1-f51.google.com with SMTP id o20so20319725wro.3; Tue, 05 Oct 2021 09:22:28 -0700 (PDT) X-Gm-Message-State: AOAM531pKc1m52HcnKpFHo8RBXzOIGxGelc850BWe2j+v77o5eNJDoC4 5eHiRp5RDbP/yLhO54XnpoctBAWVdGeAF956QGk= X-Received: by 2002:adf:f481:: with SMTP id l1mr22496230wro.411.1633450948179; Tue, 05 Oct 2021 09:22:28 -0700 (PDT) MIME-Version: 1.0 References: <20211005143748.2471647-1-pan@semihalf.com> <20211005143748.2471647-3-pan@semihalf.com> In-Reply-To: <20211005143748.2471647-3-pan@semihalf.com> From: Arnd Bergmann Date: Tue, 5 Oct 2021 18:22:12 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/4] dt-bindings: add bus number property To: =?UTF-8?Q?Pawe=C5=82_Anikiel?= Cc: jarkko.nikula@linux.intel.com, Andy Shevchenko , Mika Westerberg , Rob Herring , Philipp Zabel , Arnd Bergmann , Olof Johansson , SoC Team , Dinh Nguyen , Pratyush Yadav , Tudor Ambarus , Linux I2C , Linux Kernel Mailing List , Alexandre Belloni , Sebastian Reichel , "Leizhen (ThunderTown)" , Jonathan Cameron , DTML , Linux ARM , ka@semihalf.com, Tomasz Nowicki , jam@semihalf.com, amstan@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:9fPGUYXH84OEE1UoL2FHzAUe7myIloj4HkAvI8wbL/KDY3Kj0Lb +cXOaSSNwQmnPBN+6tPXWsWYIPfaUItkVaI4HT2gcy09c6uJBvMxEaDIxZw7jnzixc+ee/h DSWj+9HeF6jWn92wLof9FskH4UC2Y0sPbKvmDNxKUyNnp49CeYLSvDpRfPD/cYcW6MzNeHk SjenDhO9l7Z1tp1QNFLUQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:B97t7z2eMfY=:vM+HQUPVqBL20FgSUzQrtC IQOHWCMkncvUNmRlAyZ3vwQWuka+23BMNYAT322oCXwiOvt2mCA5p2EnFSyECftI9SDOSDkld fqx9Uqj8lq1581/lxlKD+izsERtfA2IrDB1S1YvusTojLB/qFNWQRErfOAbvTA8M13MDjgC27 a7IbCiHLOgREVccxduG2kEBAyNuEOiuQIvDcpNUmHgOiDx8x6/vUWoYkg/f/u7jnME2wSn8yZ 1p9y0/fvfLHT8gfneB7OYPxqQRSuhLXJ0duhEm2d3CE6BmB4dcWRvnNbfBZuY+oZPV2UzfzTQ X1pjEgyvRYnxQMnhK5W6JrZOeYSC/UYtd2UNCLNPW3zG7j4sE97Pc910Ae0mYXYAYkNDnbq/0 hq1iX6KRqUudO4Qit+J2wayp+fnBdH0RD4ZCSyLvmNgeP2un56DssLRGiZxlddfxFRMUYPpYL oLoAjrPON4i7nlYovQmNYPDUEcWALuHU9+AlKjlfimMhIhHbPIoI6zJWUMfMa8J9Tl/kOSMP+ HdZLtRaUJ21o2KieNELEPuQUDIFzAPEtqGtlUtE/TV28xGKVSS2Q9+vOkB5qHacGRh38FLhYN 89q9edtXhl4sfDMAOA9vrKAchp12UXIOxbnny6kNmr/paq3pqoC8GLsKC8AK573KBr1C1XmCE 12wOnYCSpKtUs08iWjUWkJHSI/DM0W2pIsJ8Em6fGRrF//38jEIPMYJuZwe0SGndeIi+R4amh 9w9evV1eV43+13ELiNRN+rgzokif6vMipQXyvmZpJSeHHD+hCdGSaQAJZon0F+k9/Y8onNgoN +gna1udMR4Kva1VwtogJpeUvCdrNwhsebbsRqgjv3fbKItU/EFygq5U51dAuils1ggeirysNA ue+Guu0Nd5X/+yMUgo0Q== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 5, 2021 at 4:37 PM Paweł Anikiel wrote: > > On SoCFPGA systems, it's desireable to have fixed numbering for > i2c busses, while being able to enable/disable them (e.g. have i2c1 > be mapped to /dev/i2c-1, even though i2c0 is disabled). This can also > be achieved using devicetree aliases (see i2c_add_adapter). However, > having the driver be self-contained without relying on aliases is more > robust. > > Signed-off-by: Paweł Anikiel I don't see how adding a nonstandard property in one of the i2c bus drivers helps at all. How do you expect this to work when there are multiple i2c controllers in the system using different drivers? What should happen if both an alias and the busno property are set? Arnd