Re: [PATCH v3] ims-pcu: Add commands supported by the new version of the FW

2014-01-22 Thread Andrey Smirnov
Sorry for the noise, had an old copy of the file in my out of the tree build set-up when I was doing the testing. I will post updated version shortly. Thanks, On Wed, Jan 22, 2014 at 8:47 AM, Dmitry Torokhov wrote: > On Wed, Jan 22, 2014 at 05:20:25AM -0800, Andrey Smirnov wrote: >> +static int

Re: [PATCH v3] ims-pcu: Add commands supported by the new version of the FW

2014-01-22 Thread Dmitry Torokhov
On Wed, Jan 22, 2014 at 05:20:25AM -0800, Andrey Smirnov wrote: > +static int ims_pcu_write_ofn_config(struct ims_pcu *pcu, u8 addr, u8 data) > +{ > + u8 buffer[] = { addr, data }; > + int error; > + u16 result; > + > + error = ims_pcu_execute_command(pcu, OFN_SET_CONFIG, > +

[PATCH v3] ims-pcu: Add commands supported by the new version of the FW

2014-01-22 Thread Andrey Smirnov
New version of the PCU firmware supports two new commands: - IMS_PCU_CMD_OFN_SET_CONFIG which allows to write data to the registers of one finger navigation(OFN) chip present on the device - IMS_PCU_CMD_OFN_GET_CONFIG which allows to read data form the registers of said chip. This commit

[PATCH v3] ims-pcu: Add commands supported by the new version of the FW

2014-01-22 Thread Andrey Smirnov
New version of the PCU firmware supports two new commands: - IMS_PCU_CMD_OFN_SET_CONFIG which allows to write data to the registers of one finger navigation(OFN) chip present on the device - IMS_PCU_CMD_OFN_GET_CONFIG which allows to read data form the registers of said chip. This commit

Re: [PATCH v3] ims-pcu: Add commands supported by the new version of the FW

2014-01-22 Thread Dmitry Torokhov
On Wed, Jan 22, 2014 at 05:20:25AM -0800, Andrey Smirnov wrote: +static int ims_pcu_write_ofn_config(struct ims_pcu *pcu, u8 addr, u8 data) +{ + u8 buffer[] = { addr, data }; + int error; + u16 result; + + error = ims_pcu_execute_command(pcu, OFN_SET_CONFIG, +

Re: [PATCH v3] ims-pcu: Add commands supported by the new version of the FW

2014-01-22 Thread Andrey Smirnov
Sorry for the noise, had an old copy of the file in my out of the tree build set-up when I was doing the testing. I will post updated version shortly. Thanks, On Wed, Jan 22, 2014 at 8:47 AM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On Wed, Jan 22, 2014 at 05:20:25AM -0800, Andrey