diff mbox series

[1/3] megaraid_sas: make max_sectors visible in sys

Message ID 20190529160041.7242-2-thenzl@redhat.com (mailing list archive)
State Mainlined
Commit deff37063351ddf5defe1027b172548fdfbdcbe6
Headers show
Series megaraid_sas: | expand

Commit Message

Tomas Henzl May 29, 2019, 4 p.m. UTC
Support is easier with all driver parameters visible in sysfs.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
---
 drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sumit Saxena June 7, 2019, 6:20 a.m. UTC | #1
On Wed, May 29, 2019 at 9:30 PM Tomas Henzl <thenzl@redhat.com> wrote:
>
> Support is easier with all driver parameters visible in sysfs.
>
> Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>

> ---
>  drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
> index 3a9128ed3..3752daab0 100644
> --- a/drivers/scsi/megaraid/megaraid_sas_base.c
> +++ b/drivers/scsi/megaraid/megaraid_sas_base.c
> @@ -64,7 +64,7 @@
>   * Will be set in megasas_init_mfi if user does not provide
>   */
>  static unsigned int max_sectors;
> -module_param_named(max_sectors, max_sectors, int, 0);
> +module_param_named(max_sectors, max_sectors, int, S_IRUGO);
>  MODULE_PARM_DESC(max_sectors,
>         "Maximum number of sectors per IO command");
>
> --
> 2.20.1
>
diff mbox series

Patch

diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 3a9128ed3..3752daab0 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -64,7 +64,7 @@ 
  * Will be set in megasas_init_mfi if user does not provide
  */
 static unsigned int max_sectors;
-module_param_named(max_sectors, max_sectors, int, 0);
+module_param_named(max_sectors, max_sectors, int, S_IRUGO);
 MODULE_PARM_DESC(max_sectors,
 	"Maximum number of sectors per IO command");