Add callback function to check whether wifi power is on or not.
This patch is workaround code for exynos5433 wifi.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
static int dw_pcie_valid_config(struct pcie_port *pp,
struct pci_bus *bus, int dev)
{
+
+ /* Workaround */
+ if (pp->ops->power_enabled) {
+ if (!pp->ops->power_enabled(pp))
+ return 0;
+ }
+
/* If there is no link, then there is no device */
if (bus->number != pp->root_bus_nr) {
if (!dw_pcie_link_up(pp))
u32 (*get_msi_data)(struct pcie_port *pp, int pos);
void (*scan_bus)(struct pcie_port *pp);
int (*msi_host_init)(struct pcie_port *pp, struct msi_controller *chip);
+ int (*power_enabled)(struct pcie_port *pp);
};
int dw_pcie_cfg_read(void __iomem *addr, int where, int size, u32 *val);