2006-03-06 10:04:20

by Cornelia Huck

[permalink] [raw]
Subject: Re: + s390-add-modalias-to-uevent-for-ccw-devices.patch added to -mm tree

On Sun, 05 Mar 2006 23:12:30 -0800
[email protected] wrote:

> From: Bastian Blank <[email protected]>
>
> Add a MODALIAS line to the uevents generated for ccw devices. udev uses
> them to load modules.
>
> Cc: Heiko Carstens <[email protected]>
> Cc: Martin Schwidefsky <[email protected]>
> Signed-off-by: Andrew Morton <[email protected]>
> ---
>
> drivers/s390/cio/device.c | 40 ++++++++++++++++++++++++++----------
> 1 files changed, 29 insertions(+), 11 deletions(-)

Hm, didn't see this on lkml, but the patch looks fine.

Acked-by: Cornelia Huck <[email protected]>

Cornelia


2006-03-06 10:16:03

by Andrew Morton

[permalink] [raw]
Subject: Re: + s390-add-modalias-to-uevent-for-ccw-devices.patch added to -mm tree

Cornelia Huck <[email protected]> wrote:
>
> On Sun, 05 Mar 2006 23:12:30 -0800
> [email protected] wrote:
>
> > From: Bastian Blank <[email protected]>
> >
> > Add a MODALIAS line to the uevents generated for ccw devices. udev uses
> > them to load modules.
> >
> > Cc: Heiko Carstens <[email protected]>
> > Cc: Martin Schwidefsky <[email protected]>
> > Signed-off-by: Andrew Morton <[email protected]>
> > ---
> >
> > drivers/s390/cio/device.c | 40 ++++++++++++++++++++++++++----------
> > 1 files changed, 29 insertions(+), 11 deletions(-)
>
> Hm, didn't see this on lkml, but the patch looks fine.

It was a best guess, based upon random URLs which people were tossing around.
(I did ask to be emailed the updated patch).

> Acked-by: Cornelia Huck <[email protected]>

OK, but if you're prefer to do it differently, please send the patch. Via
email ;)

2006-03-06 10:19:16

by Bastian Blank

[permalink] [raw]
Subject: Re: + s390-add-modalias-to-uevent-for-ccw-devices.patch added to -mm tree

On Mon, Mar 06, 2006 at 11:04:16AM +0100, Cornelia Huck wrote:
> Hm, didn't see this on lkml, but the patch looks fine.

Yep, I forgot to add the lkml in the recipient list, sorry.

Bastian

--
Love sometimes expresses itself in sacrifice.
-- Kirk, "Metamorphosis", stardate 3220.3


Attachments:
(No filename) (285.00 B)
signature.asc (197.00 B)
Digital signature
Download all attachments

2006-03-06 13:50:25

by Bastian Blank

[permalink] [raw]
Subject: Re: + s390-add-modalias-to-uevent-for-ccw-devices.patch added to -mm tree

On Mon, Mar 06, 2006 at 11:04:16AM +0100, Cornelia Huck wrote:
> Hm, didn't see this on lkml, but the patch looks fine.

And it does not work as expected. The uevent includes "MODALIAS=" but
the rest got lost in the buffer as it used a wrong offset. The attached
patch makes that really working.

Bastian

--
Lots of people drink from the wrong bottle sometimes.
-- Edith Keeler, "The City on the Edge of Forever",
stardate unknown


Attachments:
(No filename) (0.00 B)
signature.asc (197.00 B)
Digital signature
Download all attachments

2006-03-06 15:39:57

by Cornelia Huck

[permalink] [raw]
Subject: Re: + s390-add-modalias-to-uevent-for-ccw-devices.patch added to -mm tree

On Mon, 6 Mar 2006 14:50:17 +0100
Bastian Blank <[email protected]> wrote:

> And it does not work as expected. The uevent includes "MODALIAS=" but
> the rest got lost in the buffer as it used a wrong offset. The attached
> patch makes that really working.

> @@ -120,8 +120,8 @@ ccw_uevent (struct device *dev, char **e
> buffer += length;
>
> envp[i++] = buffer;
> - length += scnprintf(buffer, buffer_size - length, "MODALIAS=");
> - length += modalias_print(cdev, buffer + length, buffer_size - length);
> + length += tmp_length = scnprintf(buffer, buffer_size - length, "MODALIAS=");
> + length += modalias_print(cdev, buffer + tmp_length, buffer_size - length);
> if ((buffer_size - length <= 0) || (i >= num_envp))
> return -ENOMEM;

You're right. I don't like the tmp_length too much, but can't think of
anything better.

Cornelia

2006-03-06 16:02:41

by Bastian Blank

[permalink] [raw]
Subject: Re: + s390-add-modalias-to-uevent-for-ccw-devices.patch added to -mm tree

On Mon, Mar 06, 2006 at 04:39:50PM +0100, Cornelia Huck wrote:
> You're right. I don't like the tmp_length too much, but can't think of
> anything better.

This will get fixed in my next patch, which uses add_uevent_var where
possible.

Bastian

--
A woman should have compassion.
-- Kirk, "Catspaw", stardate 3018.2


Attachments:
(No filename) (320.00 B)
signature.asc (197.00 B)
Digital signature
Download all attachments

2006-03-06 16:17:54

by Cornelia Huck

[permalink] [raw]
Subject: Re: + s390-add-modalias-to-uevent-for-ccw-devices.patch added to -mm tree

On Mon, 6 Mar 2006 17:02:34 +0100
Bastian Blank <[email protected]> wrote:

> This will get fixed in my next patch, which uses add_uevent_var where
> possible.

Sounds good - thanks for working on this!

Cornelia