diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-11-04 17:49:16 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-11-07 12:33:49 +0100 |
commit | 53eb64c88f17b14b324fbdfd417f56c5d3fa6fee (patch) | |
tree | 2e9f5eb0889db028f8cddc7f7f425e4d06ec8da8 /tools/testing/radix-tree/linux.c | |
parent | a977ece5773b6746b814aac410da4776023db239 (diff) |
platform/x86: p2sb: Don't fail if unknown CPU is found
We have accessing P2SB from a very few places for quite known hardware.
When a new SoC appears in intel-family.h it's not obvious that it needs
to be added to p2sb.c as well. Instead, provide default BDF and refactor
p2sb_get_devfn() to always succeed. If in the future we would need to
exclude something, we may add a list of unsupported IDs.
Without this change the iTCO on Intel Comet Lake SoCs became unavailable:
i801_smbus 0000:00:1f.4: failed to create iTCO device
Fixes: 5c7b9167ddf8 ("i2c: i801: convert to use common P2SB accessor")
Reported-and-tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221104154916.35231-1-andriy.shevchenko@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/testing/radix-tree/linux.c')
0 files changed, 0 insertions, 0 deletions