Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp729209imm; Fri, 31 Aug 2018 11:36:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbwdFIi8/nm3ho5bjg4YHUron+Vvo3HXSM+M38KgYhix8xlQ4pL2Ltbkg35bp2ADeRaPa22 X-Received: by 2002:a17:902:44a4:: with SMTP id l33-v6mr16628765pld.134.1535740607070; Fri, 31 Aug 2018 11:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535740607; cv=none; d=google.com; s=arc-20160816; b=rGr/AAtRco8b1prq7NRDveqI8sXEmgz5LZg98zxFmQiJChuYW9iMwqJKdZSScgIyyb kO+ozelpcKG/TwnORGW6+H0of6cLtn0qP8YbpJ7B5olqWc3spAThAuD+bWF9UdurP5gt H7WlALvXLLlwozYfNcJMlSrRazhGJGIUn8xV/aHEKpkoKuBCIZxNp8sqNK9OJMyA+gcE q56bDTwhuqxm5LnGSU9eFeyU9WG448mIbBUUH+iNjAYf7sbfFvnkn7OxMcEIljH5VE5A JqCQsB/S7NTPHwQ0pcokTflH7NnmoscIW3iKZsQ5Q7vfq36TyVKxmDSZk9dNifQ8E3Dc tl/w== 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 :arc-authentication-results; bh=pu4d3RVUUdPlCH9xGqZIyoOubOEpKWlkGfWbiKMjGPU=; b=sFoZsnzjfm4me+RJM1O0xuMgbWJJRuvQtnijNaS0xPGh2bVlSXa5sw0/7VnK34tK1g fBGDIx7MEZ8FPEIflRNqtRIFD09Z1kzxw6lOeTqTLIv/LLbPu7MxOexjCDlUrY9zzqSL 2h9MCIaM1ejz1RxlnFlz4/ZzZRoyHEPNfRlap5h3RPEimq/1TzGn9nRc3Mn05kYzMY3a +HUG7aZyF194JRIAVugePimgEzcSh+GvTxwf4FZicAOsSp4rbb9x9pk/zx2aUDuE10nv tTMH0D8UvlE+jax/ah+yUEeFytXu8cDlGuMVEvyi9W4kLOsh8RheVbEsbf795VKCuMW+ Mlhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="C9m/VkB2"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17-v6si10147683pgi.284.2018.08.31.11.36.31; Fri, 31 Aug 2018 11:36:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="C9m/VkB2"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727310AbeHaWoI (ORCPT + 99 others); Fri, 31 Aug 2018 18:44:08 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34858 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727085AbeHaWoH (ORCPT ); Fri, 31 Aug 2018 18:44:07 -0400 Received: by mail-wr1-f68.google.com with SMTP id j26-v6so12050660wre.2; Fri, 31 Aug 2018 11:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pu4d3RVUUdPlCH9xGqZIyoOubOEpKWlkGfWbiKMjGPU=; b=C9m/VkB20rzVwxuflt1rhnTGoF83CU+VzsRcBYFVnS7Fz18IAbY+CDOtKwjqVDTxsl yBNuwRt5FV7nuvvcFMauO73gA7mnWlBjSvu+uKLp4SDA+nzywHBUKvvcx0Tc2XA+ck/T eIALmL/1E3Czr+vR5FZn8NkPRY9BzX49D5VR1ecG4pI/Qwf41aDplAkMFKT4Gdi9IdZj RdbVN4tdCts3immTOXgAVeuUPoW4njFFDUHPCXD8fcg9djRS//E7MoRCrMPsfxrZcK6b dQ6RRiIfL/6iVF0FHOYtKN6ImyyIQC60SkYdR8chmbAujM30qOqDgKeow9oF5taPzuRF Drqg== 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=pu4d3RVUUdPlCH9xGqZIyoOubOEpKWlkGfWbiKMjGPU=; b=jRw1QT6iIM9TV6EJoXjtMl2RmEmsmJciOjPbIb65nnXF6EQDDUhVqEq9/vEE1Ggr50 lWj/wtEzgoxfQsWe8frUqK3xIPvMZQs9koZI4uMtkDk2waL0ePHOPBVq7AsCVvo4bk11 0XYhvPrqUTHABHhvefNsPWQI7Bz/OyhC64bxkc/HaXdVAz1p5UAxs0YqwXr0bqZWX/Sq VP8GGVWhEZ/eAkC3fbzvtF70L4Nkm6nV2/1Td49Wf4rQ/85AlIkAXO+9kAt0CbcGv76m 9U4jTKM4ag1CUelqcf0iNcRybjd2hNpFSAizgRU0uzTFhTAwq31+akcjzsTix9ez6OGZ /yRg== X-Gm-Message-State: APzg51C0mgFmTa9xa9UeIfJbxr1Ps1cLDRy/02/s82WJxcMCJFEfbvQV bm2Onffj2zINCJkw+6kyay0xaIsGtClLzQjtZmc= X-Received: by 2002:adf:9051:: with SMTP id h75-v6mr12545497wrh.65.1535740522478; Fri, 31 Aug 2018 11:35:22 -0700 (PDT) MIME-Version: 1.0 References: <1535453838-12154-1-git-send-email-sunil.kovvuri@gmail.com> <1535453838-12154-12-git-send-email-sunil.kovvuri@gmail.com> In-Reply-To: From: Sunil Kovvuri Date: Sat, 1 Sep 2018 00:05:10 +0530 Message-ID: Subject: Re: [PATCH 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver To: Arnd Bergmann Cc: LKML , olof@lixom.net, LAKML , linux-soc@vger.kernel.org, Sunil Goutham 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 Fri, Aug 31, 2018 at 11:59 PM Arnd Bergmann wrote: > > On Fri, Aug 31, 2018 at 6:01 PM Sunil Kovvuri wrote: > > On Fri, Aug 31, 2018 at 7:50 PM Arnd Bergmann wrote: > > > > > Thanks for the suggestion, that does makes sense. > > Actually i did thought about it, but i was skeptical if it would be > > acceptable to make > > a single module out of drivers registering for two different PCI devices. > > I don't think it matters much whether there is one module or two > (others might have a strong opinion one way or the other). > > What is important though are these two points: > > - How to represent the two PCI devices to user space: You should only > have one interface to user space I think, and this should be similar > to how other drivers manage similar cases (I don't actually know what they > do, but I assume you've done some research here) > > - How you connect find the pair of devices: Generally speaking while > the SoC might only have one of each, you shouldn't make that assumption > in the code, but instead have a reliable way of having one driver wait > for the other driver to finish probing so you can match the pair. > Agreed. I do have a patch in works for that, i.e to defer AF driver probe till CGX driver is loaded. https://github.com/sunilkovvuri/rvu_drivers/commit/27b449087c16224a9e93dd91d6d9f734b5210bed > > Will wait for few more days for more feedback from anyone and port v2 series. > > Ok. > > Arnd