Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp637461imj; Thu, 7 Feb 2019 09:30:40 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib372V5+ta8OaTjLnIjAYgMNtXWiLqgzBglrspWMrYLJQUZ0Gaqkuw+7I5WOydLpjNEc1k5 X-Received: by 2002:a17:902:6b83:: with SMTP id p3mr17489002plk.118.1549560640377; Thu, 07 Feb 2019 09:30:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549560640; cv=none; d=google.com; s=arc-20160816; b=ISwD9X/QyedZfmTJJAgBHlWoa+C9Wy//e4V9e+KSgCwkUaPCSkHxqAvzw9FPiS/tZ6 5x6RhE3RrgjNjc6o4WlIVCN1q5VlIORLrKygfo+QD+dY0fx3AlKBXeqCOeGlQFgEBz8g t3jqKf+eLwjVvvqRffjQk/aFn0u9ALYthhe4UrIARHx7QM7jmV8SOhFlnVWG04uib4TC Q52GBKukckp2aCa8mNR6ucaJ0lNvKazaX8qX4z05NlEgxxexEIYZTQHJLlLUGffFHLSu fgH+9IIIdGndX0wj/1p70vB2EvzHIpTOF6SQiODZfVxrHksLlZop0RptxKl982XdJZmd O15Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qu0dRqPUSjOdzq7j6pd1ZLan3UMC6JPf/TW98nCCGgM=; b=ZNXdlAMMTp7d4fUE2NUTobGyAOIZH/sKUmcJ2NJcRDwUwvW+IGeib/yH52wfQLspfp 7vBEBAWN3p7B0Vms+tvJWIG3Fl8xE/PJBxS/y6zssgXE9ZNRZG4eQyQRZO4oUwRTEfLS QLeIanCuhJjNMhXTy3wLBIUwv3JYFxNYgG+G944YHONgvw1+DDk1ZijRu0d53HK+bEZQ fNpH47i4ZWJJTcO901sq/7JZOtRU90uJX/otJqbl9ZznG7DdDROUyhgP8gyn8En1F/9o yQ5iWhKs5us2359fYRSvo+M8pNvxVdj7bf3MX/vVUeUBPdNOS8mZkrUhaimR0xH7LO/z lzaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YJsrB8GA; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si8820225pgw.377.2019.02.07.09.30.23; Thu, 07 Feb 2019 09:30:40 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=YJsrB8GA; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726791AbfBGRaN (ORCPT + 99 others); Thu, 7 Feb 2019 12:30:13 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34763 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbfBGRaN (ORCPT ); Thu, 7 Feb 2019 12:30:13 -0500 Received: by mail-wr1-f66.google.com with SMTP id z15so767341wrn.1 for ; Thu, 07 Feb 2019 09:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qu0dRqPUSjOdzq7j6pd1ZLan3UMC6JPf/TW98nCCGgM=; b=YJsrB8GAFThYErhft7AJUdEz7Lr+MVlotC84Z3cw0LtTpYAmnx6gRUYHNE5ElNHfn4 rXYXPhiAeJQrsh246ZGL8u4K5dERroFeh+szU8XAqBVo4/eE2TBwoYUXQvyZlSOAId6L CNYGXThVGk38ukRR7FvlhFa+qIUA7LA4/+W5Lv7EqJK9YWNzhZE7rvgdF2y6tXZR5rYO R+Tdh8/S7xN/Lwa3ZpT+ipIfVSPYvOYmbWSD8/7jC33cvBR1euG1BhQWZtkpCAft7R55 w86Tb35F9W2iFpNjUsE3Orh5Wvb12pDlxdaSj/clq7bE67I2fLcjsfDNm4MyIm5bLFKE KI8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qu0dRqPUSjOdzq7j6pd1ZLan3UMC6JPf/TW98nCCGgM=; b=k6dvETv4XJaKJWqEYbQkaAiuu7ORWTSUjDZAkbCZFPSw3qB+zU1qjUYX0L5FvIbuzv 2t6YLqKW40DVErlcIUdy7dMn/+xkmvjJNrvVtF0jy5laXNPxnkbeZixocFUznNxbUspK tFtr/TXw+0XUeheLp4BnBZi85jmMHcqIe/X6aq9H4s/anhwsILjxY8d+JJckuYUGF2Wo 927HdtzRBaelaD+mSpM/YXnZtCPxndNqQPPVnG8Mm3BlkwompozlMizZrDYA9wpSo4tY Efli5alcPd6xc5pWQTNSPOYKpJf4vZIwMz+xod2+zkOXnfdv2PBbKQXXpXtg5iHPQREU vqYA== X-Gm-Message-State: AHQUAua17SjxsKZw5HiY5vGKRCs77Tc3PNNHA1gw851RSoWZ3RrYehNU zQs+61JDuqbs1xSBqPNNa/zodLdNNnXvRlPOOsJk X-Received: by 2002:adf:eb12:: with SMTP id s18mr12878757wrn.120.1549560611390; Thu, 07 Feb 2019 09:30:11 -0800 (PST) MIME-Version: 1.0 References: <20181226232258.GA23526@syn-yoga530> <20190205120545.GA1045@kunai> <20190207155326.GC4796@kunai> <8d70ae32-8e4d-d2aa-e213-4b2f678d7da0@amd.com> In-Reply-To: <8d70ae32-8e4d-d2aa-e213-4b2f678d7da0@amd.com> From: Bjorn Helgaas Date: Thu, 7 Feb 2019 11:29:59 -0600 Message-ID: Subject: Re: [PATCH v15] i2c: Add drivers for the AMD PCIe MP2 I2C controller To: "Shah, Nehal-bakulchandra" Cc: Wolfram Sang , Elie Morisse , linux-i2c , "S-k, Shyam-sundar" , "Singh, Sandeep" , Linux Kernel Mailing List , Kai-Heng Feng , Bjorn Helgaas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 7, 2019 at 10:47 AM Shah, Nehal-bakulchandra wrote: > > > Hi Bjorn and Wolfram, > On 2/7/2019 9:23 PM, Wolfram Sang wrote: > > 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. > > First of really thanks for your valuable review. It may seem to be illogical to have two separate drivers, however as explained > in past we are working on another solution for some upcoming thing. In that case we need MP2-PCI communication driver which will be reused. > At this point of time i can't talk much about that but once solution is ready, we will be pushing that as well. Hence i sincerely requesting > to have two separate driver. This is not my area and my opinion is by no means definitive. But FWIW, I don't think the argument that "a secret project will someday require the ungainly design currently proposed" is worth very much. Until we've seen the upcoming project, it's impossible to say whether this two-driver design is the best approach for it. I'd say it's quite likely that people might have alternate proposals. Bjorn