Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4973149rwb; Wed, 17 Aug 2022 08:56:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR4EUR3Ex8Loqjp3Aed3hd4TuuLwEv+MAsLYALiYcNumyzt1RZSj8iJAMC7ukjQQ7CrKJDwq X-Received: by 2002:aa7:dd50:0:b0:440:3e9d:784 with SMTP id o16-20020aa7dd50000000b004403e9d0784mr23940987edw.195.1660751762843; Wed, 17 Aug 2022 08:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660751762; cv=none; d=google.com; s=arc-20160816; b=QZFjTbglFwgNjtjZmPzBeg5X3u7WUIUnu8txxQ4QuERj83Wtw3VCi/3beO1XMrzKoB ybzLYElJYd5NT+bFjNO/R9rZexeXkSTMofr2ZTM+oQUm9khd1X3eUDoc5HpSMcb+xNxG FmSCRwKhjSALNfL4YCBQpNKxxGgRnRL1ztvJBoCvrx5LLJqVEmG5OMglSW/Kbi92iqma /IfJP1Xa3JGOWqcIc59uWk/gYB3RFYJFphn/8Q/iQ5gQYYnP7FAK9X7LCVc9bwkmTpN8 f4QHQHIv/aDdVysATjlCu1onWiWg+A2fbX7MrIFElUd/8XmSchm185pOxnYsR07qKcyo p7kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=1eU4BM5h75qko2bcDjFA7pMw2fcK/JPCbvAQOe/swqQ=; b=ufSmGLOcC0Dkd0Cu7cFpvubBK7DHukKC8O2axGcBLyiu1YLski5KG9vD3AKaCf6nPA IE1gHFweT8Tkq/pfBn1dQhD2guhs8ZuZH0izb9o/F4xm1VyPpID8xNZyFAgw0clbftWD 4DlF03zjr0KrN0epCaPXtWGSHdt/1moQpvOIyud2yIL7xtKnTENupjEOKZlcGv7HuokO HPfFoV5buvmwVUmYKfoIEtAGQYWtpvem1ajrB3kvahzmPX2Nxhjb2K9IsvDoX+P2PqiI 20BKuh9DkuTcVLSUHXxxthFSgsM07IwhmYCiqC5SqBofHTat4/rDGhs2izT4upC8eJqk 12uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N09yOdYU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a056402054c00b00445e9407ef6si1003298edx.343.2022.08.17.08.55.37; Wed, 17 Aug 2022 08:56:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N09yOdYU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237967AbiHQPqc (ORCPT + 99 others); Wed, 17 Aug 2022 11:46:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237405AbiHQPq2 (ORCPT ); Wed, 17 Aug 2022 11:46:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29CDD7F27A; Wed, 17 Aug 2022 08:46:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D72F9B81E10; Wed, 17 Aug 2022 15:46:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6934FC433C1; Wed, 17 Aug 2022 15:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660751183; bh=mIw1ToA3oltPBVk97Rnc+Pibf1c2qccm6jANqoNBMXg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=N09yOdYUi9n/UbS1b+0w7fC9rEASAJpy4oYYsVXcc3CtK1jLn8uXQF+H3WqrjTQpo mSZwhS9qeowEjRnvnPD0xtbvqZsrZyWB5yW91Fk4MQVaN48e9xayUuqFBgRwWbCTqf LX/0L3ZIyVaIURElMLCRQXRNqJ659etqHPbWYRfYD6thAaXNlJmXliMADJdoafrF/0 GrUWSvKvLor8ZfF0pG3DmoZ5aotrsMMEhSUbQXgT2oHF/NKGLc6jvBwcA77WrtzNQW Q79AEPMZhbsBCjQGKRUYC0sR4Zokcb4LTbVVgHfusggfxhd+Raywg900sjATCq/vd0 qMP8r0dBAh/Hw== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oOLFN-003m7J-6w; Wed, 17 Aug 2022 16:46:21 +0100 Date: Wed, 17 Aug 2022 16:46:20 +0100 Message-ID: <87pmgyx48j.wl-maz@kernel.org> From: Marc Zyngier To: Nipun Gupta , Greg KH Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rafael@kernel.org, eric.auger@redhat.com, alex.williamson@redhat.com, cohuck@redhat.com, puneet.gupta@amd.com, song.bao.hua@hisilicon.com, mchehab+huawei@kernel.org, f.fainelli@gmail.com, jeffrey.l.hugo@gmail.com, saravanak@google.com, Michael.Srba@seznam.cz, mani@kernel.org, yishaih@nvidia.com, jgg@ziepe.ca, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kvm@vger.kernel.org, okaya@kernel.org, harpreet.anand@amd.com, nikhil.agarwal@amd.com, michal.simek@amd.com, git@amd.com Subject: Re: [RFC PATCH v2 2/6] bus/cdx: add the cdx bus driver In-Reply-To: References: <20220803122655.100254-1-nipun.gupta@amd.com> <20220817150542.483291-1-nipun.gupta@amd.com> <20220817150542.483291-3-nipun.gupta@amd.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: nipun.gupta@amd.com, gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rafael@kernel.org, eric.auger@redhat.com, alex.williamson@redhat.com, cohuck@redhat.com, puneet.gupta@amd.com, song.bao.hua@hisilicon.com, mchehab+huawei@kernel.org, f.fainelli@gmail.com, jeffrey.l.hugo@gmail.com, saravanak@google.com, Michael.Srba@seznam.cz, mani@kernel.org, yishaih@nvidia.com, jgg@ziepe.ca, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kvm@vger.kernel.org, okaya@kernel.org, harpreet.anand@amd.com, nikhil.agarwal@amd.com, michal.simek@amd.com, git@amd.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Aug 2022 16:32:45 +0100, Greg KH wrote: > > On Wed, Aug 17, 2022 at 08:35:38PM +0530, Nipun Gupta wrote: > > CDX bus driver manages the scanning and populating FPGA > > based devices present on the CDX bus. > > > > The bus driver sets up the basic infrastructure and fetches > > the device related information from the firmware. These > > devices are registered as platform devices. > > Ick, why? These aren't platform devices, they are CDX devices. Make > them real devices here, don't abuse the platform device interface for > things that are not actually on the platform bus. > > > CDX bus is capable of scanning devices dynamically, > > supporting rescanning of dynamically added, removed or > > updated devices. > > Wonderful, that's a real bus, so be a real bus please. +1. This should follow something like PCI, which has semi-sane semantics. Thanks, M. -- Without deviation from the norm, progress is not possible.