linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A new driver is going to be released
@ 2011-11-03 22:40 Dmitry Tarnyagin
  2011-11-04  1:09 ` Larry Finger
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Dmitry Tarnyagin @ 2011-11-03 22:40 UTC (permalink / raw)
  To: linux-wireless

Hi,

I'm about to release cw1200 driver to the community (more or less
latest code is available here:
http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=shortlog;h=refs/heads/linux-3.0-ux500
as well).

Technical question: how is it usually done in terms of commit history?
Should I preserve the history and release all the changes in the
driver separately or should I squash everything to a single commit
or...?

Thank you and with best regards,
Dmitry

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

* Re: A new driver is going to be released
  2011-11-03 22:40 A new driver is going to be released Dmitry Tarnyagin
@ 2011-11-04  1:09 ` Larry Finger
  2011-11-04  2:01   ` Dan Williams
  2011-11-04  8:06 ` Kalle Valo
  2012-02-28  5:45 ` Anand Jain
  2 siblings, 1 reply; 12+ messages in thread
From: Larry Finger @ 2011-11-04  1:09 UTC (permalink / raw)
  To: Dmitry Tarnyagin; +Cc: linux-wireless

On 11/03/2011 05:40 PM, Dmitry Tarnyagin wrote:
> Hi,
>
> I'm about to release cw1200 driver to the community (more or less
> latest code is available here:
> http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=shortlog;h=refs/heads/linux-3.0-ux500
> as well).
>
> Technical question: how is it usually done in terms of commit history?
> Should I preserve the history and release all the changes in the
> driver separately or should I squash everything to a single commit
> or...?

The details of what it took to get your driver to this point are not going to be 
of much interest in the future. The "official" history starts with acceptance 
into the kernel. Two things to keep in mind: (1) the kernel source must compile 
at each step of the way to allow for bisection, thus any changes to Kconfig and 
Makefile must be in the last patch, and (2) each commit should be small enough 
that it is relatively easy to review.

As I do not know the complexity of the driver, it is a little difficult to make 
suggestions; however, one way to accomplish the above is to add each source file 
in a separate patch. The maintainer may submit the final version as a single 
commit, but that is their choice.

Your sending this mail to the wireless ML indicates that you plan to submit the 
driver to the drivers/net/wireless/ part of the source tree. As long as the 
driver employs mac80211, that is appropriate. The other option is 
drivers/staging/. Drivers for that section of the source tree usually are not 
held to standards as high as the wireless section.

Please be certain that all code submitted passes all tests cleanly including 
checkpatch, sparse including endianess, and smatch.

Good luck,

Larry

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

* Re: A new driver is going to be released
  2011-11-04  1:09 ` Larry Finger
@ 2011-11-04  2:01   ` Dan Williams
  2011-11-04  5:32     ` Dmitry Tarnyagin
  2011-11-04 14:54     ` Larry Finger
  0 siblings, 2 replies; 12+ messages in thread
From: Dan Williams @ 2011-11-04  2:01 UTC (permalink / raw)
  To: Larry Finger; +Cc: Dmitry Tarnyagin, linux-wireless

On Thu, 2011-11-03 at 20:09 -0500, Larry Finger wrote:
> On 11/03/2011 05:40 PM, Dmitry Tarnyagin wrote:
> > Hi,
> >
> > I'm about to release cw1200 driver to the community (more or less
> > latest code is available here:
> > http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=shortlog;h=refs/heads/linux-3.0-ux500
> > as well).
> >
> > Technical question: how is it usually done in terms of commit history?
> > Should I preserve the history and release all the changes in the
> > driver separately or should I squash everything to a single commit
> > or...?
> 
> The details of what it took to get your driver to this point are not going to be 
> of much interest in the future. The "official" history starts with acceptance 
> into the kernel. Two things to keep in mind: (1) the kernel source must compile 
> at each step of the way to allow for bisection, thus any changes to Kconfig and 
> Makefile must be in the last patch, and (2) each commit should be small enough 
> that it is relatively easy to review.
> 
> As I do not know the complexity of the driver, it is a little difficult to make 
> suggestions; however, one way to accomplish the above is to add each source file 
> in a separate patch. The maintainer may submit the final version as a single 
> commit, but that is their choice.
> 
> Your sending this mail to the wireless ML indicates that you plan to submit the 
> driver to the drivers/net/wireless/ part of the source tree. As long as the 
> driver employs mac80211, that is appropriate. The other option is 
> drivers/staging/. Drivers for that section of the source tree usually are not 
> held to standards as high as the wireless section.

It looks like it's mac80211-based and already in drivers/staging/
according to the git tree Dmitry pointed to.

Dan


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

* Re: A new driver is going to be released
  2011-11-04  2:01   ` Dan Williams
@ 2011-11-04  5:32     ` Dmitry Tarnyagin
  2011-11-04  8:12       ` Johannes Berg
  2011-11-04 14:54     ` Larry Finger
  1 sibling, 1 reply; 12+ messages in thread
From: Dmitry Tarnyagin @ 2011-11-04  5:32 UTC (permalink / raw)
  To: Dan Williams; +Cc: Larry Finger, linux-wireless

On Fri, Nov 4, 2011 at 3:01 AM, Dan Williams <dcbw@redhat.com> wrote:
> It looks like it's mac80211-based and already in drivers/staging/
> according to the git tree Dmitry pointed to.
>
Correct. But I would move it to drivers/net/wireless during submission.

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

* Re: A new driver is going to be released
  2011-11-03 22:40 A new driver is going to be released Dmitry Tarnyagin
  2011-11-04  1:09 ` Larry Finger
@ 2011-11-04  8:06 ` Kalle Valo
  2011-11-04  9:13   ` Vitaly Wool
  2012-02-28  5:45 ` Anand Jain
  2 siblings, 1 reply; 12+ messages in thread
From: Kalle Valo @ 2011-11-04  8:06 UTC (permalink / raw)
  To: Dmitry Tarnyagin; +Cc: linux-wireless

Dmitry Tarnyagin <abi.dmitryt@gmail.com> writes:

> I'm about to release cw1200 driver to the community

Nice!

> (more or less latest code is available here:
> http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=shortlog;h=refs/heads/linux-3.0-ux500
> as well).

I can't access it. I get "404 - Reading tree failed" when I try to
access the tree through gitweb:

http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=tree;h=%5Crefs/heads/linux-3.0-ux500;hb=%5Crefs/heads/linux-3.0-ux500

-- 
Kalle Valo

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

* Re: A new driver is going to be released
  2011-11-04  5:32     ` Dmitry Tarnyagin
@ 2011-11-04  8:12       ` Johannes Berg
  2011-11-04  9:10         ` Dmitry Tarnyagin
  0 siblings, 1 reply; 12+ messages in thread
From: Johannes Berg @ 2011-11-04  8:12 UTC (permalink / raw)
  To: Dmitry Tarnyagin; +Cc: Dan Williams, Larry Finger, linux-wireless

On Fri, 2011-11-04 at 06:32 +0100, Dmitry Tarnyagin wrote:
> On Fri, Nov 4, 2011 at 3:01 AM, Dan Williams <dcbw@redhat.com> wrote:
> > It looks like it's mac80211-based and already in drivers/staging/
> > according to the git tree Dmitry pointed to.
> >
> Correct. But I would move it to drivers/net/wireless during submission.

A word of caution: don't attempt that in its current state.

johannes


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

* Re: A new driver is going to be released
  2011-11-04  8:12       ` Johannes Berg
@ 2011-11-04  9:10         ` Dmitry Tarnyagin
  2011-11-04  9:20           ` Johannes Berg
  0 siblings, 1 reply; 12+ messages in thread
From: Dmitry Tarnyagin @ 2011-11-04  9:10 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Dan Williams, Larry Finger, linux-wireless

Hi Johannes,

>> Correct. But I would move it to drivers/net/wireless during submission.
>
> A word of caution: don't attempt that in its current state.
>
Thank you for caution. CONFIG_CW1200_USE_STE_EXTENSIONS,
CONFIG_WAKELOCK and HAS_PUT_TASK_STRUCT will be removed
of course, API will be aligned with 3.1. But I'm a bit curious what else could
prevent from submission to drivers/net/wireless? I do not see obvious problems
with code. Could you please give a short advise what should be fixed then if you
see problems?

Thank you and with best regards,
Dmitry

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

* Re: A new driver is going to be released
  2011-11-04  8:06 ` Kalle Valo
@ 2011-11-04  9:13   ` Vitaly Wool
  2011-11-04  9:18     ` Kalle Valo
  0 siblings, 1 reply; 12+ messages in thread
From: Vitaly Wool @ 2011-11-04  9:13 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Dmitry Tarnyagin, linux-wireless

Hi Kalle,

On Fri, Nov 4, 2011 at 9:06 AM, Kalle Valo <kvalo@adurom.com> wrote:
>> (more or less latest code is available here:
>> http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=shortlog;h=refs/heads/linux-3.0-ux500
>> as well).
>
> I can't access it. I get "404 - Reading tree failed" when I try to
> access the tree through gitweb:
>
> http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=tree;h=%5Crefs/heads/linux-3.0-ux500;hb=%5Crefs/heads/linux-3.0-ux500

I have a feeling that your mailer screws up the links because I can
access the tree using the one above but not the one that you get.

Thanks,
   Vitaly

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

* Re: A new driver is going to be released
  2011-11-04  9:13   ` Vitaly Wool
@ 2011-11-04  9:18     ` Kalle Valo
  0 siblings, 0 replies; 12+ messages in thread
From: Kalle Valo @ 2011-11-04  9:18 UTC (permalink / raw)
  To: Vitaly Wool; +Cc: Dmitry Tarnyagin, linux-wireless

Vitaly Wool <vitalywool@gmail.com> writes:

> On Fri, Nov 4, 2011 at 9:06 AM, Kalle Valo <kvalo@adurom.com> wrote:
>>> (more or less latest code is available here:
>>> http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=shortlog;h=refs/heads/linux-3.0-ux500
>>> as well).
>>
>> I can't access it. I get "404 - Reading tree failed" when I try to
>> access the tree through gitweb:
>>
>> http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=tree;h=%5Crefs/heads/linux-3.0-ux500;hb=%5Crefs/heads/linux-3.0-ux500
>
> I have a feeling that your mailer screws up the links because I can
> access the tree using the one above but not the one that you get.

That was it, there was one extra '\'. Should have figured out that
myself, thanks.

-- 
Kalle Valo

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

* Re: A new driver is going to be released
  2011-11-04  9:10         ` Dmitry Tarnyagin
@ 2011-11-04  9:20           ` Johannes Berg
  0 siblings, 0 replies; 12+ messages in thread
From: Johannes Berg @ 2011-11-04  9:20 UTC (permalink / raw)
  To: Dmitry Tarnyagin; +Cc: Dan Williams, Larry Finger, linux-wireless

On Fri, 2011-11-04 at 10:10 +0100, Dmitry Tarnyagin wrote:
> Hi Johannes,
> 
> >> Correct. But I would move it to drivers/net/wireless during submission.
> >
> > A word of caution: don't attempt that in its current state.
> >
> Thank you for caution. CONFIG_CW1200_USE_STE_EXTENSIONS,
> CONFIG_WAKELOCK and HAS_PUT_TASK_STRUCT will be removed
> of course, API will be aligned with 3.1. But I'm a bit curious what else could
> prevent from submission to drivers/net/wireless? I do not see obvious problems
> with code. Could you please give a short advise what should be fixed then if you
> see problems?

Well there is a ton of stuff like compat code too. Also, for example the
worker thread is pretty strange -- kthread_create() is essentially
deprecated, and having a thread to handle interrupts is weird to start
with.

johannes


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

* Re: A new driver is going to be released
  2011-11-04  2:01   ` Dan Williams
  2011-11-04  5:32     ` Dmitry Tarnyagin
@ 2011-11-04 14:54     ` Larry Finger
  1 sibling, 0 replies; 12+ messages in thread
From: Larry Finger @ 2011-11-04 14:54 UTC (permalink / raw)
  To: Dan Williams; +Cc: Dmitry Tarnyagin, linux-wireless

On 11/03/2011 09:01 PM, Dan Williams wrote:

> It looks like it's mac80211-based and already in drivers/staging/
> according to the git tree Dmitry pointed to.

A staging driver in a private tree is not the same as one in GregKH's staging 
tree. As this cw1200 driver has been seen by a limited number of developers, it 
needs to be submitted to staging in mainline before an attempt is made to 
convert it to the regular tree.

Larry


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

* Re: A new driver is going to be released
  2011-11-03 22:40 A new driver is going to be released Dmitry Tarnyagin
  2011-11-04  1:09 ` Larry Finger
  2011-11-04  8:06 ` Kalle Valo
@ 2012-02-28  5:45 ` Anand Jain
  2 siblings, 0 replies; 12+ messages in thread
From: Anand Jain @ 2012-02-28  5:45 UTC (permalink / raw)
  To: linux-wireless

Dmitry Tarnyagin <abi.dmitryt@...> writes:

> 
> Hi,
> 
> I'm about to release cw1200 driver to the community (more or less
> latest code is available here:
>
http://www.igloocommunity.org/gitweb/?p=kernel/igloo-kernel.git;a=shortlog;h=refs/heads/linux-3.0-ux500
> as well).
> 
> Technical question: how is it usually done in terms of commit history?
> Should I preserve the history and release all the changes in the
> driver separately or should I squash everything to a single commit
> or...?
> 
> Thank you and with best regards,
> Dmitry
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@...
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

Hi,
 we are exploring the cw1200 driver and found in TODO that IBSS is not
implemented. So can you guide us if we can implement/enhance the same for
Snowball board in ICS code.

thanks
Anand



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

end of thread, other threads:[~2012-02-28  6:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-03 22:40 A new driver is going to be released Dmitry Tarnyagin
2011-11-04  1:09 ` Larry Finger
2011-11-04  2:01   ` Dan Williams
2011-11-04  5:32     ` Dmitry Tarnyagin
2011-11-04  8:12       ` Johannes Berg
2011-11-04  9:10         ` Dmitry Tarnyagin
2011-11-04  9:20           ` Johannes Berg
2011-11-04 14:54     ` Larry Finger
2011-11-04  8:06 ` Kalle Valo
2011-11-04  9:13   ` Vitaly Wool
2011-11-04  9:18     ` Kalle Valo
2012-02-28  5:45 ` Anand Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).