Patch "pinctrl: aspeed: Use the right pinconf mask" has been added to the 5.8-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

    pinctrl: aspeed: Use the right pinconf mask

to the 5.8-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:
     pinctrl-aspeed-use-the-right-pinconf-mask.patch
and it can be found in the queue-5.8 subdirectory.

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



commit a66be3722894e6a27f4cde14297c146cec287148
Author: Andrew Jeffery <andrew@xxxxxxxx>
Date:   Thu Sep 10 12:26:30 2020 +0930

    pinctrl: aspeed: Use the right pinconf mask
    
    [ Upstream commit 1d6db5ae6b090d1a8edfcb36b9bf47c5f4fe27f6 ]
    
    The Aspeed pinconf data structures are split into 'conf' and 'map'
    types, where the 'conf' struct defines which register and bitfield to
    manipulate, while the 'map' struct defines what value to write to
    the register and bitfield.
    
    Both structs have a mask member, and the wrong mask was being used to
    tell the regmap which bits to update.
    
    A todo is to look at whether we can remove the mask from the 'map'
    struct.
    
    Fixes: 5f52c853847f ("pinctrl: aspeed: Use masks to describe pinconf bitfields")
    Signed-off-by: Andrew Jeffery <andrew@xxxxxxxx>
    Reviewed-by: Joel Stanley <joel@xxxxxxxxx>
    Cc: Johnny Huang <johnny_huang@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20200910025631.2996342-3-andrew@xxxxxxxx
    Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed.c b/drivers/pinctrl/aspeed/pinctrl-aspeed.c
index b625a657171e6..11e27136032b9 100644
--- a/drivers/pinctrl/aspeed/pinctrl-aspeed.c
+++ b/drivers/pinctrl/aspeed/pinctrl-aspeed.c
@@ -515,7 +515,7 @@ int aspeed_pin_config_set(struct pinctrl_dev *pctldev, unsigned int offset,
 		val = pmap->val << __ffs(pconf->mask);
 
 		rc = regmap_update_bits(pdata->scu, pconf->reg,
-					pmap->mask, val);
+					pconf->mask, val);
 
 		if (rc < 0)
 			return rc;



[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