summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorStefan Binding <sbinding@opensource.cirrus.com>2022-01-21 17:24:29 +0000
committerHans de Goede <hdegoede@redhat.com>2022-02-02 18:10:02 +0100
commit68f201f9061c000d7a4a9f359f021b1cd535d62b (patch)
tree61b0c265da14974de51905cddb778bf65737a9bd /drivers/acpi
parent35a36cbb7b1ce7596fc03962f7ce261b2e908d1f (diff)
downloadlinux-stable-68f201f9061c000d7a4a9f359f021b1cd535d62b.tar.gz
linux-stable-68f201f9061c000d7a4a9f359f021b1cd535d62b.tar.bz2
linux-stable-68f201f9061c000d7a4a9f359f021b1cd535d62b.zip
platform/x86: serial-multi-instantiate: Add SPI support
Add support for spi bus in serial-multi-instantiate driver Some peripherals can have either a I2C or a SPI connection to the host (but not both) but use the same HID for both types. So it is not possible to use the HID to determine whether it is I2C or SPI. The driver must check the node to see if it contains I2cSerialBus or SpiSerialBus entries. For backwards-compatibility with the existing nodes I2C is checked first and if such entries are found ONLY I2C devices are created. Since some existing nodes that were already handled by this driver could also contain unrelated SpiSerialBus nodes that were previously ignored, and this preserves that behavior. If there is ever a need to handle a node where both I2C and SPI devices must be instantiated this can be added in future. Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220121172431.6876-8-sbinding@opensource.cirrus.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions