From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754649AbbHLOc1 (ORCPT ); Wed, 12 Aug 2015 10:32:27 -0400 Received: from mga03.intel.com ([134.134.136.65]:50416 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753347AbbHLOcY (ORCPT ); Wed, 12 Aug 2015 10:32:24 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,661,1432623600"; d="scan'208";a="782729817" From: Irina Tirdea To: Wolfram Sang , Jonathan Cameron , linux-iio@vger.kernel.org, linux-i2c@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Srinivas Pandruvada , Peter Meerwald , Irina Tirdea Subject: [PATCH v5 0/8] Add support for best effort block read emulation Date: Wed, 12 Aug 2015 17:31:32 +0300 Message-Id: <1439389900-10108-1-git-send-email-irina.tirdea@intel.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is version 5 for adding i2c_smbus_read_i2c_block_data_or_emulated to i2c-core. Jonathan, I did not add your Reviewed-by to the patch adding the i2c_smbus_read_i2c_block_data_or_emulated function since I made some changes to the code. Thanks, Irina Changes from v4: - optimized the code for i2c_smbus_read_i2c_block_data_or_emulated as Wolfram suggested - dropped the error message from i2c_smbus_read_i2c_block_data_or_emulated - fixed documentation to specify I2C_SMBUS_BLOCK_MAX instead of 32 Changes from v3: - when reading an odd number of bytes using word emulation, read an even number of bytes using word reads and the last byte using byte read - code styling changes to improve readability - add a comment about addressing assumptions to the i2c_smbus_read_i2c_block_data_or_emulated function as Jonathan suggested - add Acked-by from Jonathan and Srinivas to the iio changes Changes from v2: - changed bmc150-accel, kxcjk-1013 and bmg160 drivers to use i2c_smbus_read_i2c_block_data_or_emulated Changes from v1: - dropped the RFC tag - changed at24 to use i2c_smbus_read_i2c_block_data_or_emulated - when reading an odd number of bytes using word emulation, read an even number of bytes and drop the last one - add a comment that this might not be suitable for all I2C slaves Adriana Reus (2): iio: accel: kxcjk-1013: use available_scan_masks iio: accel: kxcjk-1013: optimize i2c transfers in trigger handler Irina Tirdea (6): i2c: core: Add support for best effort block read emulation eeprom: at24: use i2c_smbus_read_i2c_block_data_or_emulated iio: accel: bmc150: use available_scan_masks iio: accel: bmc150: optimize i2c transfers in trigger handler iio: gyro: bmg160: use available_scan_masks iio: gyro: bmg160: optimize i2c transfers in trigger handler drivers/i2c/i2c-core.c | 57 ++++++++++++++++++++++++++++++++++++++++ drivers/iio/accel/bmc150-accel.c | 23 ++++++++-------- drivers/iio/accel/kxcjk-1013.c | 24 ++++++++--------- drivers/iio/gyro/bmg160.c | 23 ++++++++-------- drivers/misc/eeprom/at24.c | 37 +++++--------------------- include/linux/i2c.h | 3 +++ 6 files changed, 102 insertions(+), 65 deletions(-) -- 1.9.1