* RE: [PATCH] mptscsih: MODULE_PARM() -> module_param()
@ 2005-04-05 20:30 Moore, Eric Dean
2005-04-05 22:10 ` Magnus Damm
2005-04-12 16:38 ` James Bottomley
0 siblings, 2 replies; 5+ messages in thread
From: Moore, Eric Dean @ 2005-04-05 20:30 UTC (permalink / raw)
To: Magnus Damm, linux-scsi, James.Bottomley; +Cc: mpt_linux_developer
Ok fine - This fix is already there in the series of patches
I provided a week ago for splitting the mpt fusion drivers
into seperate bus type drivers.
James any word on whether those series of patches will get
approved?
In addition, Steve Ralston is no longer working in this group.
No need to copy him on this.
Eric Moore
LSI Logic.
On Tuesday, April 05, 2005 1:18 PM, Magnus Damm wrote:
>
> Convert obsolete MODULE_PARM() to module_param(). This also
> fixes "mpt_factor"
> that currently is a short parameter ("h") but the actual
> variable is an int.
>
> Signed-off-by: Magnus Damm <damm@opensource.se>
>
> --- linux-2.6.12-rc2/drivers/message/fusion/mptscsih.c
> 2005-04-05 16:59:53.000000000 +0200
> +++
> linux-2.6.12-rc2-autoparam/drivers/message/fusion/mptscsih.c
> 2005-04-05 20:28:11.459725880 +0200
> @@ -98,23 +98,23 @@
>
> /* Command line args */
> static int mpt_dv = MPTSCSIH_DOMAIN_VALIDATION;
> -MODULE_PARM(mpt_dv, "i");
> +module_param(mpt_dv, int, 0);
> MODULE_PARM_DESC(mpt_dv, " DV Algorithm: enhanced=1, basic=0
> (default=MPTSCSIH_DOMAIN_VALIDATION=1)");
>
> static int mpt_width = MPTSCSIH_MAX_WIDTH;
> -MODULE_PARM(mpt_width, "i");
> +module_param(mpt_width, int, 0);
> MODULE_PARM_DESC(mpt_width, " Max Bus Width: wide=1,
> narrow=0 (default=MPTSCSIH_MAX_WIDTH=1)");
>
> static int mpt_factor = MPTSCSIH_MIN_SYNC;
> -MODULE_PARM(mpt_factor, "h");
> +module_param(mpt_factor, int, 0);
> MODULE_PARM_DESC(mpt_factor, " Min Sync Factor
> (default=MPTSCSIH_MIN_SYNC=0x08)");
>
> static int mpt_saf_te = MPTSCSIH_SAF_TE;
> -MODULE_PARM(mpt_saf_te, "i");
> +module_param(mpt_saf_te, int, 0);
> MODULE_PARM_DESC(mpt_saf_te, " Force enabling SEP Processor:
> enable=1 (default=MPTSCSIH_SAF_TE=0)");
>
> static int mpt_pq_filter = 0;
> -MODULE_PARM(mpt_pq_filter, "i");
> +module_param(mpt_pq_filter, int, 0);
> MODULE_PARM_DESC(mpt_pq_filter, " Enable peripheral
> qualifier filter: enable=1 (default=0)");
>
>
> /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> =-=-=-=-=-=-=-=*/
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] mptscsih: MODULE_PARM() -> module_param()
2005-04-05 20:30 [PATCH] mptscsih: MODULE_PARM() -> module_param() Moore, Eric Dean
@ 2005-04-05 22:10 ` Magnus Damm
2005-04-12 16:38 ` James Bottomley
1 sibling, 0 replies; 5+ messages in thread
From: Magnus Damm @ 2005-04-05 22:10 UTC (permalink / raw)
To: Moore, Eric Dean
Cc: Magnus Damm, linux-scsi, James.Bottomley, mpt_linux_developer
On Apr 5, 2005 10:30 PM, Moore, Eric Dean <Eric.Moore@lsil.com> wrote:
> Ok fine - This fix is already there in the series of patches
> I provided a week ago for splitting the mpt fusion drivers
> into seperate bus type drivers.
Ah. I guess that makes this patch pretty useless, except in the case
where you want a quick fix for the possible problem related to the
"h"-parameter type mapped to an int.
/ magnus
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] mptscsih: MODULE_PARM() -> module_param()
2005-04-05 20:30 [PATCH] mptscsih: MODULE_PARM() -> module_param() Moore, Eric Dean
2005-04-05 22:10 ` Magnus Damm
@ 2005-04-12 16:38 ` James Bottomley
1 sibling, 0 replies; 5+ messages in thread
From: James Bottomley @ 2005-04-12 16:38 UTC (permalink / raw)
To: Moore, Eric Dean; +Cc: Magnus Damm, SCSI Mailing List, mpt_linux_developer
On Tue, 2005-04-05 at 14:30 -0600, Moore, Eric Dean wrote:
> Ok fine - This fix is already there in the series of patches
> I provided a week ago for splitting the mpt fusion drivers
> into seperate bus type drivers.
>
> James any word on whether those series of patches will get
> approved?
The patches themselves look fine. However, there's a problem which I
just discovered on putting it together and taking it for a test spin:
the MODULE_DEVICE_TABLE directive is still in mptbase. This means that
the udev/hotplug system thinks that when it's loaded mptbase
everything's done, which now means that everyone loses their devices
since the upper drivers aren't loaded. To make this all work and keep
the distros happy, the MODULE_DEVICE_TABLE has to be split out and
placed into the mptspi or mptfc components.
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] mptscsih: MODULE_PARM() -> module_param()
@ 2005-04-13 16:02 Moore, Eric Dean
0 siblings, 0 replies; 5+ messages in thread
From: Moore, Eric Dean @ 2005-04-13 16:02 UTC (permalink / raw)
To: James Bottomley; +Cc: Magnus Damm, SCSI Mailing List, mpt_linux_developer
This request makes very good sense.
I'm working on this, and hopefully resubmit everthing
very soon.
Regards,
Eric Moore
On Tuesday, April 12, 2005 10:38 AM, James Bottomley wrote:
>
> On Tue, 2005-04-05 at 14:30 -0600, Moore, Eric Dean wrote:
> > Ok fine - This fix is already there in the series of patches
> > I provided a week ago for splitting the mpt fusion drivers
> > into seperate bus type drivers.
> >
> > James any word on whether those series of patches will get
> > approved?
>
> The patches themselves look fine. However, there's a problem which I
> just discovered on putting it together and taking it for a test spin:
> the MODULE_DEVICE_TABLE directive is still in mptbase. This
> means that
> the udev/hotplug system thinks that when it's loaded mptbase
> everything's done, which now means that everyone loses their devices
> since the upper drivers aren't loaded. To make this all work and keep
> the distros happy, the MODULE_DEVICE_TABLE has to be split out and
> placed into the mptspi or mptfc components.
>
> James
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] mptscsih: MODULE_PARM() -> module_param()
@ 2005-04-05 19:18 Magnus Damm
0 siblings, 0 replies; 5+ messages in thread
From: Magnus Damm @ 2005-04-05 19:18 UTC (permalink / raw)
To: linux-scsi; +Cc: Magnus Damm, sjralston1, mpt_linux_developer
Convert obsolete MODULE_PARM() to module_param(). This also fixes "mpt_factor"
that currently is a short parameter ("h") but the actual variable is an int.
Signed-off-by: Magnus Damm <damm@opensource.se>
--- linux-2.6.12-rc2/drivers/message/fusion/mptscsih.c 2005-04-05 16:59:53.000000000 +0200
+++ linux-2.6.12-rc2-autoparam/drivers/message/fusion/mptscsih.c 2005-04-05 20:28:11.459725880 +0200
@@ -98,23 +98,23 @@
/* Command line args */
static int mpt_dv = MPTSCSIH_DOMAIN_VALIDATION;
-MODULE_PARM(mpt_dv, "i");
+module_param(mpt_dv, int, 0);
MODULE_PARM_DESC(mpt_dv, " DV Algorithm: enhanced=1, basic=0 (default=MPTSCSIH_DOMAIN_VALIDATION=1)");
static int mpt_width = MPTSCSIH_MAX_WIDTH;
-MODULE_PARM(mpt_width, "i");
+module_param(mpt_width, int, 0);
MODULE_PARM_DESC(mpt_width, " Max Bus Width: wide=1, narrow=0 (default=MPTSCSIH_MAX_WIDTH=1)");
static int mpt_factor = MPTSCSIH_MIN_SYNC;
-MODULE_PARM(mpt_factor, "h");
+module_param(mpt_factor, int, 0);
MODULE_PARM_DESC(mpt_factor, " Min Sync Factor (default=MPTSCSIH_MIN_SYNC=0x08)");
static int mpt_saf_te = MPTSCSIH_SAF_TE;
-MODULE_PARM(mpt_saf_te, "i");
+module_param(mpt_saf_te, int, 0);
MODULE_PARM_DESC(mpt_saf_te, " Force enabling SEP Processor: enable=1 (default=MPTSCSIH_SAF_TE=0)");
static int mpt_pq_filter = 0;
-MODULE_PARM(mpt_pq_filter, "i");
+module_param(mpt_pq_filter, int, 0);
MODULE_PARM_DESC(mpt_pq_filter, " Enable peripheral qualifier filter: enable=1 (default=0)");
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-04-13 16:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-05 20:30 [PATCH] mptscsih: MODULE_PARM() -> module_param() Moore, Eric Dean
2005-04-05 22:10 ` Magnus Damm
2005-04-12 16:38 ` James Bottomley
-- strict thread matches above, loose matches on Subject: below --
2005-04-13 16:02 Moore, Eric Dean
2005-04-05 19:18 Magnus Damm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox