Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp524931imj; Thu, 7 Feb 2019 07:55:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IaeRJCasNbS8RENi5eRXq90ZKH+8Ctau1TxSmX0lMI4/q+rxUpNA7sVjmu/btUmUXBE334S X-Received: by 2002:a17:902:7107:: with SMTP id a7mr17094184pll.290.1549554912995; Thu, 07 Feb 2019 07:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549554912; cv=none; d=google.com; s=arc-20160816; b=g0AAvmfG98I80lN4IJvC0ld7jONTbleGDo8buNkO3brg6sCmRqH7+Osn7v0Cks/eIY LRn6ShgpTw2IgmFJs83MisLUftBLM0JnfdhyBN89qnf6m+XzigYJ35TxrEvNr5NfBOe+ wAa4F4kN0gtA8GSjl+zznQlLk0TjsaDRU0g5RWsLuhI4y8gxkXUFNg7QbdmFnm5t6NRN tJcXxCBDcnCoSKVkWIFXx9dlPNTW/iefdQKFrj9S6hOx61yMGzEKEC0ZNx5LMgrAbhWi lUFGu+PWl8Z6rQOSQWEfuT1KKS2BkZ3+3Cjr+mGe+5vkMI/ziTwoRW0GgMDLpvXni4+z fyRw== 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=mWTE/iz3GEpIy+aCIadCtM83qMCEt9ctk5lhI4sLkPQ=; b=lPnnOU2n9HMG4fq3tr6oxFdFTKDNHMex6Cglyn16Erf0URAnkRdtHvgYN1BTy9XrWM kMKqKy7KJcXYj22W5O4sYHEwmTy+hhH534ort6mIt7B97IGCEsbIYv8LIO6a59oSzDtZ qu9T32m6Pdzw5+JrLyPNh1nKY+eqtHXCHoTEJw6Qa0QWii2XAuXw1gDAGc6dSHb3+7En u+2lfZqAjbppDfRMyhcLkdv49aVr43ZFsFRkAkBiC+tCvOc2O6rNNzlhcO8h2ZrmnPFR Q5fzlzzScIeLbVxF4SxHuhY6jCHBkIyV24O38M4wjM4Yil5dDjAsKBVfTR8w2Cik74Ox GNZQ== 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 j3si4380754plk.199.2019.02.07.07.54.56; Thu, 07 Feb 2019 07:55:12 -0800 (PST) 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 S1726894AbfBGPx3 (ORCPT + 99 others); Thu, 7 Feb 2019 10:53:29 -0500 Received: from sauhun.de ([88.99.104.3]:48758 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbfBGPx3 (ORCPT ); Thu, 7 Feb 2019 10:53:29 -0500 Received: from localhost (p54B33308.dip0.t-ipconnect.de [84.179.51.8]) by pokefinder.org (Postfix) with ESMTPSA id 68ED84A16EA; Thu, 7 Feb 2019 16:53:27 +0100 (CET) Date: Thu, 7 Feb 2019 16:53:27 +0100 From: Wolfram Sang To: Bjorn Helgaas Cc: Elie Morisse , linux-i2c , Nehal-bakulchandra.Shah@amd.com, Shyam-sundar.S-k@amd.com, sandeep.singh@amd.com, Linux Kernel Mailing List , Kai-Heng Feng , Bjorn Helgaas Subject: Re: [PATCH v15] i2c: Add drivers for the AMD PCIe MP2 I2C controller Message-ID: <20190207155326.GC4796@kunai> References: <20181226232258.GA23526@syn-yoga530> <20190205120545.GA1045@kunai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LwW0XdcUbUexiWVK" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --LwW0XdcUbUexiWVK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Bjorn, thanks a lot for your additional information! > IMHO the split into two drivers is a bit of a mess and doesn't really > correspond with the hardware, as I mentioned at [1]. The PCI device > is the real hardware and the driver should claim that. AFAICT the > ACPI device exists only to pass some config information to the PCI > driver. I think the natural approach would be for the PCI driver to > directly search the ACPI namespace for that config information. AFAIR the AMD folks insisted on the two driver setup because they need it in the future? Maybe they can explain again here? > The fact that driver_find_device() is essentially unused except for a > few very special cases is a good clue that there's probably a better > way. Excactly this thinking made me recommend something else, too. Let's see what we can come up with. Thanks, Wolfram --LwW0XdcUbUexiWVK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlxcVHYACgkQFA3kzBSg KbbKUg/+PJomClPceiLS2KRwNbNrlsyyrzpU/NmDQhCRtTVswOm0z/li4Mb0kj4X TwcLUFjZAYe8tyX/8K6QeTEsG+5iPPWKmlA1AoEy+sX7vl/OX8kRdVAcSoGOx5/8 0jNc+1m3mTF/woaiDHEwMPHo178SQpaYC5kyvvnvyoH3PZY1uMVMOwCUzTMsfuWu imW08ROvQoW/T0zSiW9v3OSsaaapCdQuBzq+qXBeEpaGyYCqaDZIj++ZMS7QIpoI +YBEtiHDRzSNyBo2Qr7rOsDwD38BvHBd1QI1mYzifaf26P2YbDB97IceTMVBS4Ru Vp9Fp6gVgcPZWjv47ilsgz8YFyXCPiPVICJyMLsadAOYcwz/Mu1sE4vruweq8j6c ahAgtlXvA083CXe8aXxuQUp50gSvo1AMyFGmZLxhUXrdz/ci67jnupU0RxqiLmkC EFPyMeELKfOy5ubWij9MPb+gA6j5vMuqhvsCuuzJArdcMVsBxPbU9KvfnIf6dKT/ rcH76sULNbv5Ygr4z5EUTAXJSRS0LWy9lu2YfzKg+WFRh4PrpQazmwjEmE36cB6E E9m5dhkCuyWjAtCPmM0k0Dki8jTS9K47EtQOXTkXcFgD+lnl7ffkQrc5bcismsKv 47u2jjhCEHFG3XiVkhaZmeXgydqlZ8O2YKImmTSZ5RrSfjqSEII= =ib+6 -----END PGP SIGNATURE----- --LwW0XdcUbUexiWVK--