[PATCH] [v2] pinctrl: meson: fix drive strength register and bit calculation

patchwork-bot+linux-amlogic at kernel.org patchwork-bot+linux-amlogic at kernel.org
Mon Aug 17 13:48:51 EDT 2020


Hello:

This patch was applied to khilman/linux-amlogic.git (refs/heads/for-next).

On Thu, 18 Jun 2020 11:59:22 +0900 you wrote:
> If a GPIO bank has greater than 16 pins, PAD_DS_REG is split into two
> or more registers. However, when register and bit were calculated, the
> first register defined in the bank was used, and the bit was calculated
> based on the first pin. This causes problems in setting the driving
> strength.
> 
> The following method was used to solve this problem:
> A bit is calculated first using predefined strides. Then, If the bit is
> 32 or more, the register is changed by the quotient of the bit divided
> by 32. And the bit is set to the remainder.
> 
> [...]


Here is a summary with links:
  - [v2] pinctrl: meson: fix drive strength register and bit calculation
    https://git.kernel.org/khilman/linux-amlogic/c/f088ab6d4f4ce49d422c220074b7e605f54e2299

You are awesome, thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/pwbot



More information about the linux-amlogic mailing list