linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: alexandre.belloni@free-electrons.com (Alexandre Belloni)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/7] ARM: at91: switch to multiplatform
Date: Fri, 6 Mar 2015 00:35:32 +0100	[thread overview]
Message-ID: <20150305233532.GD3989@piout.net> (raw)
In-Reply-To: <CAL_Jsq+r3KrAcR+n6uwo-k_OVNfzDrK+MNZ7ech_RsQirutaaQ@mail.gmail.com>

On 05/03/2015 at 16:50:57 -0600, Rob Herring wrote :
> > -config SOC_SAMA5
> > +config ARCH_AT91
> >         bool
> > -       select ATMEL_AIC5_IRQ
> > +       select ARCH_REQUIRE_GPIOLIB
> >         select COMMON_CLK_AT91
> > -       select CPU_V7
> > +       select CLKDEV_LOOKUP
> 
> This is already selected by COMMON_CLK I think.
> 
> >         select GENERIC_CLOCKEVENTS
> 
> This is already selected.
> 

I'm just moving options around I didn't add or remove any. That applies
to most of your comments.

> > -       select MEMORY
> > -       select ATMEL_SDRAMC
> > -       select PHYLIB if NETDEVICES
> > -
> > -menu "Atmel AT91 System-on-Chip"
> > -
> > -choice
> > -
> > -       prompt "Core type"
> > -
> > -config SOC_SAM_V4_V5
> > -       bool "ARM9 AT91SAM9/AT91RM9200"
> > -       help
> > -         Select this if you are using one of Atmel's AT91SAM9 or
> > -         AT91RM9200 SoC.
> > -
> > -config SOC_SAM_V7
> > -       bool "Cortex A5"
> > +       select IRQ_DOMAIN
> > +       select NEED_MACH_IO_H if PCCARD
> 
> This won't work on multi-platform.
> 

There is a patch removing it that is part of another series. IT will be
applied before this patch.

> 
> > +       select MEMORY
> > +       select ATMEL_SDRAMC
> > +       select PHYLIB if NETDEVICES
> 
> This belongs with your network driver.

Probably not, it is there because of the phy fixups. Anyway, it is being
removed by another series as we don't like to carry phy fixups.

> >  config AT91_TIMER_HZ
> > -       int "Kernel HZ (jiffies per second)"
> > -       range 32 1024
> > -       depends on ARCH_AT91
> > -       default "128" if SOC_AT91RM9200
> > -       default "100"
> > -       help
> > +       int "Kernel HZ (jiffies per second)"
> 
> How is this multi-platform compatible. This belongs with the
> clockevent driver probably.
> 

It is not different from what is done for ARCH_EXYNOS4 which is also
mutliplatform (and the more annoyingly ARMv7). I propose to restrict
that to SOC_AT91RM9200 so that it only affects ARMv4 (and I guess not
many people care about those now). I'm not sure it is a good idea to
move it to clokevents because of how it is handled in arch/arm/Kconfig.

I'll add a patch on top of that to further cleanup the unnecessary
options you pointed and moving COMMON_CLK_AT91 to driver/clk.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-03-05 23:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05 19:17 [PATCH v2 0/7] Switch mach-at91 to multiplatform Alexandre Belloni
2015-03-05 19:17 ` [PATCH v2 1/7] ARM: at91: switch " Alexandre Belloni
2015-03-05 22:50   ` Rob Herring
2015-03-05 23:35     ` Alexandre Belloni [this message]
2015-03-06  3:02       ` Rob Herring
2015-03-05 19:17 ` [PATCH v2 2/7] ARM: at91: switch at91_dt_defconfig " Alexandre Belloni
2015-03-05 19:17 ` [PATCH v2 3/7] ARM: at91: remove unused headers Alexandre Belloni
2015-03-05 19:17 ` [PATCH v2 4/7] ARM: at91: remove useless mach/cpu.h Alexandre Belloni
2015-03-05 19:17 ` [PATCH v2 5/7] ARM: at91: sama5d4: remove useless map_io Alexandre Belloni
2015-03-13 17:01   ` Nicolas Ferre
2015-03-05 19:17 ` [PATCH v2 6/7] ARM: at91: remove SoC headers Alexandre Belloni
2015-03-05 19:17 ` [PATCH v2 7/7] ARM: at91: remove hardware.h Alexandre Belloni

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=20150305233532.GD3989@piout.net \
    --to=alexandre.belloni@free-electrons.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).