public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* ANNOUNCE - DC315/DC395 driver for 2.5
@ 2003-04-23  7:27 Jamie Lenehan
  2003-05-13  9:05 ` ANNOUNCE dc395x update [2.03] Jamie Lenehan
  0 siblings, 1 reply; 10+ messages in thread
From: Jamie Lenehan @ 2003-04-23  7:27 UTC (permalink / raw)
  To: dc395x; +Cc: linux-scsi

Hello all,
an updated version of the TekRam DC395/DC315 SCSI driver for the 2.5
kernels is available from:

  http://twibble.org/dist/dc395x/

Comments, suggestions and patches will be appreciated! The aim is to
try and get this driver integrated into the main kernel tree.

This driver is based on the original 2.4 driver with updates for 2.5
from various people merged in and a lot of cleanups done. No one has
been unable to contact Kurt Garloff, the previous maintainer of the
driver, for a long time and so have decided to maintain the driver
ourselves.

-- 
 Jamie Lenehan              Work Phone: +61 3 9843 8817
 lenehan@twibble.org        Work Email: jamie.lenehan@activcard.com.au

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ANNOUNCE dc395x update [2.03]
  2003-04-23  7:27 ANNOUNCE - DC315/DC395 driver for 2.5 Jamie Lenehan
@ 2003-05-13  9:05 ` Jamie Lenehan
  2003-05-13  9:43   ` Jamie Lenehan
                     ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jamie Lenehan @ 2003-05-13  9:05 UTC (permalink / raw)
  To: dc395x; +Cc: linux-scsi

Hi,
a new version against 2.5.69 is now up at:

   http://twibble.org/dist/dc395x/

Changes in this version:

 - Fix kernel crash when sharing IRQ's with other devices and the
   other devices IRQ triggers.

 - Make the debugging mess less of a mess.

 - Changed the module initialization around. If I'm reading
   scsi_mid_low_api.txt correctly it's now doing it "hotplug" style
   instead of "passive" style. At least it simplifies things and
   permits the driver to survive multiple insmod/rmmod cycles.

 - Changed the command line option from a set of integers into
   multiple parameters. Use the new module_param_named stuff. Cleanup
   all the code that deals with these options.

 - Fix the formatting of kerneldoc stuff on the functions that have
   it added so far. Add more for all the stuff effecting by the
   module/parameter changes.

 - Cleanup macro abuse where macros would implicitly use local
   variables.  Now it always passes the parameters it operates on to
   the macros.

 - Cleanup function scope. Make everything except the module init
   functions static. Remove unused functions DC395x_updateDCB,
   DC395x_inquiry_done and DC395x_inquiry.

NOTE: I've noticed some changes to the driver on linux-scsi and
      bk-commits today so it may not apply cleanly to recent bk
      trees.

-- 
 Jamie Lenehan              Work Phone: +61 3 9843 8817
 lenehan@twibble.org        Work Email: jamie.lenehan@activcard.com.au

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ANNOUNCE dc395x update [2.03]
  2003-05-13  9:05 ` ANNOUNCE dc395x update [2.03] Jamie Lenehan
@ 2003-05-13  9:43   ` Jamie Lenehan
  2003-05-13  9:46     ` Jens Axboe
  2003-05-13 10:48   ` Christoph Hellwig
  2003-05-19  9:31   ` ANNOUNCE: dc395x update [2.04] Jamie Lenehan
  2 siblings, 1 reply; 10+ messages in thread
From: Jamie Lenehan @ 2003-05-13  9:43 UTC (permalink / raw)
  To: dc395x; +Cc: linux-scsi

On Tue, May 13, 2003 at 07:05:35PM +1000, Jamie Lenehan wrote:
> Hi,
> a new version against 2.5.69 is now up at:
> 
>    http://twibble.org/dist/dc395x/

I've also put up each of the changes as individual patches in the
dc395x-2.5.69-2.03-split subdirectory:

 00-irq-crash-fix.patch
 01-debug-cleanup.patch
 02-module-cleanup.patch
 03-kerneldoc-update.patch
 04-macro-abuse-cleanup.patch
 05-static-scope-cleanup.patch
 06-version-2.03.patch

Is there anyone reading here who would be able to take these changes
(and hopefully future changes) and push them on to Linus?

Thanks
Jamie.
-- 
 Jamie Lenehan              Work Phone: +61 3 9843 8817
 lenehan@twibble.org        Work Email: jamie.lenehan@activcard.com.au

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ANNOUNCE dc395x update [2.03]
  2003-05-13  9:43   ` Jamie Lenehan
@ 2003-05-13  9:46     ` Jens Axboe
  2003-05-13  9:56       ` Jamie Lenehan
  2003-05-13 10:09       ` [Dc395x] " Ali Akcaagac
  0 siblings, 2 replies; 10+ messages in thread
From: Jens Axboe @ 2003-05-13  9:46 UTC (permalink / raw)
  To: Jamie Lenehan; +Cc: dc395x, linux-scsi

On Tue, May 13 2003, Jamie Lenehan wrote:
> On Tue, May 13, 2003 at 07:05:35PM +1000, Jamie Lenehan wrote:
> > Hi,
> > a new version against 2.5.69 is now up at:
> > 
> >    http://twibble.org/dist/dc395x/
> 
> I've also put up each of the changes as individual patches in the
> dc395x-2.5.69-2.03-split subdirectory:
> 
>  00-irq-crash-fix.patch
>  01-debug-cleanup.patch
>  02-module-cleanup.patch
>  03-kerneldoc-update.patch
>  04-macro-abuse-cleanup.patch
>  05-static-scope-cleanup.patch
>  06-version-2.03.patch
> 
> Is there anyone reading here who would be able to take these changes
> (and hopefully future changes) and push them on to Linus?

That's a bit much to expect, if you're not even sure they apply to
bk-current :)

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ANNOUNCE dc395x update [2.03]
  2003-05-13  9:46     ` Jens Axboe
@ 2003-05-13  9:56       ` Jamie Lenehan
  2003-05-14  2:22         ` Jamie Lenehan
  2003-05-13 10:09       ` [Dc395x] " Ali Akcaagac
  1 sibling, 1 reply; 10+ messages in thread
From: Jamie Lenehan @ 2003-05-13  9:56 UTC (permalink / raw)
  To: Jens Axboe; +Cc: dc395x, linux-scsi

On Tue, May 13, 2003 at 11:46:40AM +0200, Jens Axboe wrote:
[...]
> That's a bit much to expect, if you're not even sure they apply to
> bk-current :)

Hmmm... good point now that I think about it... I can't really afford
the volume charges to do a initial pull of the 2.5 bk tree, but
looking on kernel.org mirror now I see that there are daily bk
snapshots which I can probably afford to get.

I'll update to patch-2.5.69-bk8 when it appears, redo the diffs and
then send another note about it.

Thanks.
Jamie.

-- 
 Jamie Lenehan              Work Phone: +61 3 9843 8817
 lenehan@twibble.org        Work Email: jamie.lenehan@activcard.com.au

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Dc395x] Re: ANNOUNCE dc395x update [2.03]
  2003-05-13  9:46     ` Jens Axboe
  2003-05-13  9:56       ` Jamie Lenehan
@ 2003-05-13 10:09       ` Ali Akcaagac
  1 sibling, 0 replies; 10+ messages in thread
From: Ali Akcaagac @ 2003-05-13 10:09 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Jamie Lenehan, dc395x, linux-scsi

On Tue, 2003-05-13 at 11:46, Jens Axboe wrote:
> > Is there anyone reading here who would be able to take these changes
> > (and hopefully future changes) and push them on to Linus?
> 
> That's a bit much to expect, if you're not even sure they apply to
> bk-current :)

Well but we do keep sending the patches to either the list and/or Linus.
But we also do depend on feedback of those responsible for the SCSI
stuff otherwise we end in our own changes and the individual changes of
those with bk access. We are trying since pre 2.5.68 to have these
patches included.

greets,

Ali Akcaagac


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ANNOUNCE dc395x update [2.03]
  2003-05-13  9:05 ` ANNOUNCE dc395x update [2.03] Jamie Lenehan
  2003-05-13  9:43   ` Jamie Lenehan
@ 2003-05-13 10:48   ` Christoph Hellwig
  2003-05-13 10:56     ` Jamie Lenehan
  2003-05-19  9:31   ` ANNOUNCE: dc395x update [2.04] Jamie Lenehan
  2 siblings, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2003-05-13 10:48 UTC (permalink / raw)
  To: Jamie Lenehan; +Cc: dc395x, linux-scsi

On Tue, May 13, 2003 at 07:05:35PM +1000, Jamie Lenehan wrote:
>  - Cleanup function scope. Make everything except the module init
>    functions static.

everything should be static, including module init functions.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ANNOUNCE dc395x update [2.03]
  2003-05-13 10:48   ` Christoph Hellwig
@ 2003-05-13 10:56     ` Jamie Lenehan
  0 siblings, 0 replies; 10+ messages in thread
From: Jamie Lenehan @ 2003-05-13 10:56 UTC (permalink / raw)
  To: dc395x, linux-scsi

On Tue, May 13, 2003 at 11:48:56AM +0100, Christoph Hellwig wrote:
> On Tue, May 13, 2003 at 07:05:35PM +1000, Jamie Lenehan wrote:
> >  - Cleanup function scope. Make everything except the module init
> >    functions static.
> 
> everything should be static, including module init functions.

Yeah. Turns out this is a comment error - the actual module init
functions are static.

Thanks.

-- 
 Jamie Lenehan              Work Phone: +61 3 9843 8817
 lenehan@twibble.org        Work Email: jamie.lenehan@activcard.com.au

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ANNOUNCE dc395x update [2.03]
  2003-05-13  9:56       ` Jamie Lenehan
@ 2003-05-14  2:22         ` Jamie Lenehan
  0 siblings, 0 replies; 10+ messages in thread
From: Jamie Lenehan @ 2003-05-14  2:22 UTC (permalink / raw)
  To: dc395x, linux-scsi

On Tue, May 13, 2003 at 07:56:59PM +1000, Jamie Lenehan wrote:
> On Tue, May 13, 2003 at 11:46:40AM +0200, Jens Axboe wrote:
> [...]
> > That's a bit much to expect, if you're not even sure they apply to
> > bk-current :)

Ok, they are there now against 2.5.69-bk8:

  http://twibble.org/dist/dc395x/dc395x-2.5.69bk8-2.03-split

-- 
 Jamie Lenehan              Work Phone: +61 3 9843 8817
 lenehan@twibble.org        Work Email: jamie.lenehan@activcard.com.au

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ANNOUNCE: dc395x update [2.04]
  2003-05-13  9:05 ` ANNOUNCE dc395x update [2.03] Jamie Lenehan
  2003-05-13  9:43   ` Jamie Lenehan
  2003-05-13 10:48   ` Christoph Hellwig
@ 2003-05-19  9:31   ` Jamie Lenehan
  2 siblings, 0 replies; 10+ messages in thread
From: Jamie Lenehan @ 2003-05-19  9:31 UTC (permalink / raw)
  To: dc395x; +Cc: linux-scsi

Hi, a new version against 2.5.69-bk13 is now up at:

   http://twibble.org/dist/dc395x/

Both as seperate patches and as one large patch.
Changes in this version since 2.03:

 - 07-remove-cmd-queue.patch

   Removes queueing of commands which cannot be processed immediately
   due to a lack of scsi request blocks. The mid layer will take care
   of this queuing.


 - 08-remove-unused-vars.patch

   Remove variables which are not used so that it's easier to see
   which variables are actually used.
   

 - 09-names-functions.patch

   Removes the dc395x_ prefix from functions, lower cases all the
   function names and renames a few function to make it a bit clearer
   what they actually do.


 - 10-names-variables.patch

   Removes the p prefix from pointer variables, lower cases the
   variable names and removes the dc395x prefix from variables.


 - 11-struct-vars.patch

   Removes the use of structure name within structures. ie in an srb
   the variables srb_x were changed to just be x (if x is in the srb
   then surely it refers to something to do with the srb!)


 - 12-null-use.patch

   Remove casts to NULL and use NULL instead of 0 in places where
   pointers were being assigned zero.


 - 13-irq-fix-01.patch

   The old code used to go to a lot of effort to only register a
   single interrupt handler if there were multiple cards in the system
   on the same IRQ. I changed this with the module changes to register
   one irq handler per device found. But it was only ever
   unregistering the first irq handler dev_id. This is fixed here.

   I ripped out the remaining code in init_adapter which tries to find
   other adapters with the same id.

   Previously the driver would request_regio and then request_irq. If
   the request_irq failed it would exit, but wouldn't release the
   resources. This is fixed here.

   It's not possible now to register a driver instance without an
   IRQ. So I removed the check in driver shutdown for this situation.


 - 14-irq-fix-02.patch

   The existing interupt handler walks the static list of installed
   adapters to find one with a matching IRQ and with interupts
   pending.

   I ripped that out and made it just use the dev_id (which is the acb
   pointer) to directly check that specified adapter. This does have
   the disadvantage that the irq handler will need to be recalled for
   the other device to process it's irq requests. But I think the
   simplification is worth it.


 - 15-inline.patch

   There's a mixture of __inline__ and inline used. I've replaced the
   __inline__'s with just inline.


 - 16-version-2.04.patch

   Update version number/date.

-- 
 Jamie Lenehan              Work Phone: +61 3 9843 8817
 lenehan@twibble.org        Work Email: jamie.lenehan@activcard.com.au

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-05-19  9:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23  7:27 ANNOUNCE - DC315/DC395 driver for 2.5 Jamie Lenehan
2003-05-13  9:05 ` ANNOUNCE dc395x update [2.03] Jamie Lenehan
2003-05-13  9:43   ` Jamie Lenehan
2003-05-13  9:46     ` Jens Axboe
2003-05-13  9:56       ` Jamie Lenehan
2003-05-14  2:22         ` Jamie Lenehan
2003-05-13 10:09       ` [Dc395x] " Ali Akcaagac
2003-05-13 10:48   ` Christoph Hellwig
2003-05-13 10:56     ` Jamie Lenehan
2003-05-19  9:31   ` ANNOUNCE: dc395x update [2.04] Jamie Lenehan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox