diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2021-10-18 15:17:25 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-11-03 19:03:55 +0100 |
commit | b18c1ad685d9a6af5189d4cc037a653270a07b4c (patch) | |
tree | 4f39945648c32972f9bd9cb6815b1a1bb6532764 /tools/testing/selftests/bpf/prog_tests/recursion.c | |
parent | b340c7d6f619ad63d1896a6debceea1de3a78f29 (diff) |
i2c: Allow an ACPI driver to manage the device's power state during probe
Enable drivers to tell ACPI that there's no need to power on a device for
probe. Drivers should still perform this by themselves if there's a need
to. In some cases powering on the device during probe is undesirable, and
this change enables a driver to choose what fits best for it.
Add a field called "flags" into struct i2c_driver for driver flags, and a
flag I2C_DRV_ACPI_WAIVE_D0_PROBE to tell a driver supports probe in ACPI D
states other than 0.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Acked-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions