From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 03 Mar 2016 10:56:12 +0100 Subject: [U-Boot] [PATCH v3 1/3] board:freescale:common: Move device-tree fixup framework to common file In-Reply-To: References: <1456815817-18578-1-git-send-email-sriram.dash@nxp.com> <1456815817-18578-2-git-send-email-sriram.dash@nxp.com> <56D61402.3020301@denx.de> Message-ID: <56D80A3C.1020707@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/03/2016 09:29 AM, Sriram Dash wrote: > > >> -----Original Message----- >> From: Marek Vasut [mailto:marex at denx.de] >> Sent: Wednesday, March 02, 2016 3:43 AM >> To: Sriram Dash ; u-boot at lists.denx.de >> Cc: york sun ; Ramneek Mehresh >> ; Rajesh Bhagat ; Tom >> Rini >> Subject: Re: [PATCH v3 1/3] board:freescale:common: Move device-tree fixup >> framework to common file >> >> On 03/01/2016 08:03 AM, Sriram Dash wrote: >>> Move usb device-tree fixup framework from ehci-fsl.c to common place >>> so that it can be used by other drivers as well (xhci-fsl.c). >>> >>> Signed-off-by: Ramneek Mehresh >>> Signed-off-by: Sriram Dash >>> --- >>> board/freescale/common/Makefile | 2 + >>> .../ehci-fsl.c => board/freescale/common/usb.c | 160 +---------------- >>> drivers/usb/host/ehci-fsl.c | 195 --------------------- >>> 3 files changed, 3 insertions(+), 354 deletions(-) copy >>> drivers/usb/host/ehci-fsl.c => board/freescale/common/usb.c (53%) >> >> Where is the changelog ? > > Will include changelog for v2 and v3 in v4. > >> >>> diff --git a/board/freescale/common/Makefile >>> b/board/freescale/common/Makefile index be114ce..62de45c 100644 >>> --- a/board/freescale/common/Makefile >>> +++ b/board/freescale/common/Makefile >>> @@ -13,6 +13,8 @@ MINIMAL=y >>> endif >>> endif >>> >>> +obj-$(CONFIG_USB_EHCI_FSL) += usb.o >>> + >>> ifdef MINIMAL >>> # necessary to create built-in.o >>> obj- := __dummy__.o >>> diff --git a/drivers/usb/host/ehci-fsl.c >>> b/board/freescale/common/usb.c similarity index 53% copy from >>> drivers/usb/host/ehci-fsl.c copy to board/freescale/common/usb.c index >>> 97b7f14..85cb1bf 100644 >>> --- a/drivers/usb/host/ehci-fsl.c >>> +++ b/board/freescale/common/usb.c >>> @@ -1,9 +1,5 @@ >>> /* >>> - * (C) Copyright 2009, 2011 Freescale Semiconductor, Inc. >>> - * >>> - * (C) Copyright 2008, Excito Elektronik i Sk=E5ne AB >>> - * >>> - * Author: Tor Krill tor at excito.com >>> + * (C) Copyright 2016 Freescale Semiconductor, Inc. >> >> What's with this copyright change here ? > > It is a new file named common/usb.c. Shall I include the complete ehci-fsl.c copyright information in the new file? There is already a file named common/usb.c , you surely mean board/freescale/common/usb.c , yes ? According to git, it's not a new file: b/board/freescale/common/usb.c similarity index 53% copy from drivers/usb/host/ehci-fsl.c copy to board/freescale/common/usb.c so yes, it should retain all copyright info. And now that I am looking at it, I would much rather see the fixup bits in drivers/usb/host/ than some board-specific file. You can very well put those into fsl-dt-fixup.c or whatever there. >> >>> * SPDX-License-Identifier: GPL-2.0+ >>> */ >>> @@ -17,164 +13,11 @@ >>> #include >>> #include >>> >>> -#include "ehci.h" >> [...] >> >> -- >> Best regards, >> Marek Vasut > > Best Regards, > Sriram > -- Best regards, Marek Vasut