firmware: cs_dsp: Log correct region name in bin error messages
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Mon, 5 Jun 2023 14:32:38 +0000 (15:32 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Jun 2023 14:35:46 +0000 (15:35 +0100)
commitad24919540fb4df83981d469b5253cc1aecca939
treea210fedc7bf220a157e0c2798ae7e82f2d9df739
parent32cf0046a652116d6a216d575f3049a9ff9dd80d
firmware: cs_dsp: Log correct region name in bin error messages

In cs_dsp_load_coeff() region_name should be set in the XM/YM/ZM
cases otherwise any errors will log the region as "Unknown".

While doing this also change one error message that logged the
region type ID to log the region_name instead. This makes it
consistent with other messages in the same function.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230605143238.4001982-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/cs_dsp.c