Re: [PATCH v3] HID: i2c-hid: Allow ACPI systems to specify "post-power-on-delay-ms"

From: Jiri Kosina
Date: Tue Nov 21 2017 - 07:30:38 EST


On Tue, 3 Oct 2017, Rajat Jain wrote:

> The property "post-power-on-delay-ms" allows a platform to specify
> the delay needed after power-on, but only via device trees currently.
> Use device_property_* instead of of_* reads to allow ACPI systems to
> also provide the same information. This is useful for Wacom hardware
> on ACPI systems.
>
> Signed-off-by: Rajat Jain <rajatja@xxxxxxxxxx>
> ---
> v3: introduce i2c_hid_fwnode_probe() to parse common device_properties.
> Also fixup the binding doc to indicate that regulator isn't a
> requirement for "post-power-on-delay-ms"
> v2: Don't change any other existing logic, only read "post-power-on-delay-ms"
> in i2c_hid_acpi_pdata() also.
> v1: Try to unify everything using device properties, convert i2c_hid_of_probe()
> to i2c_hid_fwnode_probe() and call i2c_hid_acpi_pdata() if can't get
> HID register address using device_property.

Queued now for 4.16 merge window.

--
Jiri Kosina
SUSE Labs