Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1374312imc; Mon, 11 Mar 2019 12:16:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/B6orBmpU7UVfTx2uaSty4g0nVIa5raB1OKG/Wk6AtY/B+32pHvDsVY4CeUx6nwIMQ+5w X-Received: by 2002:a17:902:142:: with SMTP id 60mr31038289plb.191.1552331801343; Mon, 11 Mar 2019 12:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552331801; cv=none; d=google.com; s=arc-20160816; b=Lfr2CanZQwLmLTkLzDMjm2dQRuKbrIwTKEHY7UI+bM0XopVzKLuCIqwC3QQfAobfjZ uJ+NE6UgXbqMeg2PveBvnEOEGg6DFQkGKiC/D/vFOnxg+6tgzpq8n3RWa0+bb6HrKJ2D XsC0M0mil3kDVFNn71n2DcUbzLzH9BKW/PZnI82VdWa2EB1V3EetrY62P6ZeMmein1eL 75kB4DzjbdKLMojnTk7DMeHCGCYdoRm0Ku8/z+TsbfZsCww5xzCnayo4hdqookFz7Xfe UfptRMAooQQd9UEBeIr3PYUycVFiy5kQ/ZqQmfgeIbuV22jQRIrQfEldjxkkRf5Q73kD AVHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AvVvth+oJnwbszsM7FRl4c6M34nmb57ELE1kkz/6dKs=; b=PqLCeCPWFTmAsZvI67ajyr7KPqCJiGP3yVeUdiaYc1nth96C3oJswn70tcLrHBSlt+ QOZB7Vqx39elfXlmIRnPw0/GQWVLRkQ8q7NO3lN3mscLlMqYauBkUvayp+aCEIgFgTEk tez5deFXBPywwSMecYBGC933/m6Y85qfB77iWdp9yYB9kcRIMrpWomTgFn0JfkjcQTKb zsRgbjXU36wT2mVT5EZTZiYXyd7yNmeAW4TVfenh6cGAyLJp2BrWu0/vYb/tLdrjMWI/ Iv4AXF6kgWqoI/xprPjWMtAVXru3sdgaFmcvxW8xrWSivNbMCyn0b+qSNZZ9X/3dgos+ pdLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si5776885plk.323.2019.03.11.12.16.25; Mon, 11 Mar 2019 12:16:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728189AbfCKTP6 (ORCPT + 99 others); Mon, 11 Mar 2019 15:15:58 -0400 Received: from sauhun.de ([88.99.104.3]:59988 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727469AbfCKTP5 (ORCPT ); Mon, 11 Mar 2019 15:15:57 -0400 Received: from localhost (p54B3359D.dip0.t-ipconnect.de [84.179.53.157]) by pokefinder.org (Postfix) with ESMTPSA id E1C5F2C08C3; Mon, 11 Mar 2019 20:15:55 +0100 (CET) Date: Mon, 11 Mar 2019 20:15:55 +0100 From: Wolfram Sang To: Hans de Goede Cc: Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Lee Jones , linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] mfd: intel-lpss: Add "linux,use-dynamic-adapter-nr" device-prop to i2c-devices Message-ID: <20190311191555.4dc2wbwqesqmn2kq@ninjato> References: <20190311112216.31391-1-hdegoede@redhat.com> <20190311112216.31391-3-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="65wlv6bh3hk7fgyp" Content-Disposition: inline In-Reply-To: <20190311112216.31391-3-hdegoede@redhat.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --65wlv6bh3hk7fgyp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 11, 2019 at 12:22:16PM +0100, Hans de Goede wrote: > The i2c-designware-platdrv assumes that if the pdev has an apci-companion > it should use a dynamic adapter-nr and otherwise it will use pdev->id as > adapter-nr. >=20 > On some devices e.g. the Apollo Lake using Acer TravelMate Spin B118, > some of the LPSS i2c-adapters are enumerated through PCI and do not have > an ACPI fwnode. These devices are handled as mfd devices so they end up > using the i2c-designware-platdrv driver. >=20 > This results in the i2c-adapter being registered with the mfd generated > pdev->id as adapter-nr, which conflicts with existing adapters, triggering > a WARN(id < 0, "couldn't get idr") in i2c-core-base.c and causing the > adapter registration to fail. >=20 > To fix this the i2c-designware-platdrv now also supports a > "linux,use-dynamic-adapter-nr" device-property, which tells it to use a > dynamic adapter nr even if there is no ACPI fwnode for the device. >=20 > This commit adds this device-property to the properties list for PCI > enumerated LPSS i2c-adapters. >=20 > BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=3D1687065 > Signed-off-by: Hans de Goede You need to CC the devicetree ML on such patches. However, I am afraid I can pretty much NACK this one already. This is a Linux configuration item and DT is only for describing HW. Maybe the designware maintainers have a better idea how to achieve what you need. --65wlv6bh3hk7fgyp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlyGs+sACgkQFA3kzBSg Kbb7MA//dTFm2uJgtmWTwBlX6sv2c8KRgO7GDWntvUTY28kOHNx/Ow6noezZBgds UXsUVjHXsdFiqClRrTewJVqzSLTAg4H8dtN1PTmjLfcPTLj/GJr4hAgpc7Ue6nbk DrzxwTY1OsSQUkJf5q85ReIUyE2vDmadokxeIf08hwE6HZ/FHlrbCFx6ooGkKoL7 R8y59uyo7npXa4uEPniSB0lRue6EbnHkNvni0HoJwzWXJcEsH8yyOBjJOz9ufugw /ih25THatp/7q7Z7GO10Dh+v4vJ/ezY++DfLMslUsjWxep/6+fc2I+YtmJz0a2zu 6u2K1Emewd7Rp0RnETHzUjxUippHdCgx8nkKS95DZCME3IdfhRBTcYolC8t726BH kt043d3+j14KBKXPpqKhlIS0tYdlbZsYhJYAWi9tnggeWT6ZfBsG7HcEypEPNyik +OFf2eobzLua+BR+dkI0jylCSVOTjvoOzdbhifiI9GxcaSf7ke/gv2GLqwvDqMT0 UKaVwfKQIoZuoPQjf1d3eqOszHmUZOlkYNkQkyJLhEIG18HitrkViIatyUG7HWQv eh3Vv84gDvAacBiQcyIp98T458MDLbbf3XfSAT3+v6czBD912vTz1D+vNBoX1dAD Y2wfvW5QGF4PhZ9kDQeZCcqn90M+kw0rQxMkm75e9hV8odqRjJI= =cXel -----END PGP SIGNATURE----- --65wlv6bh3hk7fgyp--