lkml.org 
[lkml]   [2020]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 127/178] pinctrl: tegra: Use noirq suspend/resume callbacks
    Date
    From: Vidya Sagar <vidyas@nvidia.com>

    [ Upstream commit 782b6b69847f34dda330530493ea62b7de3fd06a ]

    Use noirq suspend/resume callbacks as other drivers which implement
    noirq suspend/resume callbacks (Ex:- PCIe) depend on pinctrl driver to
    configure the signals used by their respective devices in the noirq phase.

    Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
    Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
    Link: https://lore.kernel.org/r/20200604174935.26560-1-vidyas@nvidia.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/pinctrl/tegra/pinctrl-tegra.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/pinctrl/tegra/pinctrl-tegra.c b/drivers/pinctrl/tegra/pinctrl-tegra.c
    index e9a7cbb9aa336..01bcef2c01bcf 100644
    --- a/drivers/pinctrl/tegra/pinctrl-tegra.c
    +++ b/drivers/pinctrl/tegra/pinctrl-tegra.c
    @@ -685,8 +685,8 @@ static int tegra_pinctrl_resume(struct device *dev)
    }

    const struct dev_pm_ops tegra_pinctrl_pm = {
    - .suspend = &tegra_pinctrl_suspend,
    - .resume = &tegra_pinctrl_resume
    + .suspend_noirq = &tegra_pinctrl_suspend,
    + .resume_noirq = &tegra_pinctrl_resume
    };

    static bool gpio_node_has_range(const char *compatible)
    --
    2.25.1
    \
     
     \ /
      Last update: 2020-06-29 21:53    [W:2.235 / U:0.280 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site