Thread (43 messages) 43 messages, 10 authors, 2022-10-14

Re: [RFC PATCH v3 2/7] bus/cdx: add the cdx bus driver

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2022-09-07 12:33:10
Also in: kvm, linux-arm-kernel, linux-kbuild, lkml

On Tue, Sep 06, 2022 at 07:17:56PM +0530, Nipun Gupta wrote:
CDX bus supports the scanning and probing of FPGA based
devices. These devices are registers as CDX devices.

The bus driver sets up the basic infrastructure and fetches
the device related information from the firmware.

CDX bus is capable of scanning devices dynamically,
supporting rescanning of dynamically added, removed or
updated devices.
Really?  Then why is the platform driver mess still in here?

quoted hunk ↗ jump to hunk
--- /dev/null
+++ b/drivers/bus/cdx/cdx.c
@@ -0,0 +1,437 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Platform driver for CDX bus.
Again, this should not be a platform driver.

Now you can have a CDX "bus" driver, that is a platform driver, but that
needs to be in a separate file and as a separate module and totally
independant of the CDX bus code entirely.

Otherwise this is a mess to try to sift through and determine what is,
and is not, going on.  Please split that up and get rid of all of the
platform driver stuff here and put it in a separate patch that happens
after the CDX bus logic is added.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help