Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755482AbcJMMLU (ORCPT ); Thu, 13 Oct 2016 08:11:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47588 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754675AbcJMMLJ (ORCPT ); Thu, 13 Oct 2016 08:11:09 -0400 From: Benjamin Tissoires To: Dmitry Torokhov , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jean Delvare Subject: [PATCH v5 0/6] i2c: Host Notify / i801 fixes Date: Thu, 13 Oct 2016 14:10:34 +0200 Message-Id: <1476360640-12901-1-git-send-email-benjamin.tissoires@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 13 Oct 2016 12:10:44 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1277 Lines: 32 Hi Wolfram and Dmitry, 5th revision of the series, hopefully this time it will be OK. The changes were requested by Dmitry: now, SMBus Host Notify is transparent for clients drivers. The IRQ is attributed if the adapter has the capability and if nobody claimed an IRQ before. That means that adding an I2C device through sysfs works, and we don't need to do anything in the client drivers besides regular IRQ handling. Cheers, Benjamin Benjamin Tissoires (6): i2c: i801: store and restore the SLVCMD register at load and unload i2c: i801: minor formatting issues i2c: i801: use BIT() macro for bits definition i2c: i801: use the BIT() macro for FEATURES_* also i2c: i801: remove SMBNTFDDAT reads as they always seem to return 0 i2c: use an IRQ to report Host Notify events, not alert Documentation/i2c/smbus-protocol | 12 ++-- drivers/i2c/Kconfig | 1 + drivers/i2c/busses/i2c-i801.c | 121 +++++++++++++++++++-------------------- drivers/i2c/i2c-core.c | 113 ++++++++++++++++++++++++++++++++++++ drivers/i2c/i2c-smbus.c | 102 --------------------------------- include/linux/i2c-smbus.h | 27 --------- include/linux/i2c.h | 4 ++ 7 files changed, 185 insertions(+), 195 deletions(-) -- 2.7.4