From: Wolfgang Grandegger <wg@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Xenomai-core@domain.hid, Wolfgang Grandegger <wg@domain.hid>
Subject: Re: [Xenomai-core] [PATCH xenomai-2.5 0/3] rtcan: mscan: new OF platform driver for MPC521x and MPC5200
Date: Fri, 15 Jan 2010 15:26:14 +0100 [thread overview]
Message-ID: <4B507B06.4080206@domain.hid> (raw)
In-Reply-To: <4B5076F9.40508@domain.hid>
Gilles Chanteperdrix wrote:
> Wolfgang Grandegger wrote:
>> From: Wolfgang Grandegger <wg@domain.hid>
>>
>> This patch series adds RT-Socket-CAN support for the MSCAN on the MPC512x
>> from Freescale by introducing a new OF platform driver for both, the
>> MPC521x and MPC5200, while still keeping the old driver for the MPC5200
>> for compatibility with older kernel versions.
>
> Hi Wolfgang,
>
> there seems to be something missing, because I get a compilation error
> on lite-5200:
> http://sisyphus.hd.free.fr/~gilles/bx/#powerpc
Well, I obviously did not test the driver with old versions of the Linux
kernel, sorry. For 2.6.29 and 2.6.30 the following patch should fix the
build:
diff --git a/ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c
b/ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c
index 48abd89..47e34b6 100644
--- a/ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c
+++ b/ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c
@@ -76,7 +76,11 @@ static u32 __devinit mpc52xx_can_get_clock(struct
of_device *ofdev,
else
*mscan_clksrc = MSCAN_CLKSRC_XTAL;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+ freq = mpc52xx_find_ipb_freq(ofdev->node);
+#else
freq = mpc5xxx_get_bus_frequency(ofdev->node);
+#endif
if (!freq)
return 0;
For 2.4 I will have a close look now.
This proves, your regression test build tool is really useful.
Thanks,
Wolfgang.
next prev parent reply other threads:[~2010-01-15 14:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-14 12:07 [Xenomai-core] [PATCH xenomai-2.5 0/3] rtcan: mscan: new OF platform driver for MPC521x and MPC5200 Wolfgang Grandegger
2010-01-14 12:07 ` [Xenomai-core] [PATCH xenomai-2.5 1/3] rtcan: mscan: use tabs for indention and white space cleanup Wolfgang Grandegger
2010-01-14 12:07 ` [Xenomai-core] [PATCH xenomai-2.5 2/3] rtcan: mscan: use proper io accessor functions for register access Wolfgang Grandegger
2010-01-14 12:07 ` [Xenomai-core] [PATCH xenomai-2.5 3/3] rtcan: mscan: new OF platform driver for MPC521x and MPC5200 Wolfgang Grandegger
2010-01-14 12:07 ` Wolfgang Grandegger
2010-01-14 12:07 ` Wolfgang Grandegger
2010-01-14 12:14 ` Wolfgang Grandegger
2010-01-14 14:57 ` Gilles Chanteperdrix
2010-01-14 15:05 ` Wolfgang Grandegger
2010-01-15 14:08 ` [Xenomai-core] [PATCH xenomai-2.5 0/3] " Gilles Chanteperdrix
2010-01-15 14:26 ` Wolfgang Grandegger [this message]
2010-01-15 18:10 ` Gilles Chanteperdrix
[not found] ` <4B50D9C7.8090901@domain.hid>
2010-01-16 9:37 ` Gilles Chanteperdrix
2010-01-16 20:38 ` Wolfgang Grandegger
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=4B507B06.4080206@domain.hid \
--to=wg@domain.hid \
--cc=Xenomai-core@domain.hid \
--cc=gilles.chanteperdrix@xenomai.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.