Re: [PATCH 1/2] arm: msm: fix up very basic HTC Sapphire support

From: David Brown
Date: Fri May 11 2012 - 14:09:26 EST


On Wed, May 09, 2012 at 01:39:05AM -0700, Olof Johansson wrote:
> Hi,
>
> On Wed, Apr 11, 2012 at 9:04 PM, Daniel Walker <dwalker@xxxxxxxxxx> wrote:
> > Adds sapphire into the make file, and fixes all the code problems that
> > prevented it from building (including adding board-sapphire.h)
> >
> > Signed-off-by: Daniel Walker <dwalker@xxxxxxxxxx>
> > ---
> >  arch/arm/mach-msm/Kconfig          |   10 +-
> >  arch/arm/mach-msm/Makefile         |    1 +
> >  arch/arm/mach-msm/board-sapphire.c |   18 +--
> >  arch/arm/mach-msm/board-sapphire.h |  224 ++++++++++++++++++++++++++++++++++++
> >  4 files changed, 235 insertions(+), 18 deletions(-)
> >  create mode 100644 arch/arm/mach-msm/board-sapphire.h
> >
> > diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
> > index 1cd40ad..04f3b8e 100644
> > --- a/arch/arm/mach-msm/Kconfig
> > +++ b/arch/arm/mach-msm/Kconfig
> > @@ -6,7 +6,6 @@ choice
> >
> >  config ARCH_MSM7X00A
> >        bool "MSM7x00A / MSM7x01A"
> > -       select MACH_TROUT if !MACH_HALIBUT
> >        select ARCH_MSM_ARM11
> >        select MSM_SMD
> >        select MSM_SMD_PKG3
> > @@ -80,6 +79,7 @@ config  MSM_VIC
> >  menu "Qualcomm MSM Board Type"
> >
> >  config MACH_HALIBUT
> > +       select MACH_TROUT if !MACH_SAPPHIRE && !MACH_HALIBUT
>
> This doesn't seem to make much sense here.
>
> >        depends on ARCH_MSM
> >        depends on ARCH_MSM7X00A
> >        bool "Halibut Board (QCT SURF7201A)"
> > @@ -93,6 +93,14 @@ config MACH_TROUT
> >        help
> >          Support for the HTC Dream, T-Mobile G1, Android ADP1 devices.
> >
> > +config MACH_SAPPHIRE
> > +       select MACH_TROUT if !MACH_HALIBUT && !MACH_SAPPHIRE
>
> Nor does this.
>
> I presume these are here to make sure that at least one of the boards
> is selected. There are already build checks to make sure that at least
> one machine entry exists, so if a user mis-configures his kernel he
> will hit a build error. Seems as reasonable as any catch for this.
>
> If you feel strongly that you need to select at least one board, then
> do so at the ARCH_ level, not on every board option.

I'll go ahead and leave this patch out of the msm-core tree for 3.5.
Daniel, feel free to update the patch, and I can make another pull.

David

--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/