From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754119AbcLZOnr (ORCPT ); Mon, 26 Dec 2016 09:43:47 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:32780 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751128AbcLZOng (ORCPT ); Mon, 26 Dec 2016 09:43:36 -0500 From: "Jingoo Han" To: "'Jaehoon Chung'" , "'Pankaj Dubey'" , , , , Cc: , , , , , "'Niyas Ahmed S T'" , "'CPGS'" References: <1482490587-13611-1-git-send-email-pankaj.dubey@samsung.com> In-Reply-To: Subject: Re: [PATCH] PCI: exynos: refactor exynos pcie driver Date: Mon, 26 Dec 2016 09:43:31 -0500 Message-ID: <000201d25f86$6ee20bd0$4ca62370$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQD6LYNsK/w/YTf0Zs9kznhfsz3pBwHUDP8cAcY2BvOirdz34A== Content-Language: ko Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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'. Best regards, Jingoo Han > > Best Regards, > Jaehoon Chung > [.....]