Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

From: jeffrey.lin
Date: Wed May 11 2016 - 12:04:21 EST


Hi Dmitry:

I've made a mistake as touch points data over "MAX_PKG_SIZE".This mistake will result in memory overwrite, so that I update a new patch to upstream.
New patch I assign a new definition "MAX_RD_PKG_LEN" for maxinum I2C read command to prevent touch points data package over I2C bus buffer size. If I2C read command package over than MAX_RD_PKG_LEN, Iâll split this read command two or more to make sure all data are read.

Please review my new patch and give me some comments. Many thanks.