Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pata_platform: Document `pio_mask' module parameter

Add MODULE_PARM_DESC documentation and a kernel-parameters.txt entry.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/alpine.DEB.2.21.2103212023190.21463@angie.orcam.me.uk
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Maciej W. Rozycki and committed by
Jens Axboe
6ddcec95 426e2c6a

+9 -2
+7
Documentation/admin-guide/kernel-parameters.txt
··· 3664 3664 By default set to 1 if CONFIG_PATA_WINBOND_VLB_MODULE, 3665 3665 0 otherwise. 3666 3666 3667 + pata_platform.pio_mask= [HW,LIBATA] 3668 + Format: <int> 3669 + Supported PIO mode mask. Set individual bits to allow 3670 + the use of the respective PIO modes. Bit 0 is for 3671 + mode 0, bit 1 is for mode 1, and so on. Mode 0 only 3672 + allowed by default. 3673 + 3667 3674 pause_on_oops= 3668 3675 Halt all CPUs after the first oops has been printed for 3669 3676 the specified number of seconds. This is to be used if
+2 -2
drivers/ata/pata_platform.c
··· 24 24 #define DRV_VERSION "1.2" 25 25 26 26 static int pio_mask = 1; 27 + module_param(pio_mask, int, 0); 28 + MODULE_PARM_DESC(pio_mask, "PIO modes supported, mode 0 only by default"); 27 29 28 30 /* 29 31 * Provide our own set_mode() as we don't want to change anything that has ··· 234 232 }; 235 233 236 234 module_platform_driver(pata_platform_driver); 237 - 238 - module_param(pio_mask, int, 0); 239 235 240 236 MODULE_AUTHOR("Paul Mundt"); 241 237 MODULE_DESCRIPTION("low-level driver for platform device ATA");