From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8656BC433FE for ; Tue, 5 Oct 2021 16:20:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6A04861526 for ; Tue, 5 Oct 2021 16:20:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbhJEQV5 (ORCPT ); Tue, 5 Oct 2021 12:21:57 -0400 Received: from mga07.intel.com ([134.134.136.100]:52971 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbhJEQV5 (ORCPT ); Tue, 5 Oct 2021 12:21:57 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10128"; a="289294118" X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="289294118" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 09:20:06 -0700 X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="559379000" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 09:20:01 -0700 Received: from andy by smile with local (Exim 4.95) (envelope-from ) id 1mXnAb-008vgs-4v; Tue, 05 Oct 2021 19:19:57 +0300 Date: Tue, 5 Oct 2021 19:19:57 +0300 From: Andy Shevchenko To: =?utf-8?B?UGF3ZcWC?= Anikiel List-Id: Cc: jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, robh+dt@kernel.org, p.zabel@pengutronix.de, arnd@arndb.de, olof@lixom.net, soc@kernel.org, dinguyen@kernel.org, p.yadav@ti.com, Tudor.Ambarus@microchip.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, alexandre.belloni@bootlin.com, sre@kernel.org, thunder.leizhen@huawei.com, Jonathan.Cameron@huawei.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ka@semihalf.com, tn@semihalf.com, jam@semihalf.com, amstan@google.com Subject: Re: [PATCH v2 1/4] i2c: check bus number property in DesignWare I2C Controller Message-ID: References: <20211005143748.2471647-1-pan@semihalf.com> <20211005143748.2471647-2-pan@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211005143748.2471647-2-pan@semihalf.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, Oct 05, 2021 at 04:37:45PM +0200, 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. Why? This number means nothing, user space has another means to have this being robust. Sorry, but I don't see any even close to good enough justification, NAK. -- With Best Regards, Andy Shevchenko From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82BFFC433F5 for ; Tue, 5 Oct 2021 16:22:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4886C61354 for ; Tue, 5 Oct 2021 16:22:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4886C61354 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ig2Kv7oLokDdWxpywJqfs/NBsPkQ9jW+MokSaCbfrI4=; b=dwX6Wx9mm0lc+6 0xJl4lRn6W8VUXky5tCCaJv47RmUVtRqEA9Nvi9DXiPM3SS3CWaN/hF8SW6hF96EmbYwDGXMjdZc/ px1AmO0Ax3sR/aLp0lJbeuKnZ7eFKzUti2yWClydD8gsVlWraegF8jZmpASs3mD7tBDbKgKQmarAa Gvrw+VkNa7VP1JEP5J0kim/4JsZYkCM+XyQb6Q0tfob1PujzBX84sC8pgRLEmjal8vLGuOcx7ezKZ uNO5eLnUw/GcbFXy6VqolaCiRZIZSl3sqw9nQQu5ZraztL/ZDMrVRPkMvbaQv/3TLxkZADk9pINQT zq8tFnJiysXuWdC5EtyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXnAo-00BGci-F8; Tue, 05 Oct 2021 16:20:10 +0000 Received: from mga04.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXnAl-00BGbm-H5 for linux-arm-kernel@lists.infradead.org; Tue, 05 Oct 2021 16:20:08 +0000 X-IronPort-AV: E=McAfee;i="6200,9189,10128"; a="224564838" X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="224564838" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 09:20:06 -0700 X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="559379000" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 09:20:01 -0700 Received: from andy by smile with local (Exim 4.95) (envelope-from ) id 1mXnAb-008vgs-4v; Tue, 05 Oct 2021 19:19:57 +0300 Date: Tue, 5 Oct 2021 19:19:57 +0300 From: Andy Shevchenko To: =?utf-8?B?UGF3ZcWC?= Anikiel List-Id: Cc: jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, robh+dt@kernel.org, p.zabel@pengutronix.de, arnd@arndb.de, olof@lixom.net, soc@kernel.org, dinguyen@kernel.org, p.yadav@ti.com, Tudor.Ambarus@microchip.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, alexandre.belloni@bootlin.com, sre@kernel.org, thunder.leizhen@huawei.com, Jonathan.Cameron@huawei.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ka@semihalf.com, tn@semihalf.com, jam@semihalf.com, amstan@google.com Subject: Re: [PATCH v2 1/4] i2c: check bus number property in DesignWare I2C Controller Message-ID: References: <20211005143748.2471647-1-pan@semihalf.com> <20211005143748.2471647-2-pan@semihalf.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211005143748.2471647-2-pan@semihalf.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211005_092007_598599_90AE2F8D X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Message-ID: <20211005161957.T5wmze4erQwVaJ_Qz6HuYpG-tazZVAsCNsrUKO-yStE@z> T24gVHVlLCBPY3QgMDUsIDIwMjEgYXQgMDQ6Mzc6NDVQTSArMDIwMCwgUGF3ZcWCIEFuaWtpZWwg d3JvdGU6Cj4gT24gU29DRlBHQSBzeXN0ZW1zLCBpdCdzIGRlc2lyZWFibGUgdG8gaGF2ZSBmaXhl ZCBudW1iZXJpbmcgZm9yCj4gaTJjIGJ1c3Nlcywgd2hpbGUgYmVpbmcgYWJsZSB0byBlbmFibGUv ZGlzYWJsZSB0aGVtIChlLmcuIGhhdmUgaTJjMQo+IGJlIG1hcHBlZCB0byAvZGV2L2kyYy0xLCBl dmVuIHRob3VnaCBpMmMwIGlzIGRpc2FibGVkKS4gVGhpcyBjYW4gYWxzbwo+IGJlIGFjaGlldmVk IHVzaW5nIGRldmljZXRyZWUgYWxpYXNlcyAoc2VlIGkyY19hZGRfYWRhcHRlcikuIEhvd2V2ZXIs Cj4gaGF2aW5nIHRoZSBkcml2ZXIgYmUgc2VsZi1jb250YWluZWQgd2l0aG91dCByZWx5aW5nIG9u IGFsaWFzZXMgaXMgbW9yZQo+IHJvYnVzdC4KCldoeT8gVGhpcyBudW1iZXIgbWVhbnMgbm90aGlu ZywgdXNlciBzcGFjZSBoYXMgYW5vdGhlciBtZWFucyB0byBoYXZlCnRoaXMgYmVpbmcgcm9idXN0 LiBTb3JyeSwgYnV0IEkgZG9uJ3Qgc2VlIGFueSBldmVuIGNsb3NlIHRvIGdvb2QgZW5vdWdoCmp1 c3RpZmljYXRpb24sIE5BSy4KCi0tIApXaXRoIEJlc3QgUmVnYXJkcywKQW5keSBTaGV2Y2hlbmtv CgoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCmxpbnV4 LWFybS1rZXJuZWwgbWFpbGluZyBsaXN0CmxpbnV4LWFybS1rZXJuZWxAbGlzdHMuaW5mcmFkZWFk Lm9yZwpodHRwOi8vbGlzdHMuaW5mcmFkZWFkLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2xpbnV4LWFy bS1rZXJuZWwK