Skip to content

Commit

Permalink
misc: xilinx_trafgen: deprecate the driver
Browse files Browse the repository at this point in the history
There are not many users for the driver.
Deprecate the driver.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
  • Loading branch information
Shubhrajyoti Datta authored and michalsimek committed Jul 29, 2022
1 parent f52ad35 commit 6e807bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/misc/Kconfig
Expand Up @@ -491,6 +491,8 @@ config XILINX_TRAFGEN
allow the user to generate a wide variety of traffic based on their
their requirements.

This driver is deprecated and will be removed soon.

If unsure, say N

config XILINX_AIE
Expand Down
2 changes: 2 additions & 0 deletions drivers/misc/xilinx_trafgen.c
Expand Up @@ -1604,6 +1604,8 @@ static int xtg_probe(struct platform_device *pdev)
if (var == XTG_INIT_VERSION)
tg->xtg_mram_offset = XTG_MASTER_RAM_INIT_OFFSET;

/* Let the users know they are using deprecated driver */
dev_notice(&pdev->dev, "xilinx trafgen driver is deprecated\n");
dev_info(&pdev->dev, "Probing xilinx traffic generator success\n");

return 0;
Expand Down

0 comments on commit 6e807bf

Please sign in to comment.