]> www.infradead.org Git - users/hch/misc.git/commitdiff
vfio/platform: Mark reset drivers for removal
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 25 Aug 2025 17:58:01 +0000 (11:58 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Sep 2025 20:36:38 +0000 (14:36 -0600)
While vfio-platform itself is on a reprieve from being removed[1],
these reset drivers don't support any current hardware, are not being
tested, and suggest a level of support that doesn't really exist.
Mark them for removal to surface any remaining user such that we can
potentially drop them and simplify the code if none appear.

Link: https://lore.kernel.org/all/20250806170314.3768750-3-alex.williamson@redhat.com
Reviewed-by: Pranjal Shrivastava <praan@google.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20250825175807.3264083-3-alex.williamson@redhat.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/reset/Kconfig
drivers/vfio/platform/reset/vfio_platform_amdxgbe.c
drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c
drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c

index dcc08dc145a5df4904a9830b23ad9dd488997aaf..70af0dbe293b9e0febd7369e06e2856c3f0f8bf9 100644 (file)
@@ -1,21 +1,21 @@
 # SPDX-License-Identifier: GPL-2.0-only
 if VFIO_PLATFORM
 config VFIO_PLATFORM_CALXEDAXGMAC_RESET
-       tristate "VFIO support for calxeda xgmac reset"
+       tristate "VFIO support for calxeda xgmac reset (DEPRECATED)"
        help
          Enables the VFIO platform driver to handle reset for Calxeda xgmac
 
          If you don't know what to do here, say N.
 
 config VFIO_PLATFORM_AMDXGBE_RESET
-       tristate "VFIO support for AMD XGBE reset"
+       tristate "VFIO support for AMD XGBE reset (DEPRECATED)"
        help
          Enables the VFIO platform driver to handle reset for AMD XGBE
 
          If you don't know what to do here, say N.
 
 config VFIO_PLATFORM_BCMFLEXRM_RESET
-       tristate "VFIO support for Broadcom FlexRM reset"
+       tristate "VFIO support for Broadcom FlexRM reset (DEPRECATED)"
        depends on ARCH_BCM_IPROC || COMPILE_TEST
        default ARCH_BCM_IPROC
        help
index abdca900802d04bce8deee4627526c3d26713609..45f386a042a973a2bd334b612b2a239b6ad9f088 100644 (file)
@@ -52,6 +52,8 @@ static int vfio_platform_amdxgbe_reset(struct vfio_platform_device *vdev)
        u32 dma_mr_value, pcs_value, value;
        unsigned int count;
 
+       dev_err_once(vdev->device, "DEPRECATION: VFIO AMD XGBE platform reset is deprecated and will be removed in a future kernel release\n");
+
        if (!xgmac_regs->ioaddr) {
                xgmac_regs->ioaddr =
                        ioremap(xgmac_regs->addr, xgmac_regs->size);
index 1131ebe4837d427857bbec20fa05f5f79fbd37dd..51c9d156f307297da46f9b5f20ff3b3ba53941be 100644 (file)
@@ -72,6 +72,8 @@ static int vfio_platform_bcmflexrm_reset(struct vfio_platform_device *vdev)
        int rc = 0, ret = 0, ring_num = 0;
        struct vfio_platform_region *reg = &vdev->regions[0];
 
+       dev_err_once(vdev->device, "DEPRECATION: VFIO Broadcom FlexRM platform reset is deprecated and will be removed in a future kernel release\n");
+
        /* Map FlexRM ring registers if not mapped */
        if (!reg->ioaddr) {
                reg->ioaddr = ioremap(reg->addr, reg->size);
index 63cc7f0b2e4a437a4d446b54e4937bcb6ed88876..a298045a8e19dbb78cc34bb2a42fd79abaf5d0e1 100644 (file)
@@ -50,6 +50,8 @@ static int vfio_platform_calxedaxgmac_reset(struct vfio_platform_device *vdev)
 {
        struct vfio_platform_region *reg = &vdev->regions[0];
 
+       dev_err_once(vdev->device, "DEPRECATION: VFIO Calxeda xgmac platform reset is deprecated and will be removed in a future kernel release\n");
+
        if (!reg->ioaddr) {
                reg->ioaddr =
                        ioremap(reg->addr, reg->size);