Commit 30abc59b authored by Peter Griffin's avatar Peter Griffin Committed by Qiang Yu

drm/lima: Add support for multiple reset lines

Some SoCs like HiKey have 2 reset lines, so update
to use the devm_reset_control_array_* variant of the
API so that multiple resets can be specified in DT.

Cc: Qiang Yu <yuq825@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Cc: lima@lists.freedesktop.org
Signed-off-by: default avatarPeter Griffin <peter.griffin@linaro.org>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarQiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191001182927.70448-1-john.stultz@linaro.org
parent 4f69851f
...@@ -105,7 +105,8 @@ static int lima_clk_init(struct lima_device *dev) ...@@ -105,7 +105,8 @@ static int lima_clk_init(struct lima_device *dev)
if (err) if (err)
goto error_out0; goto error_out0;
dev->reset = devm_reset_control_get_optional(dev->dev, NULL); dev->reset = devm_reset_control_array_get_optional_shared(dev->dev);
if (IS_ERR(dev->reset)) { if (IS_ERR(dev->reset)) {
err = PTR_ERR(dev->reset); err = PTR_ERR(dev->reset);
if (err != -EPROBE_DEFER) if (err != -EPROBE_DEFER)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment