From: m.szyprowski@samsung.com (Marek Szyprowski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: S5PV210: Fix build breakage due to renaming of S3C_VA_USB_HSPHY
Date: Thu, 09 Jun 2011 09:05:50 +0200 [thread overview]
Message-ID: <000001cc2673$aa7cc560$ff765020$%szyprowski@samsung.com> (raw)
In-Reply-To: <BANLkTinP=J07jsprzGO=+hsjMQ9C6_VBcw@mail.gmail.com>
Hello,
On Wednesday, June 08, 2011 4:55 PM Thomas Abraham wrote:
> On 8 June 2011 19:43, Kyungmin Park <kmpark@infradead.org> wrote:
> > On Wed, Jun 8, 2011 at 10:53 PM, Marek Szyprowski
> > <m.szyprowski@samsung.com> wrote:
> >> Hello,
> >>
> >> There is already the patch that fixes this issue available on
> >> kgene/s5p_fixes_for_linus branch. Please check commit 08115a139 from
> >> git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
> >>
> >> On Wednesday, June 08, 2011 1:26 PM Thomas Abraham wrote:
> >>
> >>> 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.
> >
> > Hi Thomas & Marek,
>
> Hi Mr. Park,
>
> >
> > 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
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.
> 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.
> 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.
I'm also against renaming, it will just create more confusion and
problems with rebasing patches.
Best regards
--
Marek Szyprowski
Samsung Poland R&D Center
prev parent reply other threads:[~2011-06-09 7:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1307532337-29348-1-git-send-email-thomas.ab@samsung.com>
[not found] ` <005501cc25e3$7df601e0$79e205a0$%szyprowski@samsung.com>
2011-06-08 14:13 ` [PATCH] ARM: S5PV210: Fix build breakage due to renaming of S3C_VA_USB_HSPHY Kyungmin Park
2011-06-08 14:54 ` Thomas Abraham
2011-06-09 7:05 ` Marek Szyprowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001cc2673$aa7cc560$ff765020$%szyprowski@samsung.com' \
--to=m.szyprowski@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).