mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
pmdomain: imx8mp-blk-ctrl: Keep usb phy power domain on for system wakeup
USB system wakeup need its PHY on, so add the GENPD_FLAG_ACTIVE_WAKEUP
flags to USB PHY genpd configuration.
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Fixes: 556f5cf956 ("soc: imx: add i.MX8MP HSIO blk-ctrl")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
e9ab2b8389
commit
e2c4c5b2bb
1 changed files with 4 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ struct imx8mp_blk_ctrl_domain_data {
|
|||
const char * const *path_names;
|
||||
int num_paths;
|
||||
const char *gpc_name;
|
||||
const unsigned int flags;
|
||||
};
|
||||
|
||||
#define DOMAIN_MAX_CLKS 3
|
||||
|
|
@ -265,10 +266,12 @@ static const struct imx8mp_blk_ctrl_domain_data imx8mp_hsio_domain_data[] = {
|
|||
[IMX8MP_HSIOBLK_PD_USB_PHY1] = {
|
||||
.name = "hsioblk-usb-phy1",
|
||||
.gpc_name = "usb-phy1",
|
||||
.flags = GENPD_FLAG_ACTIVE_WAKEUP,
|
||||
},
|
||||
[IMX8MP_HSIOBLK_PD_USB_PHY2] = {
|
||||
.name = "hsioblk-usb-phy2",
|
||||
.gpc_name = "usb-phy2",
|
||||
.flags = GENPD_FLAG_ACTIVE_WAKEUP,
|
||||
},
|
||||
[IMX8MP_HSIOBLK_PD_PCIE] = {
|
||||
.name = "hsioblk-pcie",
|
||||
|
|
@ -724,6 +727,7 @@ static int imx8mp_blk_ctrl_probe(struct platform_device *pdev)
|
|||
domain->genpd.name = data->name;
|
||||
domain->genpd.power_on = imx8mp_blk_ctrl_power_on;
|
||||
domain->genpd.power_off = imx8mp_blk_ctrl_power_off;
|
||||
domain->genpd.flags = data->flags;
|
||||
domain->bc = bc;
|
||||
domain->id = i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue