mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] HID: roccat: Achieve userspace notification on sysfs attribute creation
@ 2010-11-26 19:57 Stefan Achatz
  2010-12-09 13:30 ` Jiri Kosina
  2010-12-09 13:44 ` Aw: " Stefan Achatz
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Achatz @ 2010-11-26 19:57 UTC (permalink / raw)
  To: Randy Dunlap, Greg Kroah-Hartman, Jiri Kosina, Stefan Achatz,
	linux-doc, linux-kernel, linux-input, netdev

Adding sysfs attributes to an already created device raises no userland
notification.

Instead of fiddling around in the depths of busses and devices I reuse the
event char device (module hid-roccat). This device gets now created with
a hardware specific class that contains the device attributes.

For this I had to introduce support for binary attributes into struct class.

This is afaik the easiest way to achieve said goal. If these patches get
applied I can upload a new version of my userland tools that is compatible
with old and new drivers in an instant.

As there are quite a couple of unapplied patches flying around, I decided
to base these patches on 2.6.37-rc2 and designed them to contain everything
pending and so make all unapplied patches obsolete.


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

* Re: [PATCH 0/5] HID: roccat: Achieve userspace notification on sysfs attribute creation
  2010-11-26 19:57 [PATCH 0/5] HID: roccat: Achieve userspace notification on sysfs attribute creation Stefan Achatz
@ 2010-12-09 13:30 ` Jiri Kosina
  2010-12-09 13:44 ` Aw: " Stefan Achatz
  1 sibling, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2010-12-09 13:30 UTC (permalink / raw)
  To: Stefan Achatz
  Cc: Randy Dunlap, Greg Kroah-Hartman, linux-doc, linux-kernel,
	linux-input, netdev

On Fri, 26 Nov 2010, Stefan Achatz wrote:

> Adding sysfs attributes to an already created device raises no userland
> notification.
> 
> Instead of fiddling around in the depths of busses and devices I reuse the
> event char device (module hid-roccat). This device gets now created with
> a hardware specific class that contains the device attributes.

Hi Stefan,

I have applied the series, and removed the #pragma pack ugliness. Thanks,

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

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

* Aw: Re: [PATCH 0/5] HID: roccat: Achieve userspace notification on sysfs attribute creation
  2010-11-26 19:57 [PATCH 0/5] HID: roccat: Achieve userspace notification on sysfs attribute creation Stefan Achatz
  2010-12-09 13:30 ` Jiri Kosina
@ 2010-12-09 13:44 ` Stefan Achatz
  2010-12-09 13:52   ` Jiri Kosina
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Achatz @ 2010-12-09 13:44 UTC (permalink / raw)
  To: jkosina, erazor_de
  Cc: rdunlap, gregkh, linux-doc, linux-kernel, linux-input, netdev

 


----- Original Nachricht ----
Von:     Jiri Kosina <jkosina@suse.cz>
An:      Stefan Achatz <erazor_de@users.sourceforge.net>
Datum:   09.12.2010 14:30
Betreff: Re: [PATCH 0/5] HID: roccat: Achieve userspace notification on sysfs
 attribute creation

> On Fri, 26 Nov 2010, Stefan Achatz wrote:
> 
> > Adding sysfs attributes to an already created device raises no userland
> > notification.
> > 
> > Instead of fiddling around in the depths of busses and devices I reuse
> the
> > event char device (module hid-roccat). This device gets now created with
> > a hardware specific class that contains the device attributes.
> 
> Hi Stefan,
> 
> I have applied the series, and removed the #pragma pack ugliness. Thanks,

Hello Jiri,
Using my patch replacing the #pragma pack with the __packed macro would have saved you some time:
https://lkml.org/lkml/2010/11/27/14

Just for the future: Whats better using the verbose version __attribute__ ((__packed__)) or the macro
__packed as I did?

Thanks, Stefan

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

* Re: Aw: Re: [PATCH 0/5] HID: roccat: Achieve userspace notification on sysfs attribute creation
  2010-12-09 13:44 ` Aw: " Stefan Achatz
@ 2010-12-09 13:52   ` Jiri Kosina
  0 siblings, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2010-12-09 13:52 UTC (permalink / raw)
  To: Stefan Achatz
  Cc: rdunlap, gregkh, linux-doc, linux-kernel, linux-input, netdev

On Thu, 9 Dec 2010, Stefan Achatz wrote:

> > I have applied the series, and removed the #pragma pack ugliness. Thanks,
> 

> Hello Jiri,
> Using my patch replacing the #pragma pack with the __packed macro would 
> have saved you some time: https://lkml.org/lkml/2010/11/27/14

Ah, missed that. Never mind.

> Just for the future: Whats better using the verbose version 
> __attribute__ ((__packed__)) or the macro __packed as I did?

I don't think I really care deeply here.

For some rationale why these shortcuts exist, please see commit 
82ddcb0405704.

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

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

end of thread, other threads:[~2010-12-09 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-26 19:57 [PATCH 0/5] HID: roccat: Achieve userspace notification on sysfs attribute creation Stefan Achatz
2010-12-09 13:30 ` Jiri Kosina
2010-12-09 13:44 ` Aw: " Stefan Achatz
2010-12-09 13:52   ` Jiri Kosina

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

all inboxes | Powered by JetHome®