mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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: Peter Griffin <peter.griffin@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191001182927.70448-1-john.stultz@linaro.org
This commit is contained in:
parent
4f69851fba
commit
30abc59b48
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue