From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:46432 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006AbbIQF0E (ORCPT ); Thu, 17 Sep 2015 01:26:04 -0400 Subject: Patch "HID: cp2112: fix I2C_SMBUS_BYTE write" has been added to the 4.2-stable tree To: ellen@cumulusnetworks.com, borneo.antonio@gmail.com, gregkh@linuxfoundation.org, jkosina@suse.com, wsa@the-dreams.de Cc: , From: Date: Wed, 16 Sep 2015 22:25:48 -0700 Message-ID: <1442467548123125@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled HID: cp2112: fix I2C_SMBUS_BYTE write to the 4.2-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: hid-cp2112-fix-i2c_smbus_byte-write.patch and it can be found in the queue-4.2 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 6d00d153f00097d259f86304e11858a50a1b8ad1 Mon Sep 17 00:00:00 2001 From: Ellen Wang Date: Mon, 13 Jul 2015 15:23:54 -0700 Subject: HID: cp2112: fix I2C_SMBUS_BYTE write From: Ellen Wang commit 6d00d153f00097d259f86304e11858a50a1b8ad1 upstream. When doing an I2C_SMBUS_BYTE write (one byte write, no address), the data to be written is in "command" not "data->byte". Signed-off-by: Ellen Wang Acked-by: Wolfram Sang Reviewed-by: Antonio Borneo Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- drivers/hid/hid-cp2112.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hid/hid-cp2112.c +++ b/drivers/hid/hid-cp2112.c @@ -554,7 +554,7 @@ static int cp2112_xfer(struct i2c_adapte if (I2C_SMBUS_READ == read_write) count = cp2112_read_req(buf, addr, read_length); else - count = cp2112_write_req(buf, addr, data->byte, NULL, + count = cp2112_write_req(buf, addr, command, NULL, 0); break; case I2C_SMBUS_BYTE_DATA: Patches currently in stable-queue which might be from ellen@cumulusnetworks.com are queue-4.2/hid-cp2112-fix-byte-order-in-smbus-operations.patch queue-4.2/hid-cp2112-fix-i2c_smbus_byte-write.patch