#
e99981af |
| 12-Aug-2024 |
David Marchand <david.marchand@redhat.com> |
drivers: replace logging helpers
Prepare for the conversion to RTE_LOG_LINE. Some drivers currently add no \n in the logging macro and have the callers do it.
Let's invert this logic but again, thi
drivers: replace logging helpers
Prepare for the conversion to RTE_LOG_LINE. Some drivers currently add no \n in the logging macro and have the callers do it.
Let's invert this logic but again, thinking about backports, introduce the change in new macros.
Signed-off-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
d7800111 |
| 24-Aug-2023 |
Tomasz Duszynski <tduszynski@marvell.com> |
bus/platform: fix bus cleanup
Remove device from the list before doing actual cleanup to avoid use after free.
Bugzilla ID: 1276 Fixes: 17c839f74da3 ("bus: add platform bus")
Signed-off-by: Tomasz
bus/platform: fix bus cleanup
Remove device from the list before doing actual cleanup to avoid use after free.
Bugzilla ID: 1276 Fixes: 17c839f74da3 ("bus: add platform bus")
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
show more ...
|
#
bb1f2f5b |
| 16-Mar-2023 |
Tomasz Duszynski <tduszynski@marvell.com> |
bus/platform: avoid adding existing device
Do not allow adding the same device multiple times.
Coverity issue: 383663 Fixes: 17c839f74da3 ("bus: add platform bus")
Signed-off-by: Tomasz Duszynski
bus/platform: avoid adding existing device
Do not allow adding the same device multiple times.
Coverity issue: 383663 Fixes: 17c839f74da3 ("bus: add platform bus")
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
show more ...
|
#
99b4e1b8 |
| 16-Mar-2023 |
Tomasz Duszynski <tduszynski@marvell.com> |
bus/platform: fix resource names iteration
Fix stop condition and make sure we have some sentinel at the end of buffer to make sure loop can properly terminate.
Coverity issue: 383661 Fixes: 17c839
bus/platform: fix resource names iteration
Fix stop condition and make sure we have some sentinel at the end of buffer to make sure loop can properly terminate.
Coverity issue: 383661 Fixes: 17c839f74da3 ("bus: add platform bus")
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
show more ...
|
#
5a3320cb |
| 13-Mar-2023 |
Tomasz Duszynski <tduszynski@marvell.com> |
bus/platform: probe devices without resources
Platform device does not necessarily need to have any resources defined. That means device is only capable of doing DMA transfers and platform bus shoul
bus/platform: probe devices without resources
Platform device does not necessarily need to have any resources defined. That means device is only capable of doing DMA transfers and platform bus should not hinder a valid use-case.
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
show more ...
|
#
17c839f7 |
| 01-Mar-2023 |
Tomasz Duszynski <tduszynski@marvell.com> |
bus: add platform bus
Platform bus is a software bus under Linux that manages devices which generally do not have built-in discovery mechanisms. Linux normally learns about platform devices directly
bus: add platform bus
Platform bus is a software bus under Linux that manages devices which generally do not have built-in discovery mechanisms. Linux normally learns about platform devices directly from device-tree during boot-up phase.
Up to this point, whenever some userspace app needed control over platform device or a range of thereof some sort of driver being a mixture of vdev/rawdev was required.
In order to simplify this task, provide an auto-probe experience and separate bus logic from the driver itself, add platform bus support.
Currently devices backed up by vfio-platform kernel driver are supported.
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
show more ...
|