Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755956AbcL0BMn (ORCPT ); Mon, 26 Dec 2016 20:12:43 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:54689 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755822AbcL0BMk (ORCPT ); Mon, 26 Dec 2016 20:12:40 -0500 X-AuditID: b6c32a3c-f79646d000004d82-7c-5861c00552a9 Subject: Re: [PATCH] PCI: exynos: refactor exynos pcie driver To: Jingoo Han , "'Pankaj Dubey'" , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org Cc: krzk@kernel.org, kgene@kernel.org, bhelgaas@google.com, alim.akhtar@samsung.com, sanath@samsung.com, "'Niyas Ahmed S T'" , "'CPGS'" From: Jaehoon Chung Message-id: <2855bb4c-1296-dea3-56c8-e554d1fea8f9@samsung.com> Date: Tue, 27 Dec 2016 10:12:36 +0900 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-version: 1.0 In-reply-to: <000201d25f86$6ee20bd0$4ca62370$@gmail.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOJsWRmVeSWpSXmKPExsWy7bCmri7rgcQIg2lnlCwezNvGZrGkKcPi 5SFNixVfZrJb9D9+zWxx/vwGdotNj6+xWlzeNYfN4uy842wWM87vY7J4MuURq8WirV/YLaat W8fswOuxc9Zddo8Fm0o9Nq3qZPPYvKTeo2/LKkaPz5vkAtiiUm0yUhNTUosUUvOS81My89Jt lbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgK5UUihLzCkFCgUkFhcr6dvZFOWXlqQq ZOQXl9gqRRsaGukZGpjrGRkZ6ZkYx1oZmQKVJKRmbFr0gbXgiWhF/4tTbA2M0wW7GDk5JARM JH7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i a2CcLtjFyMkhIWAisfHnPkYIW0ziwr31bF2MXBxCAksZJRa0zAFLCAk8YJS4sFwaxBYWsJU4 3bWXCaRIROAGo0TTt+eMEB2NTBJdl2aDOcwCmxklHrW9ZwdpYRPQkdj+7ThQCwcHr4CdxL7b RiAmi4CqxNIZ6iCmqECYxPNGJ5BiXgFBiR+T77GA2JwCFhI/7x5mBilhFtCTuH9RCyTMLCAv sXnNW+YJjAKzkHTMQqiahaRqASPzKkaJ1ILkguKk9FzDvNRyveLE3OLSvHS95PzcTYzg6Hwm tYPx4C73Q4wCHIxKPLw/lidGCLEmlhVX5h5ilOBgVhLh3boLKMSbklhZlVqUH19UmpNafIjR FOiJicxSosn5wMSRVxJvaGJuYm5sYGFuaWlipCTO2zj7WbiQQHpiSWp2ampBahFMHxMHp1QD o05wZcl2lsp1ovm8WyzfKT1//vOkyYITQXeSH5g+kMz9MuMDc+PilsocjeQdrauDprzc6LXO 99jcY2cWzI29N/dL66l1ruV+VxfJfbwfHfb3TW1xwPEF4is8/M7c3P10R216apde+hz77izj k23C0v/aNq+7bL1fy/5jUULQg+nTDopc00hV3KTEUpyRaKjFXFScCACjLNz45AIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161227011236epcas1p3987c656d3d6722329056521c5acb37d6 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS/ssYXsnoQ=?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbUzUvU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20161223105411epcas1p3727f726e757ec6c6d7bff04a9af40077 X-RootMTR: 20161223105411epcas1p3727f726e757ec6c6d7bff04a9af40077 References: <1482490587-13611-1-git-send-email-pankaj.dubey@samsung.com> <000201d25f86$6ee20bd0$4ca62370$@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2699 Lines: 87 Dear Jingoo, On 12/26/2016 11:43 PM, Jingoo Han wrote: > Jaehoon Chung wtote: >> >> Hi Pankaj, >> >> On 12/23/2016 07:56 PM, Pankaj Dubey wrote: >>> From: Niyas Ahmed S T >>> >>> 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. >> >> It's nice to me for reusing this file. >> but after considering too many times, i decided not to use this file. >> >> I'm not sure what block base is..actually this pci-exynos.c is really >> black-box. >> (No one maintains this file, even Samsung didn't care.) >> Who is using this? >> If Someone can share the information about exynos5440, i can refactor >> everything. >> Otherwise, there are two solution.. >> >> One is "adding the new pci-exynos.c" likes pci-exynos5433.c > > As Bjorn mentioned earlier, I agree with this option. > >> Other is "refactor this file" under assuming the each register's usage. > > But, if possible, I prefer this option. > I am not sure that it cannot make the code dirty. > Maybe, you need to discuss with hardware design engineers. > >> >> I want to use the PHY generic Framework for EXYNOS PCIe. >> >> If you or other guys really want to use the pci-exynos.c for other exynos, >> I will rework with PHY generic framework. Then i will resend the my >> patches as V2. > > When I submitted the pci-exynos.c, there was no PHY generic framework. > But, currently, using PHY generic framework is mandatory, as other PCIe host > driver did. > I think that we should use PHY generic framework for new SoCs. > >> >> One more thing..Does anyone know what the usage of block base is? >> Can i use that register as "syscon"? > > 'Block' is very specific registers for 5440. > Other Exynos SoCs do not use that registers. > Actually, it is not the same with 'syscon'. > But, you can assume 'block' as 'syscon'. Great! I want to know it. Then i will refactor this file for all other Exynos SoCs. And Could you check my RFC patches? Maybe i missed your email in my RFC patches. https://lkml.org/lkml/2016/12/26/6 Best Regards, Jaehoon Chung > > Best regards, > Jingoo Han > >> >> Best Regards, >> Jaehoon Chung >> > [.....] > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > >