RE: [PATCH v18 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2015-01-18 Thread Dudley Du
ATCH v18 09/12] input: cyapa: add gen5 trackpad device firmware > update function support > > On Fri, Jan 16, 2015 at 02:34:12PM +0800, Dudley Du wrote: > > +/* APP_INTEGRITY row is always the last row block, > > + * and the row id must be 0x01ff */ > > +row_num = get_unali

Re: [PATCH v18 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2015-01-18 Thread Dmitry Torokhov
On Fri, Jan 16, 2015 at 02:34:12PM +0800, Dudley Du wrote: > + /* APP_INTEGRITY row is always the last row block, > + * and the row id must be 0x01ff */ > + row_num = get_unaligned_be16( > + >records[flash_records_count - 1].row_number); > + if

Re: [PATCH v18 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2015-01-18 Thread Dmitry Torokhov
On Fri, Jan 16, 2015 at 02:34:12PM +0800, Dudley Du wrote: + /* APP_INTEGRITY row is always the last row block, + * and the row id must be 0x01ff */ + row_num = get_unaligned_be16( + image-records[flash_records_count - 1].row_number); + if

RE: [PATCH v18 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2015-01-18 Thread Dudley Du
: add gen5 trackpad device firmware update function support On Fri, Jan 16, 2015 at 02:34:12PM +0800, Dudley Du wrote: +/* APP_INTEGRITY row is always the last row block, + * and the row id must be 0x01ff */ +row_num = get_unaligned_be16( +image-records[flash_records_count - 1].row_number

[PATCH v18 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2015-01-15 Thread Dudley Du
Add firmware image update function supported for gen5 trackpad device, it can be used through sysfs update_fw interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/Kconfig | 1 + drivers/input/mouse/cyapa_gen5.c | 391

[PATCH v18 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2015-01-15 Thread Dudley Du
Add firmware image update function supported for gen5 trackpad device, it can be used through sysfs update_fw interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du d...@cypress.com --- drivers/input/mouse/Kconfig | 1 + drivers/input/mouse/cyapa_gen5.c | 391