From: Andreas Larsson <andreas@gaisler.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: software@gaisler.com, linux-can@vger.kernel.org,
Wolfgang Grandegger <wg@grandegger.com>
Subject: Re: [PATCH v2] can: sja1000: Make sja1000_of_platform selectable and compilable on SPARC
Date: Mon, 12 Nov 2012 18:52:38 +0100 [thread overview]
Message-ID: <50A13766.7040407@gaisler.com> (raw)
In-Reply-To: <1349359150-18012-1-git-send-email-andreas@gaisler.com>
On 10/04/2012 03:59 PM, Andreas Larsson wrote:
> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Hi!
As of v3.7-rc5, this patch now works properly (of_address_to_resource is now
once again available for sparc). It would be nice to have it applied, unless the
work on integrating sja1000_of_platform into sja1000_platform will be applied
soon (and work for sparc). I'll be happy to test new versions on that initiative
if that is the way you want to go.
It would be nice to get sja1000 to work on sparc soon in some way or another.
Cheers,
Andreas
> ---
> drivers/net/can/sja1000/Kconfig | 2 +-
> drivers/net/can/sja1000/sja1000_of_platform.c | 6 ++++--
> 2 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/can/sja1000/Kconfig b/drivers/net/can/sja1000/Kconfig
> index 03df9a8..44abee4 100644
> --- a/drivers/net/can/sja1000/Kconfig
> +++ b/drivers/net/can/sja1000/Kconfig
> @@ -21,7 +21,7 @@ config CAN_SJA1000_PLATFORM
>
> config CAN_SJA1000_OF_PLATFORM
> tristate "Generic OF Platform Bus based SJA1000 driver"
> - depends on PPC_OF
> + depends on OF
> ---help---
> This driver adds support for the SJA1000 chips connected to
> the OpenFirmware "platform bus" found on embedded systems with
> diff --git a/drivers/net/can/sja1000/sja1000_of_platform.c b/drivers/net/can/sja1000/sja1000_of_platform.c
> index f2683eb..e45258d 100644
> --- a/drivers/net/can/sja1000/sja1000_of_platform.c
> +++ b/drivers/net/can/sja1000/sja1000_of_platform.c
> @@ -42,6 +42,8 @@
> #include <linux/can/dev.h>
>
> #include <linux/of_platform.h>
> +#include <linux/of_address.h>
> +#include <linux/of_irq.h>
> #include <asm/prom.h>
>
> #include "sja1000.h"
> @@ -59,13 +61,13 @@ MODULE_LICENSE("GPL v2");
>
> static u8 sja1000_ofp_read_reg(const struct sja1000_priv *priv, int reg)
> {
> - return in_8(priv->reg_base + reg);
> + return ioread8(priv->reg_base + reg);
> }
>
> static void sja1000_ofp_write_reg(const struct sja1000_priv *priv,
> int reg, u8 val)
> {
> - out_8(priv->reg_base + reg, val);
> + iowrite8(val, priv->reg_base + reg);
> }
>
> static int __devexit sja1000_ofp_remove(struct platform_device *ofdev)
>
next prev parent reply other threads:[~2012-11-12 17:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-02 13:13 [PATCH] can: sja1000: Make sja1000_of_platform selectable and compilable on SPARC Andreas Larsson
2012-10-04 12:49 ` Marc Kleine-Budde
2012-10-04 13:43 ` Andreas Larsson
2012-10-04 13:59 ` [PATCH v2] " Andreas Larsson
2012-10-04 14:42 ` Marc Kleine-Budde
2012-10-04 15:12 ` Marc Kleine-Budde
2012-10-05 9:01 ` Andreas Larsson
2012-10-05 9:05 ` Marc Kleine-Budde
2012-10-05 9:16 ` Andreas Larsson
2012-10-05 9:19 ` Marc Kleine-Budde
2012-11-12 17:52 ` Andreas Larsson [this message]
2012-11-22 11:30 ` Marc Kleine-Budde
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=50A13766.7040407@gaisler.com \
--to=andreas@gaisler.com \
--cc=linux-can@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=software@gaisler.com \
--cc=wg@grandegger.com \
/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.