Patch "pwm: mediatek: always use bus clock for PWM on MT7622" has been added to the 5.15-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

    pwm: mediatek: always use bus clock for PWM on MT7622

to the 5.15-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:
     pwm-mediatek-always-use-bus-clock-for-pwm-on-mt7622.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 4e462f10bb25ee242f26c8a676f3fc35b8b353d1
Author: Daniel Golle <daniel@xxxxxxxxxxxxxx>
Date:   Fri Dec 2 19:35:08 2022 +0100

    pwm: mediatek: always use bus clock for PWM on MT7622
    
    [ Upstream commit aa3c668f2f98856af96e13f44da6ca4f26f0b98c ]
    
    According to MT7622 Reference Manual for Development Board v1.0 the PWM
    unit found in the MT7622 SoC also comes with the PWM_CK_26M_SEL register
    at offset 0x210 just like other modern MediaTek ARM64 SoCs.
    And also MT7622 sets that register to 0x00000001 on reset which is
    described as 'Select 26M fix CLK as BCLK' in the datasheet.
    Hence set has_ck_26m_sel to true also for MT7622 which results in the
    driver writing 0 to the PWM_CK_26M_SEL register which is described as
    'Select bus CLK as BCLK'.
    
    Fixes: 0c0ead76235db0 ("pwm: mediatek: Always use bus clock")
    Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
    Acked-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/Y1iF2slvSblf6bYK@xxxxxxxxxxxxxx
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
    Signed-off-by: Thierry Reding <thierry.reding@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c
index 0d4dd80e9f07..f8f9a7489129 100644
--- a/drivers/pwm/pwm-mediatek.c
+++ b/drivers/pwm/pwm-mediatek.c
@@ -275,7 +275,7 @@ static const struct pwm_mediatek_of_data mt2712_pwm_data = {
 static const struct pwm_mediatek_of_data mt7622_pwm_data = {
 	.num_pwms = 6,
 	.pwm45_fixup = false,
-	.has_ck_26m_sel = false,
+	.has_ck_26m_sel = true,
 };
 
 static const struct pwm_mediatek_of_data mt7623_pwm_data = {



[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