xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@calxeda.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "julien.grall@linaro.org" <julien.grall@linaro.org>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	"stefano.stabellini@eu.citrix.com"
	<stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH v2 0/5] arm/early-printk: Improve reusability and add Calxeda support
Date: Thu, 30 May 2013 11:14:47 +0200	[thread overview]
Message-ID: <51A71887.1010108@calxeda.com> (raw)
In-Reply-To: <1369904360.13087.40.camel@zakaz.uk.xensource.com>

On 05/30/2013 10:59 AM, Ian Campbell wrote:
> On Fri, 2013-05-24 at 15:47 +0200, Andre Przywara wrote:
>> The current early-printk support for ARM is rather hard-coded, making
>> it hard to add machines or tweak settings.
>> This series slightly moves some code to gather UART settings in
>> xen/arch/arm/Rules.mk instead of the actual .c files. Also it allows
>> two different machines with different settings to share the same
>> driver, which the last patch exploits to add support the Calxeda
>> Midway hardware.
>>
>> This haven't been extensively tested, but I looked at the generated
>> assembly and did some quick checks on Versatile Express.
>>
>> Signed-off-by: Andre Przywara <andre.przywara@calxeda.com>
>
> All Acked + applied, thanks.

Thanks!

> I did wonder vaguely about:
>
> pulling the per board configs out of Rules.mk into
> earlyprintk-<board>.mk and doing:
>          ifneq($(CONFIG_EARLY_PRINTK),)
>          include earlyprintk-$(CONFIG_EARLY_PRINTK).mk
>          endif

Yeah, I also found it being in kind of the wrong place.
Just wasn't sure if early_printk justifies <n> extra files to be 
created. What about moving all the boards definitions into one file and 
including this? This keeps Rules.mk clean and avoids too much clutter.

> and
>
> using the presence or absence of EARLY_PRINTK_BAUD instead of using a
> separate EARLY_PRINTK_INIT_UART.

I was also wondering about this redundancy, this seems to be a nice 
solution for this. Thanks, will make a patch.

Regards,
Andre.

  reply	other threads:[~2013-05-30  9:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24 13:47 [PATCH v2 0/5] arm/early-printk: Improve reusability and add Calxeda support Andre Przywara
2013-05-24 13:47 ` [PATCH v2 1/5] arm/early-printk: calculate baud rate divisor from user provided value Andre Przywara
2013-05-24 14:01   ` Julien Grall
2013-05-24 13:47 ` [PATCH v2 2/5] arm/early-printk: allow skipping of UART init Andre Przywara
2013-05-24 14:02   ` Julien Grall
2013-05-24 13:47 ` [PATCH v2 3/5] arm/early-printk: move UART base address to Rules.mk Andre Przywara
2013-05-24 14:02   ` Julien Grall
2013-05-24 13:47 ` [PATCH v2 4/5] arm/early-printk: add support for ARM Fastmodel Andre Przywara
2013-05-24 14:03   ` Julien Grall
2013-05-24 13:47 ` [PATCH v2 5/5] arm/early-printk: add Calxeda Midway UART support Andre Przywara
2013-05-24 14:03   ` Julien Grall
2013-05-30  8:59 ` [PATCH v2 0/5] arm/early-printk: Improve reusability and add Calxeda support Ian Campbell
2013-05-30  9:14   ` Andre Przywara [this message]
2013-05-30  9:22     ` Ian Campbell

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=51A71887.1010108@calxeda.com \
    --to=andre.przywara@calxeda.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=julien.grall@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.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).