Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp66322pxu; Tue, 5 Jan 2021 05:25:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs+6h/q4bV8DT9FmXXSTv0cW5AOo2SUZv1T9cGxKBRdmsu0tWr5slM5C2b8EMbE62rm/ub X-Received: by 2002:a17:907:214d:: with SMTP id rk13mr72583564ejb.501.1609853147302; Tue, 05 Jan 2021 05:25:47 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si32083966edr.148.2021.01.05.05.25.23; Tue, 05 Jan 2021 05:25:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=p40RqElF; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729470AbhAEMut (ORCPT + 99 others); Tue, 5 Jan 2021 07:50:49 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:1458 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbhAEMus (ORCPT ); Tue, 5 Jan 2021 07:50:48 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 05 Jan 2021 04:50:07 -0800 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 5 Jan 2021 12:50:02 +0000 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 5 Jan 2021 12:50:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aLNyKrNB8aAD5y9mWTlUrUwRIxWin6qtP2nc87xh2wdkCVteSYHmMlYZKRI8wZ1oNBnLxla5FlwzUK23uM3wu7Il0MQ/Pm6S769jipDXYWftkD3o320A5Yi+7idpuShSj07bQ0wBY8M0qIykZgECAyFfJ1gzdlg3TGRn+t4nSVt8KyOzmwWDuLok2KtCqF3Jr4TTZm0jtB6lQ64qOOlry3LSnAKedsY2bVln5LH2FAGZa1ZRSR98KdhrSCV22rEDdZMLDmKKiJxJFJZ5bttgU7tdg0fHIBmc0BUR0iYwjuGB6sVWFPLuBKExWzDwc27hBwGMsaiWF5Kiwz+yjCYpFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PpTeUg5BKXmtSQakm3V7AA3QLUAcO6LRjzNTprAUsws=; b=YmxBAeZgE87MzsPJh76MZSPRviJjSuhvWql+7z+irkL8hWywD36sfPIYaq7r5IE5PmPLh8ArYLdCaI02IxBrjeil11ndI5FROa/J6sdrvZLQ7TnTJt4F00nf8+2SF7+h56yfAzLbEknardZ2h1xjDNchqRzt0ymRJvHK13srcScOi6thp8p9GYN0W2mOHYUHsCGKhWwRRPrBC7A6hNd9OkpoAdy7W6QOLxGvgSXQFBL96qE2Kz1jmclbIaTvBIvWc3vjd2s3h4p/VrGDkRA5CqoVFK7RzaASEImlVwukXfpIvfIknyyRTqGoc7MfiiWC5UgPrVVGxWNgf8dILvuJgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) by DM6PR12MB4250.namprd12.prod.outlook.com (2603:10b6:5:21a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20; Tue, 5 Jan 2021 12:49:59 +0000 Received: from DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::546d:512c:72fa:4727]) by DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::546d:512c:72fa:4727%7]) with mapi id 15.20.3721.024; Tue, 5 Jan 2021 12:49:59 +0000 Date: Tue, 5 Jan 2021 08:49:56 -0400 From: Jason Gunthorpe To: Dan Williams CC: Mark Brown , Greg KH , Alexandre Belloni , Pierre-Louis Bossart , , "Kiran Patil" , linux-rdma , Shiraz Saleem , Martin Habets , Liam Girdwood , "Ranjani Sridharan" , Fred Oh , Dave Ertman , "Jakub Kicinski" , Netdev , Leon Romanovsky , David Miller , "Linux Kernel Mailing List" , Parav Pandit , "Lee Jones" Subject: Re: [resend/standalone PATCH v4] Add auxiliary bus support Message-ID: <20210105124956.GN552508@nvidia.com> References: <20201218184150.GY552508@nvidia.com> <20201218203211.GE5333@sirena.org.uk> <20201218205856.GZ552508@nvidia.com> <20201221185140.GD4521@sirena.org.uk> <20210104180831.GD552508@nvidia.com> <20210104211930.GI5645@sirena.org.uk> <20210105001341.GL552508@nvidia.com> <20210105015314.GM552508@nvidia.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: YT1PR01CA0133.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2f::12) To DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mlx.ziepe.ca (206.223.160.26) by YT1PR01CA0133.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.19 via Frontend Transport; Tue, 5 Jan 2021 12:49:58 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kwlme-002FUc-8U; Tue, 05 Jan 2021 08:49:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1609851007; bh=PpTeUg5BKXmtSQakm3V7AA3QLUAcO6LRjzNTprAUsws=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Date: From:To:CC:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:X-ClientProxiedBy:MIME-Version: X-MS-Exchange-MessageSentRepresentingType; b=p40RqElF/LZfDBbX75UPdffKlqCuNT006h6I1yRP5vQ/ird8gl2jezK72+ZdtM0XQ 06cIfzAQSfACrpRkuvtKbR2gvsPX763xwipl62r3u+iQ4XVoMxKN54SLxlX9DN7Gj+ DmLH3wM7ztGNoi11sh6bnCiIn+r1msJI+ZkGiShhYaCXXZTTf6Hn00xNmNVk3YoH2i 7mr9qfBtaMW1mlI793FLt82IgGSq+eFTKZr4tbODeszgVqSoIY8ihPPeOBwxD54O2N Aw4C8MtmPUG7yk7CJwMYH3Li87DwcpNIa8jWSdEM/DDv7vGQEK+I4m/BPnN4kEW+ZB dXj3PbEJOzAiA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 04, 2021 at 07:12:47PM -0800, Dan Williams wrote: > I get that, but I'm fearing a gigantic bus_ops structure that has > narrow helpers like ->gpio_count() that mean nothing to the many other > clients of the bus. Maybe I'm overestimating the pressure there will > be to widen the ops structure at the bus level. If we want a 'universal device' then that stuff must live someplace.. Open coding the dispatch as is today is also not the end of the world, just seeing that is just usually a sign something is not ideal with the object model. Jason