diff options
author | Alex Elder <elder@linaro.org> | 2021-07-27 16:19:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-28 00:06:27 +0100 |
commit | 923a6b698447f4f7872daee47accbab78135ff51 (patch) | |
tree | 9301bd10627be524152dccb49a9065dcbfa684dd /drivers/dma/plx_dma.c | |
parent | f34d9224503f13cae35ae9d6a43199e3666bbe99 (diff) | |
download | linux-923a6b698447f4f7872daee47accbab78135ff51.tar.bz2 |
net: ipa: get clock in ipa_probe()
Any entry point that leads to IPA hardware access must ensure the
hardware is operational (clocked). Currently we ensure this by
taking an extra clock reference during setup that is not released
until we receive a system suspend request. But this extra reference
will soon go away.
When the platform driver ->probe function is called, we first need
hardware access in ipa_config(). Although ipa_config() takes an IPA
clock reference, it the special reference taken to prevent suspending
the hardware.
Have ipa_probe() take a reference before calling ipa_config(), so
that the "no-suspend" reference can eventually go away. Drop this
reference before ipa_probe() returns.
Similarly, the driver ->remove function can be called at any time.
Take an IPA clock reference at the beginning of that function, and
drop it again after the deconfig stage has completed (at which point
hardware access is no longer needed).
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/dma/plx_dma.c')
0 files changed, 0 insertions, 0 deletions