Re: [RFC PATCH] m68knommu: added dm9000 support

Randy Dunlap
2011-01-05T17:00:07Z

On Wed, 05 Jan 2011 17:48:36 +0100 Angelo Dureghello wrote:

> This patch allows to use the dm9000 network chip with a m68knommu
> big-endian cpu. From the HW point of view, the cpu data bus connected to
> the dm9000 chip should be hardware-byte-swapped, crossing the bytes
> wires (D0:7 to D24:31, etc.). In anyway, has been also added an option
> to swap the bytes in the driver, if some cpu has been wired straight
> D0:D31 to dm9000.
>
> Signed-off-by: Angelo Dureghello <angelo70@gmail.com>
> ---
>
> --- drivers/net/Kconfig.orig 2011-01-05 17:11:37.992376124 +0100
> +++ drivers/net/Kconfig 2011-01-04 22:33:14.132301872 +0100

File names should begin at top level of linux kernel source tree, like this e.g.:

> --- linux/drivers/net/Kconfig.orig 2011-01-05 17:11:37.992376124 +0100
> +++ linux/drivers/net/Kconfig 2011-01-04 22:33:14.132301872 +0100

> @@ -960,7 +960,7 @@ config TI_DAVINCI_EMAC
>
> config DM9000
> tristate "DM9000 support"
> - depends on ARM || BLACKFIN || MIPS
> + depends on COLDFIRE || ARM || BLACKFIN || MIPS
> select CRC32
> select MII
> ---help---

Something has modified tab(s) to spaces in this patch, so the patch won't
apply cleanly. See if Documentation/email-clients.txt can help you.

Oh, are you using the gmail web-based email client? That won't work
for kernel patches. You could use gmail via SMTP.

> @@ -986,6 +986,14 @@ config DM9000_FORCE_SIMPLE_PHY_POLL
> costly MII PHY reads. Note, this will not work if the chip is
> operating with an external PHY.
>
> +config DM9000_32BIT_SW_SWAP
> + bool "Software byte swap for 32 bit data bus"
> + depends on DM9000 && COLDFIRE
> + ---help---
> + This configuration allows to swap data bytes from the dm9000
> + driver itself, when the big endian cpu is wired straight to
> + the dm9000 32 bit data bus.
> +
> config ENC28J60
> tristate "ENC28J60 support"
> depends on EXPERIMENTAL && SPI && NET_ETHERNET

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
desserts: http://www.xenotime.net/linux/recipes/