From: Oliver Hartkopp <socketcan@hartkopp.net>
To: mkl@pengutronix.de
Cc: linux-can@vger.kernel.org
Subject: sja1000 private defines - was: Re: pull-request: can 2013-03-27
Date: Tue, 02 Apr 2013 08:01:56 +0200 [thread overview]
Message-ID: <515A7454.9050905@hartkopp.net> (raw)
In-Reply-To: <20130327.141045.999210087722896364.davem@davemloft.net>
On 27.03.2013 19:10, David Miller wrote:
> From: Marc Kleine-Budde <mkl@pengutronix.de>
> Date: Wed, 27 Mar 2013 15:05:26 +0100
>
>> Hello David,
>>
>> here's a patch series for net for the v3.9 release cycle. Fengguang Wu found
>> two problems with the sja1000 drivers:
>>
>> A macro in the SH architecture collides with one in the sja1000 driver. I
>> created a minimal patch suited for stable, only changing this particular
>> define. (Once net is merged back to net-next, I'll post a patch to uniformly
>> use a SJA1000_ prefix for the sja100 private defines.)
Hello Marc,
i would suggest to replace REG_ with SJA_ for SJA1000 private defines.
1. There's only one "SJA_EN" private(!) define in
linux/drivers/infiniband/hw/qib/qib_iba7322.c
which we'll never clash with. There SJA_ is a short form of SPC_JTAG_ and
(even if it's not necessary) SJA_EN could be renamed to SJTAG_EN
2. Replacing REG_ with SJA1000_REG_ will produce a linebreak hell in all
SJA1000 drivers (and the patch of course)
Naming SJA1000 private defines with SJA_ instead of REG_ (and rename your new
SJA1000_REG_SR back to SJA_SR) looks the more handy change to me.
Regards,
Oliver
~/linux$ find . -name \*.[ch] | grep -v can | xargs grep SJA
./include/generated/autoconf.h:#define CONFIG_CAN_SJA1000_MODULE 1
./include/generated/autoconf.h:#define CONFIG_CAN_SJA1000_ISA_MODULE 1
./include/generated/autoconf.h:#define CONFIG_CAN_SJA1000_PLATFORM_MODULE 1
./drivers/infiniband/hw/qib/qib_iba7322.c:#define SJA_EN SYM_MASK(SPC_JTAG_ACCESS_REG, SPC_JTAG_ACCESS_EN)
./drivers/infiniband/hw/qib/qib_iba7322.c: val = SJA_EN;
./drivers/infiniband/hw/qib/qib_iba7322.c: valbase = SJA_EN | (bisten << BISTEN_LSB) |
./drivers/infiniband/hw/qib/qib_iba7322.c: val = SJA_EN | (bisten << BISTEN_LSB);
./drivers/infiniband/hw/qib/qib_iba7322.c: val = SJA_EN | (bisten << BISTEN_LSB) | (R_OP_UPDATE << R_OPCODE_LSB);
./drivers/net/ethernet/icplus/ipg.h:#define IPG_ETHERSTATSJABBERS 0x130
./drivers/net/ethernet/broadcom/bnx2.h:#define BNX2_EMAC_RX_STAT_ETHERSTATSJABBERS 0x00001538
./arch/arm/mach-pxa/include/mach/pcm027.h:/* CAN controller SJA1000 (unsupported yet) */
>>
>> Fengguang further noticed that the peak pcmcia driver will not compile on archs
>> without ioport support. I created a patch to limit the driver to archs which
>> select HAS_IOPORT in Kconfig.
>
> Pulled, thanks Marc.
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-04-02 6:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-27 14:05 pull-request: can 2013-03-27 Marc Kleine-Budde
2013-03-27 14:05 ` [PATCH 1/2] can: sja1000: fix define conflict on SH Marc Kleine-Budde
2013-03-27 14:05 ` [PATCH 2/2] can: sja1000: limit PEAK PCAN-PC Card to HAS_IOPORT Marc Kleine-Budde
2013-03-27 18:10 ` pull-request: can 2013-03-27 David Miller
2013-04-02 6:01 ` Oliver Hartkopp [this message]
2013-04-02 7:24 ` sja1000 private defines - was: " 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=515A7454.9050905@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=linux-can@vger.kernel.org \
--cc=mkl@pengutronix.de \
/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.