greybus: arche-apb-ctrl: Assert reset to APB at the end of probe
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Wed, 16 Dec 2015 10:59:20 +0000 (16:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 23 Dec 2015 01:40:43 +0000 (17:40 -0800)
Until we have proper handshake mechanism implemented with SVC
assert reset to APB at the end of probe.
We are safe here to do that, as SVC always enables clock to APB's
currently.
And also from EVT1 perspective, we should be good, as clock control
signals are now moved to AP.

Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/arche-apb-ctrl.c

index efc1e42f8c613737a418ec5dab44612b832c3a13..68f8d3cc8e974fcaa8dacf0d18287125a9af1654 100644 (file)
@@ -325,6 +325,8 @@ static int arche_apb_ctrl_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, apb);
 
+       assert_gpio(apb->resetn_gpio);
+
        dev_info(&pdev->dev, "Device registered successfully\n");
        return 0;