From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753708AbaDDQQ5 (ORCPT ); Fri, 4 Apr 2014 12:16:57 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:53793 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296AbaDDQQz (ORCPT ); Fri, 4 Apr 2014 12:16:55 -0400 Message-ID: <533EDA9F.5090801@ti.com> Date: Fri, 4 Apr 2014 12:15:27 -0400 From: Murali Karicheri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: Lucas Stach CC: Arnd Bergmann , "xobs@kosagi.com" , "linux-arm-kernel@lists.infradead.org" , "linux-pci@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Richard Zhu , Kukjin Kim , Mohit Kumar , Jingoo Han , "Shilimkar, Santosh" , Bjorn Helgaas , Shawn Guo Subject: Re: [RESEND: RFC PATCH 3/3] pcie: keystone: add pcie driver based on designware core driver References: <1395707726-20437-1-git-send-email-m-karicheri2@ti.com> <1395707726-20437-4-git-send-email-m-karicheri2@ti.com> <235376049.yyfljDtinu@wuerfel> <533C460D.1030608@ti.com> <1396513926.5057.12.camel@weser.hi.pengutronix.de> In-Reply-To: <1396513926.5057.12.camel@weser.hi.pengutronix.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/3/2014 4:32 AM, Lucas Stach wrote: > Am Mittwoch, den 02.04.2014, 13:17 -0400 schrieb Murali Karicheri: >> Arnd, >> >> Thanks for reviewing the RFC patch. Please see below my response. >> >> On 3/25/2014 3:44 AM, Arnd Bergmann wrote: >>> On Monday 24 March 2014 20:35:26 Murali Karicheri wrote: > [...] >>>> + ks_pcie->clk = devm_clk_get(&pdev->dev, "pcie"); >>>> + if (IS_ERR(ks_pcie->clk)) { >>>> + dev_err(&pdev->dev, "Failed to get pcie rc clock\n"); >>>> + return PTR_ERR(ks_pcie->clk); >>>> + } >>>> + ret = clk_prepare_enable(ks_pcie->clk); >>>> + if (ret) >>>> + return ret; >>> Could you move the clock handling into the generic dw-pcie code? >> Could be. But currently only pci-exynos.c is using a clock name >> "pcie".pci-imx6.c uses pcie_axi" and >> will have to be fixed so that we can move this code to the generic >> dw-pcie code. Sean Cross is the >> author for pci-imx6.c. >> >> Sean, >> >> Is "pcie_axi" is the pcie hw clock? If so, can you rename this to "pcie" >> so that my patch can move the >> clock handling code to pcie designware code? >> > My series "i.MX6 PCIe binding change and MSI support" already changes > the clock name. So we could consolidate the clock handling once this is > in. Only difference is that the i.MX6 needs an additional PHY clock. > > Regards, > Lucas Lucas, Thanks. I will send a patch for this. Murali