commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=5b143bee284601c7a337cc6a9fc57dbab305214f branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk
USB_APHY_CNTRL register only works for bf60x during pm suspend/resume. It could cause some error on bf52x/bf54x, so limit it to bf60x. Signed-off-by: Bob Liu <[email protected]> --- drivers/usb/musb/blackfin.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index 270a370..9ee520a 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c @@ -558,10 +558,12 @@ static int __devexit bfin_remove(struct platform_device *pdev) #ifdef CONFIG_PM static int bfin_suspend(struct device *dev) { +#ifdef CONFIG_BF60x int aphy = 0; aphy = bfin_read_USB_APHY_CNTRL(); bfin_write_USB_APHY_CNTRL(aphy | 0x1); SSYNC(); +#endif return 0; } @@ -569,12 +571,12 @@ static int bfin_resume(struct device *dev) { struct bfin_glue *glue = dev_get_drvdata(dev); struct musb *musb = glue_to_musb(glue); - +#ifdef CONFIG_BF60x int aphy; aphy = bfin_read_USB_APHY_CNTRL(); bfin_write_USB_APHY_CNTRL(aphy | 0x2); SSYNC(); - +#endif bfin_musb_reg_init(musb); return 0;
_______________________________________________ Linux-kernel-commits mailing list [email protected] https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
