Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-11-17 Thread Linus Walleij
On Sat, Nov 17, 2012 at 4:58 AM, Christopher Heiny wrote: > rmi.h provides public definitions required by the RMI bus implementation and > modules that interact with it. > > debugfs and sysfs attributes are documented in files in > Documentation/ABI/testing. There's two files, one for debugfs

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-11-17 Thread Linus Walleij
On Sat, Nov 17, 2012 at 4:58 AM, Christopher Heiny che...@synaptics.com wrote: rmi.h provides public definitions required by the RMI bus implementation and modules that interact with it. debugfs and sysfs attributes are documented in files in Documentation/ABI/testing. There's two files,

[RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-11-16 Thread Christopher Heiny
rmi.h provides public definitions required by the RMI bus implementation and modules that interact with it. debugfs and sysfs attributes are documented in files in Documentation/ABI/testing. There's two files, one for debugfs and one for sysfs. Signed-off-by: Christopher Heiny Cc: Dmitry

[RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-11-16 Thread Christopher Heiny
rmi.h provides public definitions required by the RMI bus implementation and modules that interact with it. debugfs and sysfs attributes are documented in files in Documentation/ABI/testing. There's two files, one for debugfs and one for sysfs. Signed-off-by: Christopher Heiny

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-24 Thread Mark Brown
On Tue, Oct 23, 2012 at 03:10:20PM -0700, Christopher Heiny wrote: > On 10/11/2012 10:16 PM, Mark Brown wrote: > >On Thu, Oct 11, 2012 at 03:56:22AM +, Christopher Heiny wrote: > >Fix your mailer to word wrap within paragraphs. > Sorry - I was on the road and had to use a web interface. It

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-24 Thread Mark Brown
On Tue, Oct 23, 2012 at 03:10:20PM -0700, Christopher Heiny wrote: On 10/11/2012 10:16 PM, Mark Brown wrote: On Thu, Oct 11, 2012 at 03:56:22AM +, Christopher Heiny wrote: Fix your mailer to word wrap within paragraphs. Sorry - I was on the road and had to use a web interface. It looked

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/15/2012 11:26 PM, Mark Brown wrote: On Thu, Oct 11, 2012 at 05:32:59PM +0200, Linus Walleij wrote: On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny wrote: In previous patch submissions, we always used these warning functions. But in the feedback on those patches, we were asked to

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/11/2012 08:32 AM, Linus Walleij wrote: On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny wrote: Linus Walleij wrote: But please use arithmetic operators (I think I said this on the last review): dest[0] = src & 0xFF; dest[1] = src >> 8; Doing it the above way makes artithmetic look

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/11/2012 01:24 AM, Dmitry Torokhov wrote: On Thu, Oct 11, 2012 at 03:41:41AM +, Christopher Heiny wrote: >Linus Walleij wrote: > >On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny wrote: > > > > >+#ifdef CONFIG_RMI4_DEBUG > > >+/** > > >+ * Utility routine to handle writes to

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Dmitry Torokhov
On Tuesday, October 23, 2012 03:39:00 PM Christopher Heiny wrote: > On 10/11/2012 01:20 AM, Dmitry Torokhov wrote: > > On Fri, Oct 05, 2012 at 09:09:58PM -0700, Christopher Heiny wrote: > >> + > >> + int (*write_block)(struct rmi_phys_device *phys, u16 addr, u8 *buf, > >> +

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/11/2012 01:20 AM, Dmitry Torokhov wrote: On Fri, Oct 05, 2012 at 09:09:58PM -0700, Christopher Heiny wrote: + + int (*write_block)(struct rmi_phys_device *phys, u16 addr, u8 *buf, + int len); + int (*read_block)(struct rmi_phys_device *phys, u16 addr,

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/11/2012 10:16 PM, Mark Brown wrote: On Thu, Oct 11, 2012 at 03:56:22AM +, Christopher Heiny wrote: Fix your mailer to word wrap within paragraphs. Sorry - I was on the road and had to use a web interface. It looked OK during composition. Is this better? >If this feature is a

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/11/2012 10:16 PM, Mark Brown wrote: On Thu, Oct 11, 2012 at 03:56:22AM +, Christopher Heiny wrote: Fix your mailer to word wrap within paragraphs. Sorry - I was on the road and had to use a web interface. It looked OK during composition. Is this better? If this feature is a

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/11/2012 01:20 AM, Dmitry Torokhov wrote: On Fri, Oct 05, 2012 at 09:09:58PM -0700, Christopher Heiny wrote: + + int (*write_block)(struct rmi_phys_device *phys, u16 addr, u8 *buf, + int len); + int (*read_block)(struct rmi_phys_device *phys, u16 addr,

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Dmitry Torokhov
On Tuesday, October 23, 2012 03:39:00 PM Christopher Heiny wrote: On 10/11/2012 01:20 AM, Dmitry Torokhov wrote: On Fri, Oct 05, 2012 at 09:09:58PM -0700, Christopher Heiny wrote: + + int (*write_block)(struct rmi_phys_device *phys, u16 addr, u8 *buf, + int len); +

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/11/2012 01:24 AM, Dmitry Torokhov wrote: On Thu, Oct 11, 2012 at 03:41:41AM +, Christopher Heiny wrote: Linus Walleij wrote: On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heinyche...@synaptics.com wrote: +#ifdef CONFIG_RMI4_DEBUG +/** + * Utility routine to handle writes to

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/11/2012 08:32 AM, Linus Walleij wrote: On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny che...@synaptics.com wrote: Linus Walleij wrote: But please use arithmetic operators (I think I said this on the last review): dest[0] = src 0xFF; dest[1] = src 8; Doing it the above way makes

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-23 Thread Christopher Heiny
On 10/15/2012 11:26 PM, Mark Brown wrote: On Thu, Oct 11, 2012 at 05:32:59PM +0200, Linus Walleij wrote: On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny che...@synaptics.com wrote: In previous patch submissions, we always used these warning functions. But in the feedback on those patches,

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-16 Thread Mark Brown
On Thu, Oct 11, 2012 at 05:32:59PM +0200, Linus Walleij wrote: > On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny > wrote: > > In previous patch submissions, we always used these warning functions. > > But in the feedback on those patches, we were asked to just make > > sysfs show/store NULL

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-16 Thread Mark Brown
On Thu, Oct 11, 2012 at 05:32:59PM +0200, Linus Walleij wrote: On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny che...@synaptics.com wrote: In previous patch submissions, we always used these warning functions. But in the feedback on those patches, we were asked to just make sysfs

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Mark Brown
On Thu, Oct 11, 2012 at 03:56:22AM +, Christopher Heiny wrote: Fix your mailer to word wrap within paragraphs. > If this feature is a deal-breaker, we can take it out. In the absence > of a generic GPIO implementation for CS, though, I'd much rather leave > it in. Once generic GPIO CS

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Linus Walleij
On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny wrote: > Linus Walleij wrote: >> But please use arithmetic operators (I think I said this on the last >> review): >> >> dest[0] = src & 0xFF; >> dest[1] = src >> 8; >> >> Doing it the above way makes artithmetic look like maths, and it isn't. >>

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Linus Walleij
On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny wrote: > Linus Walleij wrote: >> On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny >> wrote: >> > + chargerinput ... (rw) User space programs can use this to tell >> > the + sensor that the system is plugged into an

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Dmitry Torokhov
On Thu, Oct 11, 2012 at 03:41:41AM +, Christopher Heiny wrote: > Linus Walleij wrote: > > On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny > > wrote: > > > > > +#ifdef CONFIG_RMI4_DEBUG > > > +/** > > > + * Utility routine to handle writes to read-only attributes. Hopefully > > > + * this

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Dmitry Torokhov
On Fri, Oct 05, 2012 at 09:09:58PM -0700, Christopher Heiny wrote: > + > + int (*write_block)(struct rmi_phys_device *phys, u16 addr, u8 *buf, > +int len); > + int (*read_block)(struct rmi_phys_device *phys, u16 addr, u8 *buf, > + int len); > +

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Dmitry Torokhov
On Fri, Oct 05, 2012 at 09:09:58PM -0700, Christopher Heiny wrote: + + int (*write_block)(struct rmi_phys_device *phys, u16 addr, u8 *buf, +int len); + int (*read_block)(struct rmi_phys_device *phys, u16 addr, u8 *buf, + int len); + If

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Dmitry Torokhov
On Thu, Oct 11, 2012 at 03:41:41AM +, Christopher Heiny wrote: Linus Walleij wrote: On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny che...@synaptics.com wrote: +#ifdef CONFIG_RMI4_DEBUG +/** + * Utility routine to handle writes to read-only attributes. Hopefully + *

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Linus Walleij
On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny che...@synaptics.com wrote: Linus Walleij wrote: On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny che...@synaptics.com wrote: + chargerinput ... (rw) User space programs can use this to tell the + sensor that

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Linus Walleij
On Thu, Oct 11, 2012 at 5:41 AM, Christopher Heiny che...@synaptics.com wrote: Linus Walleij wrote: But please use arithmetic operators (I think I said this on the last review): dest[0] = src 0xFF; dest[1] = src 8; Doing it the above way makes artithmetic look like maths, and it isn't.

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-11 Thread Mark Brown
On Thu, Oct 11, 2012 at 03:56:22AM +, Christopher Heiny wrote: Fix your mailer to word wrap within paragraphs. If this feature is a deal-breaker, we can take it out. In the absence of a generic GPIO implementation for CS, though, I'd much rather leave it in. Once generic GPIO CS

RE: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-10 Thread Christopher Heiny
Mark Brown wrote: > On Tue, Oct 09, 2012 at 09:43:13AM +0200, Linus Walleij wrote: > > On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny > > wrote: > > > + * @cs_assert - For systems where the SPI subsystem does not control > > > the CS/SSB + * line, or where such control is broken, you can

RE: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-10 Thread Christopher Heiny
Linus Walleij wrote: > On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny > wrote: > > As requested in the feedback from the previous patch, we've documented the > > debugfs and sysfs attributes in files in > > Documentation/ABI/testing. There's two files, one for debugfs and one > > for sysfs.

RE: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-10 Thread Christopher Heiny
Linus Walleij wrote: On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny che...@synaptics.com wrote: As requested in the feedback from the previous patch, we've documented the debugfs and sysfs attributes in files in Documentation/ABI/testing. There's two files, one for debugfs and one

RE: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-10 Thread Christopher Heiny
Mark Brown wrote: On Tue, Oct 09, 2012 at 09:43:13AM +0200, Linus Walleij wrote: On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny che...@synaptics.com wrote: + * @cs_assert - For systems where the SPI subsystem does not control the CS/SSB + * line, or where such control is broken, you

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-09 Thread Mark Brown
On Tue, Oct 09, 2012 at 09:43:13AM +0200, Linus Walleij wrote: > On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny > wrote: > > + * @cs_assert - For systems where the SPI subsystem does not control the > > CS/SSB > > + * line, or where such control is broken, you can provide a custom routine

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-09 Thread Linus Walleij
On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny wrote: > As requested in the feedback from the previous patch, we've documented the > debugfs and sysfs attributes in files in Documentation/ABI/testing. There's > two files, one for debugfs and one for sysfs. This is a massive improvement!

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-09 Thread Linus Walleij
On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny che...@synaptics.com wrote: As requested in the feedback from the previous patch, we've documented the debugfs and sysfs attributes in files in Documentation/ABI/testing. There's two files, one for debugfs and one for sysfs. This is a massive

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-09 Thread Mark Brown
On Tue, Oct 09, 2012 at 09:43:13AM +0200, Linus Walleij wrote: On Sat, Oct 6, 2012 at 6:09 AM, Christopher Heiny che...@synaptics.com wrote: + * @cs_assert - For systems where the SPI subsystem does not control the CS/SSB + * line, or where such control is broken, you can provide a

[RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-05 Thread Christopher Heiny
As requested in the feedback from the previous patch, we've documented the debugfs and sysfs attributes in files in Documentation/ABI/testing. There's two files, one for debugfs and one for sysfs. Signed-off-by: Christopher Heiny Cc: Dmitry Torokhov Cc: Linus Walleij Cc: Naveen Kumar

[RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-05 Thread Christopher Heiny
As requested in the feedback from the previous patch, we've documented the debugfs and sysfs attributes in files in Documentation/ABI/testing. There's two files, one for debugfs and one for sysfs. Signed-off-by: Christopher Heiny che...@synaptics.com Cc: Dmitry Torokhov