pata_platform: Document `pio_mask' module parameter
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sun, 21 Mar 2021 19:55:27 +0000 (20:55 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Apr 2021 15:27:30 +0000 (09:27 -0600)
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>
Documentation/admin-guide/kernel-parameters.txt
drivers/ata/pata_platform.c

index d159503223b838c46fd4fb51b0a368574f97f014..011129133b7a9c0236342a14398b50ad58bca3a0 100644 (file)
                        By default set to 1 if CONFIG_PATA_WINBOND_VLB_MODULE,
                        0 otherwise.
 
+       pata_platform.pio_mask= [HW,LIBATA]
+                       Format: <int>
+                       Supported PIO mode mask.  Set individual bits to allow
+                       the use of the respective PIO modes.  Bit 0 is for
+                       mode 0, bit 1 is for mode 1, and so on.  Mode 0 only
+                       allowed by default.
+
        pause_on_oops=
                        Halt all CPUs after the first oops has been printed for
                        the specified number of seconds.  This is to be used if
index 5aba691f09af5cede6c0e1e7935d272a9369fb7e..028329428b75d48379f44405ddb99192804ceb13 100644 (file)
@@ -24,6 +24,8 @@
 #define DRV_VERSION "1.2"
 
 static int pio_mask = 1;
+module_param(pio_mask, int, 0);
+MODULE_PARM_DESC(pio_mask, "PIO modes supported, mode 0 only by default");
 
 /*
  * Provide our own set_mode() as we don't want to change anything that has
@@ -233,8 +235,6 @@ static struct platform_driver pata_platform_driver = {
 
 module_platform_driver(pata_platform_driver);
 
-module_param(pio_mask, int, 0);
-
 MODULE_AUTHOR("Paul Mundt");
 MODULE_DESCRIPTION("low-level driver for platform device ATA");
 MODULE_LICENSE("GPL");