Skip to contentSkip to conversation

Input: Add driver for GOODiX GTx5 series touchsereen

PATCH Bastien Nocera 2 participants 2 messages Jun 22, 2017 – Jun 23, 2017 1 message not in the archive HID

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hey,

Very shallow review. There are tons of typos in the code and comments, including in the subject line for this patch ("touchsereen"), including "godix", "excuted", etc. Please run a spell-check over the whole patch, and have somebody review all the text.

Quoted 2 lines · Wang Yafei

This driver is for GOODiX GTx5 series touchscreen controllers such as GT8589, GT7589. This driver designed with hierarchial

"hierarchical"

Quoted 5 lines

structure,
for that can be modified to support subsequent controllers easily. Some zones of the touchscreen can be set to buttons(according to the hardware). That is why it handles button and multitouch events.

Quoted 9 lines

A brief description of driver structure
- Core Layer: This layer responsible for basic input events report, GPIO pinctrl, Interrupt, Power resources manager and submodules
manager.
- Hardware Layer: This layer responsible for controllers initialization,
irq handle as well as bus read/write.
- External Module Layer: This layer used for support more features such as firmware update, debug tools and gesture wakeup.

I think that the driver should be split up in multiple patches. The first one should handle the basics for the device (I'd say parity with the driver for the older models would be fine), then add the various features on top (firmware loading, gesture wakeup, etc.) as those features probably need more thought as to what the external APIs should be.

Quoted 7 lines

---
Goodix driver that the kernel already have, is for our gt9xx series touchscreen controllers. This new driver is for out new generation touchscreen controllers, consider this two generations are very different with each other. We wrote a new driver instead of make a patch on the old driver.

You'll probably need a preparatory patch which makes changes to the description and KConfig for the old driver, spelling out exactly what the old driver supports, maybe renaming it.

You'll also need to decide whether the company is called GOODiX, GOODIX or Goodix, whether the new devices are "sunrise", "GTx5" or something else.

Quoted 6 lines

Changes in v2:
- replace touchscreen properties according to the description in Documentation/devicetree/bindings/input/touchscreen/touchscreen.tx
t
- Droped all compat stuff for older kernels
- Removed Android stuff (EARLY_SUSPEND, CONFIG_FB)

There's still an ifdef with "COMPAT" in the name, not sure compat with what.

Quoted 5 lines

- Use device_property_read_* get device properties
- use get-unaligned_*() API
- Use dev_err() dev_dbg() for logging
- remove pinctrl functions
- remove some unused functions

Cheers

#2 lore raw

On Thu, Jun 22, 2017 at 06:32:28PM +0200, Bastien Nocera wrote:

Hi Bastien,

Thanks for your advises.

Quoted 28 lines

Hey,

Very shallow review. There are tons of typos in the code and comments, including in the subject line for this patch ("touchsereen"), including "godix", "excuted", etc. Please run a spell-check over the whole patch, and have somebody review all the text.

Quoted 2 lines · Wang Yafei

This driver is for GOODiX GTx5 series touchscreen controllers such as GT8589, GT7589. This driver designed with hierarchial

"hierarchical"

Quoted 5 lines

structure,
for that can be modified to support subsequent controllers easily. Some zones of the touchscreen can be set to buttons(according to the hardware). That is why it handles button and multitouch events.

Quoted 9 lines

A brief description of driver structure
- Core Layer: This layer responsible for basic input events report, GPIO pinctrl, Interrupt, Power resources manager and submodules
manager.
- Hardware Layer: This layer responsible for controllers initialization,
irq handle as well as bus read/write.
- External Module Layer: This layer used for support more features such as firmware update, debug tools and gesture wakeup.

Quoted 6 lines

I think that the driver should be split up in multiple patches. The first one should handle the basics for the device (I'd say parity with the driver for the older models would be fine), then add the various features on top (firmware loading, gesture wakeup, etc.) as those features probably need more thought as to what the external APIs should be.

I have rechecked the code spell problems and in the [PATCH v4]. We have considered your suggestion carefully, and in the new patch will only contains basic touch function. Other functions such as fw_update, gesture update will be submitted separately, and device preparatory description file patches is ready I will commit it soon.

Quoted 33 lines
Quoted 7 lines

---
Goodix driver that the kernel already have, is for our gt9xx series touchscreen controllers. This new driver is for out new generation touchscreen controllers, consider this two generations are very different with each other. We wrote a new driver instead of make a patch on the old driver.

You'll probably need a preparatory patch which makes changes to the description and KConfig for the old driver, spelling out exactly what the old driver supports, maybe renaming it.

You'll also need to decide whether the company is called GOODiX, GOODIX or Goodix, whether the new devices are "sunrise", "GTx5" or something else.

Quoted 6 lines

Changes in v2:
- replace touchscreen properties according to the description in Documentation/devicetree/bindings/input/touchscreen/touchscreen.tx
t
- Droped all compat stuff for older kernels
- Removed Android stuff (EARLY_SUSPEND, CONFIG_FB)

There's still an ifdef with "COMPAT" in the name, not sure compat with what.

Quoted 5 lines

- Use device_property_read_* get device properties
- use get-unaligned_*() API
- Use dev_err() dev_dbg() for logging
- remove pinctrl functions
- remove some unused functions

Cheers