[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161224092553.GA4858@kozik-lap>
Date: Sat, 24 Dec 2016 11:25:53 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Pankaj Dubey <pankaj.dubey@...sung.com>
Cc: linux-kernel@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-pci@...r.kernel.org,
krzk@...nel.org, kgene@...nel.org, jingoohan1@...il.com,
bhelgaas@...gle.com, jh80.chung@...sung.com,
alim.akhtar@...sung.com, sanath@...sung.com,
Niyas Ahmed S T <niyas.ahmed@...sung.com>
Subject: Re: [PATCH] PCI: exynos: refactor exynos pcie driver
On Fri, Dec 23, 2016 at 04:26:27PM +0530, Pankaj Dubey wrote:
> From: Niyas Ahmed S T <niyas.ahmed@...sung.com>
>
> Currently Exynos PCIe driver is only supported for Exynos5440 SoC.
> This patch does refactoring of Exynos PCIe driver to extend support
> for other Exynos SoC.
>
> Following are the main changes done via this patch:
> 1) It adds separate structs for memory, clock resources.
> 2) It add exynos_pcie_ops struct which will allow us to support the
> differences in resources in different Exynos SoC.
>
> No functional change intended.
>
> Signed-off-by: Niyas Ahmed S T <niyas.ahmed@...sung.com>
> Signed-off-by: Pankaj Dubey <pankaj.dubey@...sung.com>
> ---
> This patch set is prepared on top of Krzysztof's for-next and
> PCIe driver cleanup patch [1] by Jaehoon Chung.
>
> [1]: https://lkml.org/lkml/2016/12/19/44
>
>
> drivers/pci/host/pci-exynos.c | 346 ++++++++++++++++++++++++++----------------
> 1 file changed, 217 insertions(+), 129 deletions(-)
(...)
> @@ -573,14 +660,15 @@ static int __exit exynos_pcie_remove(struct platform_device *pdev)
> {
> struct exynos_pcie *exynos_pcie = platform_get_drvdata(pdev);
>
> - clk_disable_unprepare(exynos_pcie->bus_clk);
> - clk_disable_unprepare(exynos_pcie->clk);
> + if (exynos_pcie->ops && exynos_pcie->ops->deinit_clk_resources)
> + exynos_pcie->ops->deinit_clk_resources(exynos_pcie);
>
> return 0;
> }
>
> static const struct of_device_id exynos_pcie_of_match[] = {
> - { .compatible = "samsung,exynos5440-pcie", },
> + { .compatible = "samsung,exynos5440-pcie",
> + .data = &exynos5440_pcie_ops },
A nit, please put brackets in new lines, so:
{
...
},
Acked-by: Krzysztof Kozlowski <krzk@...nel.org>
I didn't do a thorough review, though.
Best regards,
Krzysztof
Powered by blists - more mailing lists