ARM: S5PV210: Fix build breakage due to renaming of S3C_VA_USB_HSPHY
Subsystems (3)
PATCH 1/1 ARM: S5PV210: Fix build breakage due to renaming of S3C_VA_USB_HSPHY
Commit 8f1d169f999fea892c3fcbf5a79ae8525a477572
("ARM: EXYNOS4: Add usb host phy control") renamed S3C_VA_USB_HSPHY to S5P_VA_USB_HSPHY in s5p-map.h file. Fix build for S5PV210 platform.
--- arch/arm/mach-s5pv210/cpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-s5pv210/cpu.c +1 -1
@@ -91,7 +91,7 @@ static struct map_desc s5pv210_iodesc[] __initdata = { .length = SZ_4K, .type = MT_DEVICE, }, { - .virtual = (unsigned long)S3C_VA_USB_HSPHY, + .virtual = (unsigned long)S5P_VA_USB_HSPHY, .pfn =__phys_to_pfn(S5PV210_PA_HSPHY), .length = SZ_4K, .type = MT_DEVICE,
Signature · 1 line
1.6.6.rc2
Hello,
There is already the patch that fixes this issue available on kgene/s5p_fixes_for_linus branch. Please check commit 08115a139 fromgit://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
Quoted 23 lines · Thomas Abraham
Commit
8f1d169f999fea892c3fcbf5a79ae8525a477572
("ARM: EXYNOS4: Add usb host phy control") renamedS3C_VA_USB_HSPHYtoS5P_VA_USB_HSPHYins5p-map.hfile. Fix build for S5PV210 platform.Signed-off-by Thomas Abraham <[email protected]>--- arch/arm/mach-s5pv210/cpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-s5pv210/cpu.c +1
-2@@ -91,7 +91,7 @@ static struct map_desc s5pv210_iodesc[] __initdata = { .length = SZ_4K, .type = MT_DEVICE, }, { - .virtual = (unsigned long)S3C_VA_USB_HSPHY, + .virtual = (unsigned long)S5P_VA_USB_HSPHY, .pfn =__phys_to_pfn(S5PV210_PA_HSPHY), .length = SZ_4K, .type = MT_DEVICE, --
Quoted 1 line
1.6.6.rc2
S3C_VA_USB_HSPHY is the correct name, it is also used on s3c64xx and s3c-hsotg driver (see drivers/usb/gadget).
Best regards
Signature · 2 lines
Marek Szyprowski Samsung Poland R&D Center
Quoted 5 lines · Marek Szyprowski
Hello,
There is already the patch that fixes this issue available on kgene/s5p_fixes_for_linus branch. Please check commit
08115a139fromgit://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
Thanks Marek. I apologize for the noise.
Quoted 42 lines · Thomas Abraham
Quoted 24 lines
Commit
8f1d169f999fea892c3fcbf5a79ae8525a477572
("ARM: EXYNOS4: Add usb host phy control") renamedS3C_VA_USB_HSPHYtoS5P_VA_USB_HSPHYins5p-map.hfile. Fix build for S5PV210 platform.Signed-off-by Thomas Abraham <[email protected]>---
arch/arm/mach-s5pv210/cpu.c | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-s5pv210/cpu.c +1
-2@@ -91,7 +91,7 @@ static struct map_desc s5pv210_iodesc[] __initdata = { .length = SZ_4K, .type = MT_DEVICE, }, { - .virtual = (unsigned long)S3C_VA_USB_HSPHY, + .virtual = (unsigned long)S5P_VA_USB_HSPHY, .pfn =__phys_to_pfn(S5PV210_PA_HSPHY), .length = SZ_4K, .type = MT_DEVICE, --Quoted 1 line
1.6.6.rc2
S3C_VA_USB_HSPHYis the correct name, it is also used on s3c64xx and s3c-hsotg driver (seedrivers/usb/gadget).Best regards
--
Marek Szyprowski
Samsung Poland R&D Center--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 1/1 ARM: S5PV210: Fix build breakage due to renaming of S3C_VA_USB_HSPHY
In reply to Marek SzyprowskiQuoted 11 lines · Marek Szyprowski
Hello,
There is already the patch that fixes this issue available on kgene/s5p_fixes_for_linus branch. Please check commit
08115a139fromgit://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.gitQuoted 3 lines · Thomas Abraham
Commit
8f1d169f999fea892c3fcbf5a79ae8525a477572
("ARM: EXYNOS4: Add usb host phy control") renamedS3C_VA_USB_HSPHYtoS5P_VA_USB_HSPHYins5p-map.hfile. Fix build for S5PV210 platform.
Hi Thomas & Marek,
We lived for long time with mismatch prefix.
So how about to clean up the mismatch prefix, S3C_* and S5P_* at this time?
One method is that it just passes the physical address and driver should ioremap at driver instead of static mapping.
How do you think?
Thank you,
Kyungmin Park
Quoted 36 lines
Quoted 20 lines
Signed-off-by Thomas Abraham <[email protected]>---
?arch/arm/mach-s5pv210/cpu.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-s5pv210/cpu.c +1
-2@@ -91,7 +91,7 @@ static struct map_desc s5pv210_iodesc[] __initdata = { ? ? ? ? ? ? ? .length ? ? ? ? = SZ_4K, ? ? ? ? ? ? ? .type ? ? ? ? ? = MT_DEVICE, ? ? ? }, { - ? ? ? ? ? ? .virtual ? ? ? ?= (unsigned long)S3C_VA_USB_HSPHY, + ? ? ? ? ? ? .virtual ? ? ? ?= (unsigned long)S5P_VA_USB_HSPHY, ? ? ? ? ? ? ? .pfn ? ? ? ? ? ?=__phys_to_pfn(S5PV210_PA_HSPHY), ? ? ? ? ? ? ? .length ? ? ? ? = SZ_4K, ? ? ? ? ? ? ? .type ? ? ? ? ? = MT_DEVICE, --Quoted 1 line
1.6.6.rc2
S3C_VA_USB_HSPHYis the correct name, it is also used on s3c64xx and s3c-hsotg driver (seedrivers/usb/gadget).Best regards
--
Marek Szyprowski
Samsung Poland R&D Center--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at ?http://vger.kernel.org/majordomo-info.html
PATCH 1/1 ARM: S5PV210: Fix build breakage due to renaming of S3C_VA_USB_HSPHY
Quoted 8 lines · Kyungmin Park
Quoted 6 lines · Marek Szyprowski
Hello,
There is already the patch that fixes this issue available on kgene/s5p_fixes_for_linus branch. Please check commit
08115a139fromgit://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
Quoted 7 lines
Quoted 5 lines · Thomas Abraham
Quoted 4 lines
Commit
8f1d169f999fea892c3fcbf5a79ae8525a477572
("ARM: EXYNOS4: Add usb host phy control") renamedS3C_VA_USB_HSPHYtoS5P_VA_USB_HSPHYins5p-map.hfile. Fix build for S5PV210 platform.Hi Thomas & Marek,
Hi Mr. Park,
Quoted 8 lines
We lived for long time with mismatch prefix.
So how about to clean up the mismatch prefix, S3C_* and S5P_* at this time?One method is that it just passes the physical address and driver should ioremap at driver instead of static mapping.
How do you think?
USB Phy region static mapping could be moved to driver but how do we have handle SROMC? There is no particular driver as such for SROMC. There are others such as COREPERI_BASE and DMC that do not have any driver.
And most of the platform data and code are reusable across SoC since we use common macros. For example, arch/arm/plat-samsung/dev-hsmmc.c. If we use physical address in such cases, we will have to duplicate it.
As long as we can reuse s3c prefix for s5p plaforms, probably we should continue using them. Any new additions for S5P platforms should use the s5p prefix. Or we could arrive at a common consensus and stick to it. I prefer not to rename s3c prefixes which are reusable for s5p platforms.
Thanks,
Thomas.
Quoted 45 lines
Thank you,
Kyungmin ParkQuoted 31 lines
Quoted 20 lines
Signed-off-by Thomas Abraham <[email protected]>---
?arch/arm/mach-s5pv210/cpu.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-s5pv210/cpu.c +1
-2@@ -91,7 +91,7 @@ static struct map_desc s5pv210_iodesc[] __initdata = { ? ? ? ? ? ? ? .length ? ? ? ? = SZ_4K, ? ? ? ? ? ? ? .type ? ? ? ? ? = MT_DEVICE, ? ? ? }, { - ? ? ? ? ? ? .virtual ? ? ? ?= (unsigned long)S3C_VA_USB_HSPHY, + ? ? ? ? ? ? .virtual ? ? ? ?= (unsigned long)S5P_VA_USB_HSPHY, ? ? ? ? ? ? ? .pfn ? ? ? ? ? ?=__phys_to_pfn(S5PV210_PA_HSPHY), ? ? ? ? ? ? ? .length ? ? ? ? = SZ_4K, ? ? ? ? ? ? ? .type ? ? ? ? ? = MT_DEVICE, --Quoted 1 line
1.6.6.rc2
S3C_VA_USB_HSPHYis the correct name, it is also used on s3c64xx and s3c-hsotg driver (seedrivers/usb/gadget).Best regards
--
Marek Szyprowski
Samsung Poland R&D CenterQuoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at ?http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at ?http://vger.kernel.org/majordomo-info.html
PATCH 1/1 ARM: S5PV210: Fix build breakage due to renaming of S3C_VA_USB_HSPHY
Hello,
Quoted 22 lines · Thomas Abraham
Quoted 8 lines · Kyungmin Park
Quoted 6 lines · Marek Szyprowski
Hello,
There is already the patch that fixes this issue available on kgene/s5p_fixes_for_linus branch. Please check commit
08115a139fromgit://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.gitQuoted 7 lines
Quoted 5 lines · Thomas Abraham
Quoted 4 lines
Commit
8f1d169f999fea892c3fcbf5a79ae8525a477572
("ARM: EXYNOS4: Add usb host phy control") renamedS3C_VA_USB_HSPHYtoS5P_VA_USB_HSPHYins5p-map.hfile. Fix build for S5PV210 platform.Hi Thomas & Marek,
Hi Mr. Park,
Quoted 3 lines
We lived for long time with mismatch prefix.
So how about to clean up the mismatch prefix, S3C_* and S5P_* at this
Quoted 8 lines
time?
Quoted 5 lines
One method is that it just passes the physical address and driver should ioremap at driver instead of static mapping.
How do you think?
USB Phy region static mapping could be moved to driver
It's not that easy as it might look at first sight. Please note that USBPHY registers are shared between host usb controller (PHY1 interface) and device usb controller (PHY0 interface). You need to provide some global arbitration mechanism for accessing usb phy registers to avoid registers trashing between the OHCI/EHCI and OTG drivers. That's why having it mapped globally with some helper functions that perform serialization is really convenient.
Quoted 2 lines
but how do we
have handle SROMC? There is no particular driver as such for SROMC.
SROMC area is something really different. It is used only by SMDK machines for creating a iospace for external ethernet ship. IMHO this area should be mapped by the SMDK board startup code not the core Exynos4 cpu code.
Quoted 8 lines
There are others such as
COREPERI_BASEand DMC that do not have any driver.And most of the platform data and code are reusable across SoC since we use common macros. For example,
arch/arm/plat-samsung/dev-hsmmc.c. If we use physical address in such cases, we will have to duplicate it.
Quoted 5 lines
As long as we can reuse s3c prefix for s5p plaforms, probably we should continue using them. Any new additions for S5P platforms should use the s5p prefix. Or we could arrive at a common consensus and stick to it. I prefer not to rename s3c prefixes which are reusable for s5p platforms.
I'm also against renaming, it will just create more confusion and problems with rebasing patches.
Best regards
Signature · 2 lines
Marek Szyprowski Samsung Poland R&D Center