Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4968776rwb; Wed, 17 Aug 2022 08:51:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR4fft6zYQlpXmx87j9g/7RVabpDQpjkpSNdHrs4llJdnDbqVVs7P3bjnzOxSc+WzzouHRZH X-Received: by 2002:a17:907:9693:b0:732:fd0d:4564 with SMTP id hd19-20020a170907969300b00732fd0d4564mr17153915ejc.336.1660751482577; Wed, 17 Aug 2022 08:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660751482; cv=none; d=google.com; s=arc-20160816; b=Du5SZFviHfkzjBxN/EJ0kwmgeWfXg2JMcLIykIBVLfdz43Auv0TMNfLe5WTd0SfV03 FTJdxYa5EOowfKaCvtBMe/zYgKGBCZytM25Iy5gz/GzQuc10qJNuBsCfNdG8KlfpWzE6 DeUqX6GQPcCexRMcmc2IzgZDyzecbTI6mEPq2vX/2DAZ/icxfm9pYC6iZPGq4BdASlCT EZuyopKtwiwVQVLbBeDvt1H/LsCp20Vx+c5QljZubKnoytcklp0fPOUT0ZeFCkQ/Wuih ADu7m3HgLV6NediLxAy8Dv8bSv/lfRcGWNkkS/w7oUWl10+gmi4qZI9+cnEf8UHYvD1B uZ+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QqtB2cXQ2BeMePfZ+i/7iSVIJeCI4HSsgU0hRUBAYz0=; b=vQEV987gP1oBPU2F3Eyx2g3GO2KwLhRo+3xQXGArTvR/fMmoR8vpb5IseVZLrDWjTP MpiKwk+CcCeDqqBuqK1BqVtdGhHCnY9MgfGFDaL/VF8twhjQ/RwTgtXJzTfPsrsajMjk pIZGK/q5ayigXcv3sFDbwqsRsHmvWmSMthhbHmpUtA8bucw/2wiDs5mxL35yhtahd7mG nW0XtoihXei4wunS7pHG125RptoUiEjE69zhMW3bx0MDt2z3O4jDeCiQocLECWpH0YQR 3pvteIW6Ph4c96eIWI9Z5CdiRuK24uKLYU/e2E97LV8P9qk9Cr7AbOln2KYohWp5XrrX /1ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XOwfhPac; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a508d0e000000b0043cea48785csi13060195eds.192.2022.08.17.08.50.54; Wed, 17 Aug 2022 08:51:22 -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=@linuxfoundation.org header.s=korg header.b=XOwfhPac; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239959AbiHQPcw (ORCPT + 99 others); Wed, 17 Aug 2022 11:32:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237220AbiHQPcu (ORCPT ); Wed, 17 Aug 2022 11:32:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E57C9D644; Wed, 17 Aug 2022 08:32:49 -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 dfw.source.kernel.org (Postfix) with ESMTPS id CAECB61580; Wed, 17 Aug 2022 15:32:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87B12C433D6; Wed, 17 Aug 2022 15:32:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660750368; bh=SLqJ5eMxEKpEfFY4KwxKtcftm4KEHJnRCGNOUUErrQk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XOwfhPacAxhjEvskcrt8wqCIDRrTRpqrrfJiKMAG37uynPsROpA8Ai0OxLqqKOW59 evO5OEGY2nwWJszF36ytSOIPi0U8MhQZYdEC1FO+sjS4HtBsQqsdb7hyI+9lWpSO1x kEIi+4xqtzsAtm5Z1qeTwUbm+6W7bYRaGlFr2XEI= Date: Wed, 17 Aug 2022 17:32:45 +0200 From: Greg KH To: Nipun Gupta 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, maz@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 Message-ID: References: <20220803122655.100254-1-nipun.gupta@amd.com> <20220817150542.483291-1-nipun.gupta@amd.com> <20220817150542.483291-3-nipun.gupta@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220817150542.483291-3-nipun.gupta@amd.com> 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,URIBL_BLOCKED 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, 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. thanks, greg k-h