forked from Minki/linux
pinctrl fixes for the -rc series:
- Fixed a 2-line compile error for MXS - A pure documentation fix for Nomadik -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJP4PWNAAoJEEEQszewGV1zE2UQAKRMoeJw97o9NFuHICg3+oMA SExUxD9H9Ey5nWtFsjqVkZKkEksdFlDwkdsXoXxsDVZlVNBFM/oxRe3fGiqgEIjN /fks/xfFBo7xQPoJw05z8Z/dYKDgchhor5Q7oRWReYMnNhuHccjWdhD0Z7dFG27Q Up8purFH3v3qidxXy3jrLG03b+s/wDHTzsGBP2sIJVhUvMkVcoi3AUgjoWE/Qj68 Ljklf1f5mSzY6YKU4kkpSaickoD8FxxkbTk4qNarFk4RLTxQeFOyqjVN0lFfUjF1 sUvfnlgeFYy3N3Vp5keI1iBRBuRYBR002WI3T6uorHyM78ssbks5md3BxA/IDff+ QTdPUCKNAfPqnqmnVBsvtTSb9MrdreBEiSw6j31fzgeN+MipYc2h0BErJPynMKGP QWWZrm0q+ux6bf/bsdfpBl7q0RD0d45qihYI7azQq4vV/QfXpFsPxDdFY+edIau4 TVb3c7xang5cMK7aq+HZ9tBV8v4WvcGg+OSPOitaXyIk4kHmO3E+eYGQ9GsSFxcK Jd25v88tXrrip4//fEb6RCRxf1oHeZ8onR8Ex8FsxMh0cMumhXi+VmKEel0UJKux 42Ti/Pl6CX/FtiU5hwzn6ojwntR9yaQHz7bInzkUgeP8r1fLa96IN2ndoLDv0SEh gvFcBaAbZV7WlZV8gLkD =zNxH -----END PGP SIGNATURE----- Merge tag 'pinctrl-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl Pull two pinctrl fixes from Linus Walleij: - Fixed a 2-line compile error for MXS - A pure documentation fix for Nomadik * tag 'pinctrl-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: pinctrl/nomadik: document Alt-C glitch pinctrl: mxs: Use kfree to fix build error
This commit is contained in:
commit
61fcbc8dfe
@ -137,7 +137,7 @@ static int mxs_dt_node_to_map(struct pinctrl_dev *pctldev,
|
||||
|
||||
free_group:
|
||||
if (!purecfg)
|
||||
free(group);
|
||||
kfree(group);
|
||||
free:
|
||||
kfree(new_map);
|
||||
return ret;
|
||||
|
@ -1438,7 +1438,27 @@ static int nmk_pmx_enable(struct pinctrl_dev *pctldev, unsigned function,
|
||||
|
||||
dev_dbg(npct->dev, "enable group %s, %u pins\n", g->name, g->npins);
|
||||
|
||||
/* Handle this special glitch on altfunction C */
|
||||
/*
|
||||
* If we're setting altfunc C by setting both AFSLA and AFSLB to 1,
|
||||
* we may pass through an undesired state. In this case we take
|
||||
* some extra care.
|
||||
*
|
||||
* Safe sequence used to switch IOs between GPIO and Alternate-C mode:
|
||||
* - Save SLPM registers (since we have a shadow register in the
|
||||
* nmk_chip we're using that as backup)
|
||||
* - Set SLPM=0 for the IOs you want to switch and others to 1
|
||||
* - Configure the GPIO registers for the IOs that are being switched
|
||||
* - Set IOFORCE=1
|
||||
* - Modify the AFLSA/B registers for the IOs that are being switched
|
||||
* - Set IOFORCE=0
|
||||
* - Restore SLPM registers
|
||||
* - Any spurious wake up event during switch sequence to be ignored
|
||||
* and cleared
|
||||
*
|
||||
* We REALLY need to save ALL slpm registers, because the external
|
||||
* IOFORCE will switch *all* ports to their sleepmode setting to as
|
||||
* to avoid glitches. (Not just one port!)
|
||||
*/
|
||||
glitch = (g->altsetting == NMK_GPIO_ALT_C);
|
||||
|
||||
if (glitch) {
|
||||
|
Loading…
Reference in New Issue
Block a user