Re: [PATCH v5 4/9] PCI: imx6: add imx6sx pcie support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 10, 2014 at 2:41 AM, Richard Zhu <richard.zhu@xxxxxxxxxxxxx> wrote:

>  static void imx6_pcie_init_phy(struct pcie_port *pp)
>  {
>         struct imx6_pcie *imx6_pcie = to_imx6_pcie(pp);
> +       int ret;
> +
> +       /* Power up the separate domain available on i.MX6SX */
> +       if (is_imx6sx_pcie(imx6_pcie)) {
> +               /* Force PCIe PHY reset */
> +               regmap_update_bits(imx6_pcie->iomuxc_gpr, IOMUXC_GPR5,
> +                               IMX6SX_GPR5_PCIE_BTNRST,
> +                               IMX6SX_GPR5_PCIE_BTNRST);
> +
> +               regmap_update_bits(imx6_pcie->gpc_ips_reg, GPC_CNTR,
> +                               GPC_CNTR_PCIE_PHY_PUP_REQ,
> +                               GPC_CNTR_PCIE_PHY_PUP_REQ);
> +               regulator_set_voltage(imx6_pcie->pcie_phy_regulator,
> +                               1100000, 1100000);
> +               ret = regulator_enable(imx6_pcie->pcie_phy_regulator);
> +               if (ret)
> +                       dev_info(pp->dev, "failed to enable pcie regulator.\n");

You should 'return ret' in the case of error.
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux