From: Dmitry Artamonow <mad_soft@inbox.lv>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 4/5] arm: sa1100: add a clock alias for sa1111 pcmcia device
Date: Tue, 12 Nov 2013 12:00:59 +0000 [thread overview]
Message-ID: <5282187B.7040402@inbox.lv> (raw)
In-Reply-To: <1384227132-10501-4-git-send-email-dbaryshkov@gmail.com>
12.11.2013 07:32, Dmitry Eremin-Solenikov wrote:
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/arm/mach-sa1100/clock.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-sa1100/clock.c b/arch/arm/mach-sa1100/clock.c
> index abf1dc1..cd4762d 100644
> --- a/arch/arm/mach-sa1100/clock.c
> +++ b/arch/arm/mach-sa1100/clock.c
> @@ -124,6 +124,7 @@ static struct clk_lookup sa11xx_clkregs[] = {
> CLKDEV_INIT("sa1100-rtc", NULL, NULL),
> CLKDEV_INIT("sa11x0-fb", NULL, &clk_cpu),
> CLKDEV_INIT("sa11x0-pcmcia", NULL, &clk_cpu),
> + CLKDEV_INIT("1600", NULL, &clk_cpu), /* sa1111 pcmcia */
Shouldn't it be "1800" here? As I can see device name for sa1111 devices is
initialized from offset in sa1111_init_one_child():
dev_set_name(&dev->dev, "%4.4lx", info->offset);
And the offset for SA1111_PCMCIA is 0x1800:
{
.offset = 0x1800,
.skpcr_mask = 0,
.devid = SA1111_DEVID_PCMCIA,
.irq = {
IRQ_S0_READY_NINT,
IRQ_S0_CD_VALID,
IRQ_S0_BVD1_STSCHG,
IRQ_S1_READY_NINT,
IRQ_S1_CD_VALID,
IRQ_S1_BVD1_STSCHG,
},
},
Also it would be nice if you could add some words about this strange
sa1111 device
naming convention in commit changelog. It's really puzzling to see
string like
"1600" in clock's devid.
--
Best regards,
Dmitry
WARNING: multiple messages have this Message-ID (diff)
From: mad_soft@inbox.lv (Dmitry Artamonow)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/5] arm: sa1100: add a clock alias for sa1111 pcmcia device
Date: Tue, 12 Nov 2013 16:00:59 +0400 [thread overview]
Message-ID: <5282187B.7040402@inbox.lv> (raw)
In-Reply-To: <1384227132-10501-4-git-send-email-dbaryshkov@gmail.com>
12.11.2013 07:32, Dmitry Eremin-Solenikov wrote:
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/arm/mach-sa1100/clock.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-sa1100/clock.c b/arch/arm/mach-sa1100/clock.c
> index abf1dc1..cd4762d 100644
> --- a/arch/arm/mach-sa1100/clock.c
> +++ b/arch/arm/mach-sa1100/clock.c
> @@ -124,6 +124,7 @@ static struct clk_lookup sa11xx_clkregs[] = {
> CLKDEV_INIT("sa1100-rtc", NULL, NULL),
> CLKDEV_INIT("sa11x0-fb", NULL, &clk_cpu),
> CLKDEV_INIT("sa11x0-pcmcia", NULL, &clk_cpu),
> + CLKDEV_INIT("1600", NULL, &clk_cpu), /* sa1111 pcmcia */
Shouldn't it be "1800" here? As I can see device name for sa1111 devices is
initialized from offset in sa1111_init_one_child():
dev_set_name(&dev->dev, "%4.4lx", info->offset);
And the offset for SA1111_PCMCIA is 0x1800:
{
.offset = 0x1800,
.skpcr_mask = 0,
.devid = SA1111_DEVID_PCMCIA,
.irq = {
IRQ_S0_READY_NINT,
IRQ_S0_CD_VALID,
IRQ_S0_BVD1_STSCHG,
IRQ_S1_READY_NINT,
IRQ_S1_CD_VALID,
IRQ_S1_BVD1_STSCHG,
},
},
Also it would be nice if you could add some words about this strange
sa1111 device
naming convention in commit changelog. It's really puzzling to see
string like
"1600" in clock's devid.
--
Best regards,
Dmitry
next prev parent reply other threads:[~2013-11-12 12:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-12 3:32 [PATCH 1/5] arm: sa1100: add cpu clock Dmitry Eremin-Solenikov
2013-11-12 3:32 ` Dmitry Eremin-Solenikov
2013-11-12 3:32 ` [PATCH 2/5] fbdev: sa1100fb: make use of device clock Dmitry Eremin-Solenikov
2013-11-12 3:32 ` Dmitry Eremin-Solenikov
2013-11-12 3:32 ` [PATCH 3/5] pcmcia: sa1100: " Dmitry Eremin-Solenikov
2013-11-12 3:32 ` Dmitry Eremin-Solenikov
2013-11-12 3:32 ` [PATCH 4/5] arm: sa1100: add a clock alias for sa1111 pcmcia device Dmitry Eremin-Solenikov
2013-11-12 3:32 ` Dmitry Eremin-Solenikov
2013-11-12 12:00 ` Dmitry Artamonow [this message]
2013-11-12 12:00 ` Dmitry Artamonow
2013-11-12 3:32 ` [PATCH 5/5] pcmcia: sa1111: make use of device clock Dmitry Eremin-Solenikov
2013-11-12 3:32 ` Dmitry Eremin-Solenikov
2013-11-12 9:57 ` [PATCH 1/5] arm: sa1100: add cpu clock Russell King - ARM Linux
2013-11-12 9:57 ` Russell King - ARM Linux
2013-11-12 10:37 ` Dmitry Eremin-Solenikov
2013-11-12 10:37 ` Dmitry Eremin-Solenikov
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=5282187B.7040402@inbox.lv \
--to=mad_soft@inbox.lv \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.