File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ struct rcar_msi {
50
50
*/
51
51
static void __iomem * pcie_base ;
52
52
/*
53
- * Static copy of bus clock pointer, so we can check whether the clock
54
- * is enabled or not.
53
+ * Static copy of PCIe device pointer, so we can check whether the
54
+ * device is runtime suspended or not.
55
55
*/
56
- static struct clk * pcie_bus_clk ;
56
+ static struct device * pcie_dev ;
57
57
#endif
58
58
59
59
/* Structure representing the PCIe interface */
@@ -792,7 +792,7 @@ static int rcar_pcie_get_resources(struct rcar_pcie_host *host)
792
792
#ifdef CONFIG_ARM
793
793
/* Cache static copy for L1 link state fixup hook on aarch32 */
794
794
pcie_base = pcie -> base ;
795
- pcie_bus_clk = host -> bus_clk ;
795
+ pcie_dev = pcie -> dev ;
796
796
#endif
797
797
798
798
return 0 ;
@@ -1062,7 +1062,7 @@ static int rcar_pcie_aarch32_abort_handler(unsigned long addr,
1062
1062
1063
1063
spin_lock_irqsave (& pmsr_lock , flags );
1064
1064
1065
- if (!pcie_base || ! __clk_is_enabled ( pcie_bus_clk )) {
1065
+ if (!pcie_base || pm_runtime_suspended ( pcie_dev )) {
1066
1066
ret = 1 ;
1067
1067
goto unlock_exit ;
1068
1068
}
You can’t perform that action at this time.
0 commit comments