+ i2c-pca954x-fix-initial-access-to-first-mux-switch-port.patch added to -mm tree

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

 



The patch titled

     I2C PCA954x: Fix initial access to first mux/switch port

has been added to the -mm tree.  Its filename is

     i2c-pca954x-fix-initial-access-to-first-mux-switch-port.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Kumar Gala <galak@xxxxxxxxxxxxxxxxxxx>

The first mux/switch port would not get selected if it was the first port
to be accessed because the code believed it already had.  We now initialize
the last channel to a bogus value to ensure the first access will properly
select the channel.

Signed-off-by: Kumar Gala <galak@xxxxxxxxxxxxxxxxxxx>
Cc: Jean Delvare <khali@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/i2c/chips/pca954x.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -puN drivers/i2c/chips/pca954x.c~i2c-pca954x-fix-initial-access-to-first-mux-switch-port drivers/i2c/chips/pca954x.c
--- 25/drivers/i2c/chips/pca954x.c~i2c-pca954x-fix-initial-access-to-first-mux-switch-port	Wed Apr 26 14:26:41 2006
+++ 25-akpm/drivers/i2c/chips/pca954x.c	Wed Apr 26 14:26:41 2006
@@ -234,6 +234,10 @@ static int pca954x_detect(struct i2c_ada
 
 	data->chip_offset = i;
 
+	/* Set last_chan to an invalid channel to force an initial setting
+	 * of the mux/switch on the first select_chan */
+	data->last_chan = 0xff;
+
 	if ((ret = i2c_attach_client(client)))
 		goto exit_free;
 
_

Patches currently in -mm which might be from galak@xxxxxxxxxxxxxxxxxxx are

origin.patch
spi-added-spi-master-driver-for.patch
i2c-add-support-for-virtual-i2c-adapters.patch
i2c-pca954x-i2c-mux-driver.patch
i2c-mpc-fix-up-error-handling.patch
i2c-pca954x-fix-initial-access-to-first-mux-switch-port.patch
git-powerpc.patch
pci-pci-64-bit-resources-arch-changes-update.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