- i2c-pca954x-fix-initial-access-to-first-mux-switch-port.patch removed from -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 removed from the -mm tree.  Its filename is

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

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: I2C PCA954x: Fix initial access to first mux/switch port
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 file 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
--- devel/drivers/i2c/chips/pca954x.c~i2c-pca954x-fix-initial-access-to-first-mux-switch-port	2006-06-01 20:23:06.000000000 -0700
+++ devel-akpm/drivers/i2c/chips/pca954x.c	2006-06-01 20:23:06.000000000 -0700
@@ -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

i2c-mpc-fix-up-error-handling.patch
git-powerpc.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