+ orion_spi-handle-88f6183-erratum.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     orion_spi: handle 88F6183 erratum
has been added to the -mm tree.  Its filename is
     orion_spi-handle-88f6183-erratum.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: orion_spi: handle 88F6183 erratum
From: Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx>

Add support to orion_spi for the 88F6183 ARM SoC by adding code to work
around a 6183-specific erratum.

Signed-off-by: Lennert Buytenhek <buytenh@xxxxxxxxxxx>
Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/spi/orion_spi.c       |    5 +++++
 include/linux/spi/orion_spi.h |    1 +
 2 files changed, 6 insertions(+)

diff -puN drivers/spi/orion_spi.c~orion_spi-handle-88f6183-erratum drivers/spi/orion_spi.c
--- a/drivers/spi/orion_spi.c~orion_spi-handle-88f6183-erratum
+++ a/drivers/spi/orion_spi.c
@@ -364,6 +364,11 @@ static int orion_spi_setup(struct spi_de
 		return -EINVAL;
 	}
 
+	/* Fix ac timing if required.   */
+	if (orion_spi->spi_info->enable_clock_fix)
+		orion_spi_setbits(orion_spi, ORION_SPI_IF_CONFIG_REG,
+				  (1 << 14));
+
 	if (spi->bits_per_word == 0)
 		spi->bits_per_word = 8;
 
diff -puN include/linux/spi/orion_spi.h~orion_spi-handle-88f6183-erratum include/linux/spi/orion_spi.h
--- a/include/linux/spi/orion_spi.h~orion_spi-handle-88f6183-erratum
+++ a/include/linux/spi/orion_spi.h
@@ -11,6 +11,7 @@
 
 struct orion_spi_info {
 	u32	tclk;		/* no <linux/clk.h> support yet */
+	u32	enable_clock_fix;
 };
 
 
_

Patches currently in -mm which might be from buytenh@xxxxxxxxxxxxxx are

orion_spi-fix-handling-of-default-transfer-speed.patch
git-arm.patch
git-net.patch
orion_spi-handle-88f6183-erratum.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux