Skip to content

Commit e2c4c5b

Browse files
Xu Yangstorulf
authored andcommitted
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 <[email protected]> Fixes: 556f5cf ("soc: imx: add i.MX8MP HSIO blk-ctrl") Cc: [email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent e9ab2b8 commit e2c4c5b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/pmdomain/imx/imx8mp-blk-ctrl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ struct imx8mp_blk_ctrl_domain_data {
5353
const char * const *path_names;
5454
int num_paths;
5555
const char *gpc_name;
56+
const unsigned int flags;
5657
};
5758

5859
#define DOMAIN_MAX_CLKS 3
@@ -265,10 +266,12 @@ static const struct imx8mp_blk_ctrl_domain_data imx8mp_hsio_domain_data[] = {
265266
[IMX8MP_HSIOBLK_PD_USB_PHY1] = {
266267
.name = "hsioblk-usb-phy1",
267268
.gpc_name = "usb-phy1",
269+
.flags = GENPD_FLAG_ACTIVE_WAKEUP,
268270
},
269271
[IMX8MP_HSIOBLK_PD_USB_PHY2] = {
270272
.name = "hsioblk-usb-phy2",
271273
.gpc_name = "usb-phy2",
274+
.flags = GENPD_FLAG_ACTIVE_WAKEUP,
272275
},
273276
[IMX8MP_HSIOBLK_PD_PCIE] = {
274277
.name = "hsioblk-pcie",
@@ -724,6 +727,7 @@ static int imx8mp_blk_ctrl_probe(struct platform_device *pdev)
724727
domain->genpd.name = data->name;
725728
domain->genpd.power_on = imx8mp_blk_ctrl_power_on;
726729
domain->genpd.power_off = imx8mp_blk_ctrl_power_off;
730+
domain->genpd.flags = data->flags;
727731
domain->bc = bc;
728732
domain->id = i;
729733

0 commit comments

Comments
 (0)