From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jingoo Han Subject: Re: [PATCH V5 1/3] pci: Add PCIe driver for Samsung Exynos Date: Tue, 18 Jun 2013 14:35:54 +0900 Message-ID: <000001ce6be5$b3fd0730$1bf71590$@samsung.com> References: <000b01ce6839$0f0455d0$2d0d0170$@samsung.com> <3539874.V7zkhbMg0b@wuerfel> <005e01ce6b3f$74e3c940$5eab5bc0$@samsung.com> <7174350.I5qK0sQfHM@wuerfel> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <7174350.I5qK0sQfHM@wuerfel> Content-language: ko Sender: linux-pci-owner@vger.kernel.org To: 'Arnd Bergmann' , linux-arm-kernel@lists.infradead.org Cc: 'Thomas Petazzoni' , 'Jason Gunthorpe' , linux-samsung-soc@vger.kernel.org, 'Siva Reddy Kallam' , 'Surendranath Gurivireddy Balla' , linux-pci@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, 'Thierry Reding' , linux-kernel@vger.kernel.org, 'Grant Likely' , 'Kukjin Kim' , 'Thomas Abraham' , 'Bjorn Helgaas' , 'Andrew Murray' , Jingoo Han List-Id: devicetree@vger.kernel.org On Monday, June 17, 2013 9:45 PM, Arnd Bergmann wrote: > On Monday 17 June 2013 18:45:52 Jingoo Han wrote: > > On Friday, June 14, 2013 9:54 PM, Arnd Bergmann wrote: > > > [.....] > > > > > > +static int __exit exynos_pcie_remove(struct platform_device *pdev) > > > > > > +{ > > > > > > + struct pcie_port *pp = platform_get_drvdata(pdev); > > > > > > + > > > > > > + clk_disable_unprepare(pp->bus_clk); > > > > > > + clk_disable_unprepare(pp->clk); > > > > > > + > > > > > > + return 0; > > > > > > +} > > > > > > > > > > You also don't remove the PCI devices here, as mentioned in an earlier > > > > > review. > > > > > > > > I reviewed Marvell PCIe driver and Tegra PCIe driver; however, > > > > I cannot know what you mean. > > > > > > > > Could let me know which additional functions are needed? > > > > > > The mvebu driver does not allow module unload. I haven't looked at the > > > tegra driver. If you allow unloading the driver and provide a 'remove' > > > callback, that callback needs to clean up the entire bus and remove > > > all child devices that were added as well as undo everything the > > > probe function did. I think it would be great if you can do that, although > > > it might not be easy. The simplest solution would be to not support > > > unloading though. > > > > As the mvebu driver uses platform_driver_probe(), the Exynos driver uses > > platform_driver_probe(). Thus, I will not provide a 'remove' callback. > > Well, the important part is not to provide a module_exit() function, which > will ensure the driver cannot be unloaded. Aha, I see. I will not provide a module_exit() function), as the mvebu driver does. Best regards, Jingoo Han > > Arnd