diff options
author | Rakesh Bodla <rbodla@nvidia.com> | 2012-07-20 11:37:09 +0530 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2012-08-07 10:18:58 -0700 |
commit | 5ff96f6242f63d43481f672a888e69cad531caad (patch) | |
tree | f6abd7b27d1d231a5570dcbcff683162f6a22048 | |
parent | c0b3b32e15235c4abdde1f0bba81d639180bb360 (diff) |
ARM: tegra: usb_phy: prevent illegal access to registers
Adding the conditions to prevent illegal register access.
Bug 993380
Change-Id: I8e275846612cbac70c1f50251d5f5d0700e845b0
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/117289
(cherry picked from commit c1513eaf68090a268f8ec1b2b6c7e7381c16dfdd)
Reviewed-on: http://git-master/r/117996
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Preetham Chandru <pchandru@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/tegra2_usb_phy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra2_usb_phy.c b/arch/arm/mach-tegra/tegra2_usb_phy.c index a3440f41bf3c..6e0801625614 100644 --- a/arch/arm/mach-tegra/tegra2_usb_phy.c +++ b/arch/arm/mach-tegra/tegra2_usb_phy.c @@ -613,6 +613,8 @@ static int utmi_phy_irq(struct tegra_usb_phy *phy) val &= ~(USB_PORTSC_WKCN | USB_PORTSC_RWC_BITS); writel(val , (base + USB_PORTSC)); } + } else if (!phy->phy_clk_on) { + return IRQ_NONE; } return IRQ_HANDLED; |