All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/2] UIO support for dfl devices
@ 2021-01-21  8:34 Xu Yilun
  2021-01-21  8:34 ` [PATCH v8 1/2] fpga: dfl: add the userspace I/O device support for DFL devices Xu Yilun
  2021-01-21  8:34 ` [PATCH v8 2/2] Documentation: fpga: dfl: Add description for DFL UIO support Xu Yilun
  0 siblings, 2 replies; 3+ messages in thread
From: Xu Yilun @ 2021-01-21  8:34 UTC (permalink / raw)
  To: mdf, linux-fpga, linux-kernel
  Cc: gregkh, trix, lgoncalv, yilun.xu, hao.wu, rdunlap

This patchset supports some dfl device drivers written in userspace.

In the patchset v1, the "driver_override" interface should be used to bind
the DFL UIO driver to DFL devices. But there is concern that the
"driver_override" interface is not OK itself.

In v2, we use a new matching algorithem. The "driver_override" interface
is abandoned, the DFL UIO driver matches any DFL device which could not be
handled by other DFL drivers. So the DFL UIO driver could be used for new
DFL devices which are not supported by kernel. The concern is the UIO may
not be suitable as a default/generic driver for all dfl features, such as
features with multiple interrupts.

In v4, we specify each matching device in the id_table of the UIO driver,
just the same as other dfl drivers do. Now the UIO driver supports Ether
Group feature. To support more DFL features, their feature ids should be
added to the driver's id_table.


Main changes from v1:
- switch to the new matching algorithem. It matches DFL devices which could
  not be handled by other DFL drivers.
- refacor the code about device resources filling.
- add the documentation.

Main changes from v2:
- split the match ops changes in dfl.c to an independent patch.
- move the declarations needed for dfl-uio-pdev from include/linux/dfl.h
  to driver/fpga/dfl.h
- some minor fixes.

Main changes from v3:
- switch to specifying each matching device in the driver's id_table.
- refactor the irq handling code.

Main changes from v4:
- refactor the irq handling code.

Main changes from v5:
- fix the res[] zero initialization issue.
- improve the return code for probe().
- some doc improvement.

Main changes from v6:
- use platform_device_register_resndata() for pdev creation.

Main changes from v7:
- some doc fixes.

Xu Yilun (2):
  fpga: dfl: add the userspace I/O device support for DFL devices
  Documentation: fpga: dfl: Add description for DFL UIO support

 Documentation/fpga/dfl.rst  | 25 ++++++++++++++
 drivers/fpga/Kconfig        | 10 ++++++
 drivers/fpga/Makefile       |  1 +
 drivers/fpga/dfl-uio-pdev.c | 84 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 120 insertions(+)
 create mode 100644 drivers/fpga/dfl-uio-pdev.c

-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-21 18:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21  8:34 [PATCH v8 0/2] UIO support for dfl devices Xu Yilun
2021-01-21  8:34 ` [PATCH v8 1/2] fpga: dfl: add the userspace I/O device support for DFL devices Xu Yilun
2021-01-21  8:34 ` [PATCH v8 2/2] Documentation: fpga: dfl: Add description for DFL UIO support Xu Yilun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.