[Top] [All Lists]

Re: patch submission question

To: Don Fry <brazilnut@xxxxxxxxxx>
Subject: Re: patch submission question
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Fri, 21 May 2004 16:45:37 -0400
Cc: Netdev <netdev@xxxxxxxxxxx>
In-reply-to: <200405201543.i4KFhHk08317@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <200405201543.i4KFhHk08317@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510
Don Fry wrote:

I have four one-line patches for the pcnet32 driver.  Should I send them
as one patch, or four one-line patches?

1) Change PCnet/FAST III 79C976 to PCnet/PRO 79C976.
2) In pcnet32_interrupt change (delta >= TX_RING_SIZE) to  (... > ...)
3) add 'static' to pcnet32_get_regs and pcnet32_get_regs_len.
    (prototype has static, routine does not have static).
4) reading bcr34 hangs the system with some variants of the chip in

Sorry I didn't get back to you before you actually sent the patches. Life is what it is... Also, I hope you don't mind me adding a CC to netdev@xxxxxxxxxxxx Even for questions like the above, I _really_ encourage you to CC the mailing list, that way all knowledge (including my preferences) are shared and archived. This is another part of open development.

The main point is to separate things out into logical changes. For practical purposes, this usually means I will often lump several minor changes into a single patch. It is up to you, the maintainer, to decide where to draw the line.

In your above example, I would send #2 and #4 as separate patches, and combine #1 and #3 into a single "trivial changes" patch.


<Prev in Thread] Current Thread [Next in Thread>
  • Re: patch submission question, Jeff Garzik <=