spi: intel: Check number of chip selects after reading the descriptor
The flash decriptor contains the number of flash components that we use to figure out how many flash chips there are connected. Therefore we need to read it first before deciding how many chip selects the controller has. Reported-by:Marcin Witkowski <marcin.witkowski@intel.com> Fixes: 3f03c618 ("spi: intel: Add support for second flash chip") Cc: stable@vger.kernel.org Signed-off-by:
Mika Westerberg <mika.westerberg@linux.intel.com> Link: https://lore.kernel.org/r/20230215110040.42186-1-mika.westerberg@linux.intel.com Signed-off-by:
Mark Brown <broonie@kernel.org>
parent
35bba23e
Please register or sign in to comment