All of lore.kernel.org
 help / color / mirror / Atom feed
* nl802154 enum misspelled, just send patch?
@ 2015-06-10  8:24 Christoffer Holmstedt
  2015-06-10  8:30 ` Varka Bhadram
  2015-06-10  8:44 ` Alexander Aring
  0 siblings, 2 replies; 4+ messages in thread
From: Christoffer Holmstedt @ 2015-06-10  8:24 UTC (permalink / raw)
  To: linux-wpan

Hi
While working on the CCA improvements to wpan-tools I noticed that one of the
enums has a value misspelled. As the header is not in UAPI yet I suggest we
fix this.

NL802154_CCA_UWB_MULTIPEXED is missing an l (ell) in multiplexed.

The header file is included in wpan-tools repository and available in the
kernel. Should I just send a patch for bluetooth-next and then the new header
file is copied over to wpan-tools repository or what is the procedure here?

I assume normal procedure for more "stable" user-space software is that the
kernel header file(s) should not be included in the user-space tool but instead
included and linked against the kernel headers (from running system or similiar
source). At the moment the nl802154 header is included in wpan-tools to make it
easier to build while developing.

So, should I send a patch for both bluetooth-next and wpan-tools or just
bluetooth-next?

Regards
-- 
Christoffer Holmstedt

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

* Re: nl802154 enum misspelled, just send patch?
  2015-06-10  8:24 nl802154 enum misspelled, just send patch? Christoffer Holmstedt
@ 2015-06-10  8:30 ` Varka Bhadram
  2015-06-10  8:41   ` Christoffer Holmstedt
  2015-06-10  8:44 ` Alexander Aring
  1 sibling, 1 reply; 4+ messages in thread
From: Varka Bhadram @ 2015-06-10  8:30 UTC (permalink / raw)
  To: Christoffer Holmstedt, linux-wpan

On 06/10/2015 01:54 PM, Christoffer Holmstedt wrote:

> Hi
> While working on the CCA improvements to wpan-tools I noticed that one of the
> enums has a value misspelled. As the header is not in UAPI yet I suggest we
> fix this.
>
> NL802154_CCA_UWB_MULTIPEXED is missing an l (ell) in multiplexed.
>
> The header file is included in wpan-tools repository and available in the
> kernel. Should I just send a patch for bluetooth-next and then the new header
> file is copied over to wpan-tools repository or what is the procedure here?
>
> I assume normal procedure for more "stable" user-space software is that the
> kernel header file(s) should not be included in the user-space tool but instead
> included and linked against the kernel headers (from running system or similiar
> source). At the moment the nl802154 header is included in wpan-tools to make it
> easier to build while developing.
>
> So, should I send a patch for both bluetooth-next and wpan-tools or just
> bluetooth-next?

Send patch for both trees .  :-)

-- 
Varka Bhadram


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

* Re: nl802154 enum misspelled, just send patch?
  2015-06-10  8:30 ` Varka Bhadram
@ 2015-06-10  8:41   ` Christoffer Holmstedt
  0 siblings, 0 replies; 4+ messages in thread
From: Christoffer Holmstedt @ 2015-06-10  8:41 UTC (permalink / raw)
  To: Varka Bhadram; +Cc: linux-wpan

On Wed, Jun 10, 2015 at 02:00:24PM +0530, Varka Bhadram wrote:
> On 06/10/2015 01:54 PM, Christoffer Holmstedt wrote:
> 
> >Hi
> >While working on the CCA improvements to wpan-tools I noticed that one of the
> >enums has a value misspelled. As the header is not in UAPI yet I suggest we
> >fix this.
> >
> >NL802154_CCA_UWB_MULTIPEXED is missing an l (ell) in multiplexed.
> >
> >The header file is included in wpan-tools repository and available in the
> >kernel. Should I just send a patch for bluetooth-next and then the new header
> >file is copied over to wpan-tools repository or what is the procedure here?
> >
> >I assume normal procedure for more "stable" user-space software is that the
> >kernel header file(s) should not be included in the user-space tool but instead
> >included and linked against the kernel headers (from running system or similiar
> >source). At the moment the nl802154 header is included in wpan-tools to make it
> >easier to build while developing.
> >
> >So, should I send a patch for both bluetooth-next and wpan-tools or just
> >bluetooth-next?
> 
> Send patch for both trees .  :-)
> 
> -- 
> Varka Bhadram

Will do.

-- 
Christoffer Holmstedt

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

* Re: nl802154 enum misspelled, just send patch?
  2015-06-10  8:24 nl802154 enum misspelled, just send patch? Christoffer Holmstedt
  2015-06-10  8:30 ` Varka Bhadram
@ 2015-06-10  8:44 ` Alexander Aring
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Aring @ 2015-06-10  8:44 UTC (permalink / raw)
  To: Christoffer Holmstedt; +Cc: linux-wpan

On Wed, Jun 10, 2015 at 10:24:49AM +0200, Christoffer Holmstedt wrote:
> Hi
> While working on the CCA improvements to wpan-tools I noticed that one of the
> enums has a value misspelled. As the header is not in UAPI yet I suggest we
> fix this.
> 
> NL802154_CCA_UWB_MULTIPEXED is missing an l (ell) in multiplexed.
> 
> The header file is included in wpan-tools repository and available in the
> kernel. Should I just send a patch for bluetooth-next and then the new header
> file is copied over to wpan-tools repository or what is the procedure here?
> 

First send patches for kernel, when Marcel has applied the change. Then
you can send another patch for wpan-tools for updating the nl802154 header.

> I assume normal procedure for more "stable" user-space software is that the
> kernel header file(s) should not be included in the user-space tool but instead
> included and linked against the kernel headers (from running system or similiar
> source). At the moment the nl802154 header is included in wpan-tools to make it
> easier to build while developing.
> 

In this case, if we would change the uapi header then compiling will
fail, because the enum is different. In this case it's safer to put the
header in wpan-tools.

If the kernel get a enum value which is higher than the own nl802154
capabilities, this should be handled by nl802154 by checking on ATTR_MAX
value.

> So, should I send a patch for both bluetooth-next and wpan-tools or just
> bluetooth-next?
> 

API changes are always bad, but this doesn't change the API. It's just a
compile failure when we change it. So it's okay to fix that now. 

So first send patches to bluetooth-next then wpan-tools with updating
nl802154 header and also updating your cca print functionality. Maybe
mention the bluetooth-next commit id in the commit msg of wpan-tools patch.

- Alex

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

end of thread, other threads:[~2015-06-10  8:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-10  8:24 nl802154 enum misspelled, just send patch? Christoffer Holmstedt
2015-06-10  8:30 ` Varka Bhadram
2015-06-10  8:41   ` Christoffer Holmstedt
2015-06-10  8:44 ` Alexander Aring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.