]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/bios: Extract intel_spi_read16()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 23 Sep 2024 15:24:51 +0000 (18:24 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Oct 2024 14:30:52 +0000 (17:30 +0300)
commit4c997c6e439013df942af27761edc01e1065cc27
treeeb96851e98fba2c76f5c406aeeafeda2c9d9bed8
parent3823683a0f170c45b84e8a32a3c282f783f9620a
drm/i915/bios: Extract intel_spi_read16()

The SPI VBT codepath only knows how to read 4 bytes at a time.
So to read the 2 byte vbt_size it masks out the unwanted msbs.
Hide that little implementation detail inside a new intel_spi_read16()
helper. Alse rename the existing intel_spi_read() to intel_spi_read32()
to make it clear what it does.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240923152453.11230-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_bios.c