Patch "ASoC: fsl_sai: fix getting version from VERID" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ASoC: fsl_sai: fix getting version from VERID

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     asoc-fsl_sai-fix-getting-version-from-verid.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 600bcf0a10f3442e46719e9cc2ef84a4091bc258
Author: Shengjiu Wang <shengjiu.wang@xxxxxxx>
Date:   Tue Feb 7 17:04:24 2023 +0800

    ASoC: fsl_sai: fix getting version from VERID
    
    [ Upstream commit 29aab38823b61e482995c24644bd2d8acfe56185 ]
    
    The version information is at the bit31 ~ bit16 in the VERID
    register, so need to right shift 16bit to get it, otherwise
    the result of comparison "sai->verid.version >= 0x0301" is
    wrong.
    
    Fixes: 99c1e74f25d4 ("ASoC: fsl_sai: store full version instead of major/minor")
    Signed-off-by: Shengjiu Wang <shengjiu.wang@xxxxxxx>
    Reviewed-by: Iuliana Prodan <iuliana.prodan@xxxxxxx>
    Reviewed-by: Fabio Estevam <festevam@xxxxxxxxx>
    Link: https://lore.kernel.org/r/1675760664-25193-1-git-send-email-shengjiu.wang@xxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index e60c7b3445623..8205b32171495 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -1141,6 +1141,7 @@ static int fsl_sai_check_version(struct device *dev)
 
 	sai->verid.version = val &
 		(FSL_SAI_VERID_MAJOR_MASK | FSL_SAI_VERID_MINOR_MASK);
+	sai->verid.version >>= FSL_SAI_VERID_MINOR_SHIFT;
 	sai->verid.feature = val & FSL_SAI_VERID_FEATURE_MASK;
 
 	ret = regmap_read(sai->regmap, FSL_SAI_PARAM, &val);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux