Commit 4062da75 authored by Srinivas Kandagatla's avatar Srinivas Kandagatla
Browse files

FROMLIST: PCI: designware: add host_init error handling



This patch add support to return value from host_init() callback from drivers,
so that the designware libary can handle or pass it to proper place. Issue with
void return type is that errors or error handling within host_init() callback
are never know to designware code, which could go ahead and access registers
even in error cases.

Typical case in qcom controller driver is to turn off clks in case of errors,
if designware code continues to read/write register when clocks are turned off
the board would reboot/lockup.

Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
[vivek: resolved conflicts and rebased on 4.11-rc1 since we got Kishon's
        series for pci dwc restructuring]
Signed-off-by: default avatarVivek Gautam <vivek.gautam@codeaurora.org>
parent b4b209c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment