Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-15 Thread Stefan Richter
(added Cc: lsml) Kristian Høgsberg wrote at lkml: > I saw that the stack [the FireWire stack] > creates a struct device per LUN, which is kinda gross in my opinion. If you mean regular "unit directories" here, not SCSI LUs, then one device per unit makes sense. Different units of a node may

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-15 Thread Kristian Høgsberg
Stefan Richter wrote: Kristian Høgsberg wrote: Jeff Garzik wrote: doesn't allowing the stack to issue REPORT LUNS take care of this? Possibly, I don't have firewire multi-LUN devices to test with here. The LUNs are also discoverable from the firewire config rom, which is why I put the

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-15 Thread Kristian Høgsberg
Stefan Richter wrote: Kristian Høgsberg wrote: Jeff Garzik wrote: doesn't allowing the stack to issue REPORT LUNS take care of this? Possibly, I don't have firewire multi-LUN devices to test with here. The LUNs are also discoverable from the firewire config rom, which is why I put the

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-15 Thread Stefan Richter
(added Cc: lsml) Kristian Høgsberg wrote at lkml: I saw that the stack [the FireWire stack] creates a struct device per LUN, which is kinda gross in my opinion. If you mean regular unit directories here, not SCSI LUs, then one device per unit makes sense. Different units of a node may

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-14 Thread Stefan Richter
Kristian Høgsberg wrote: > Jeff Garzik wrote: >> doesn't allowing the stack to issue REPORT LUNS take care of this? > > Possibly, I don't have firewire multi-LUN devices to test with here. > The LUNs are also discoverable from the firewire config rom, which is > why I put the comment there.

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-14 Thread Kristian Høgsberg
Jeff Garzik wrote: Again, thanks for your comments, I've added patches to my git repo, will send out a new set on LKML before the end of this week. +/* I don't know why the SCSI stack doesn't define something like this... */ +typedef void (*scsi_done_fn_t) (struct scsi_cmnd *); submit a

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-14 Thread Kristian Høgsberg
Jeff Garzik wrote: Again, thanks for your comments, I've added patches to my git repo, will send out a new set on LKML before the end of this week. +/* I don't know why the SCSI stack doesn't define something like this... */ +typedef void (*scsi_done_fn_t) (struct scsi_cmnd *); submit a

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-14 Thread Stefan Richter
Kristian Høgsberg wrote: Jeff Garzik wrote: doesn't allowing the stack to issue REPORT LUNS take care of this? Possibly, I don't have firewire multi-LUN devices to test with here. The LUNs are also discoverable from the firewire config rom, which is why I put the comment there. This

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-05 Thread Stefan Richter
Jeff Garzik wrote: > Kristian Høgsberg wrote: >> +struct sbp2_status { >> +unsigned int orb_high:16; > > unsigned short? probably generates better code than a bitfield:16 > > >> +unsigned int sbp_status:8; > > unsigned char? > > >> +unsigned int len:3; >> +unsigned int

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-05 Thread Stefan Richter
Jeff Garzik wrote: Kristian Høgsberg wrote: +struct sbp2_status { +unsigned int orb_high:16; unsigned short? probably generates better code than a bitfield:16 +unsigned int sbp_status:8; unsigned char? +unsigned int len:3; +unsigned int dead:1; +unsigned

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-04 Thread Jeff Garzik
Kristian Høgsberg wrote: Pull in the fw-sbp2 driver for firewire storage devices. Signed-off-by: Kristian Høgsberg <[EMAIL PROTECTED]> --- drivers/fw/fw-ohci.c |2 drivers/fw/fw-sbp2.c | 1083 ++ 2 files changed, 1084 insertions(+), 1

[PATCH 3/3] Import fw-sbp2 driver.

2006-12-04 Thread Kristian Høgsberg
Pull in the fw-sbp2 driver for firewire storage devices. Signed-off-by: Kristian Høgsberg <[EMAIL PROTECTED]> --- drivers/fw/fw-ohci.c |2 drivers/fw/fw-sbp2.c | 1083 ++ 2 files changed, 1084 insertions(+), 1 deletions(-) diff --git

[PATCH 3/3] Import fw-sbp2 driver.

2006-12-04 Thread Kristian Høgsberg
Pull in the fw-sbp2 driver for firewire storage devices. Signed-off-by: Kristian Høgsberg [EMAIL PROTECTED] --- drivers/fw/fw-ohci.c |2 drivers/fw/fw-sbp2.c | 1083 ++ 2 files changed, 1084 insertions(+), 1 deletions(-) diff --git

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-04 Thread Jeff Garzik
Kristian Høgsberg wrote: Pull in the fw-sbp2 driver for firewire storage devices. Signed-off-by: Kristian Høgsberg [EMAIL PROTECTED] --- drivers/fw/fw-ohci.c |2 drivers/fw/fw-sbp2.c | 1083 ++ 2 files changed, 1084 insertions(+), 1