20 Aug
2013
20 Aug
'13
12:22 p.m.
On Mon, Aug 19, 2013 at 05:05:55PM +0200, Markus Pargmann wrote:
This patch adds generic ac97 reset functions using pincontrol and gpio parsed from devicetree.
Applied, thanks.
+Required properties:
- pinctrl-names: Has to contain following states to setup the correct
- pinmuxing for the used gpios:
- "ac97-running": AC97-link is active
- "ac97-reset": AC97-link reset state
- "ac97-warm-reset": AC97-link warm reset state
- ac97-gpios: List of gpio phandles with args in the order ac97-sync,
- ac97-sdata, ac97-reset
This should really be reviewed on the DT list but never mind.
- gpio_direction_output(snd_ac97_rst_cfg.gpio_sync, 0);
These ought to be _cansleep() since there's no need for them to run in atomic context but that can be fixed up later.