From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753085AbdFVKTN (ORCPT ); Thu, 22 Jun 2017 06:19:13 -0400 Received: from smtprelay.synopsys.com ([198.182.60.111]:41572 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752563AbdFVKTM (ORCPT ); Thu, 22 Jun 2017 06:19:12 -0400 From: Luis Oliveira To: wsa@the-dreams.de, robh+dt@kernel.org, mark.rutland@arm.com, jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Luis.Oliveira@synopsys.com, Ramiro.Oliveira@synopsys.com, Joao.Pinto@synopsys.com, CARLOS.PALMINHA@synopsys.com Subject: [PATCH v12 0/2] i2c: designware: add I2C SLAVE support Date: Thu, 22 Jun 2017 11:17:31 +0100 Message-Id: X-Mailer: git-send-email 2.13.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patches follows the merged patchset that refactors I2C Designware and enables it to have I2C support. The patch 1 adds the necessary functions to give the ability to be a SLAVE to the controller and for that changes also had to be made in the Makefile and Kconfig. The patch 2 enables the SLAVE mode to be detected by the platform module. The functionality was tested using the hardware independent slave-eeprom driver based on top of i2c/for-next. The tree I used can be found here: https://git.kernel.org/cgit/linux/kernel/git/wsa/linux.git/log/?h=i2c/for-next Luis Oliveira (2): i2c: designware: add SLAVE mode functions i2c: designware: enable SLAVE in platform module drivers/i2c/busses/Kconfig | 14 +- drivers/i2c/busses/Makefile | 3 + drivers/i2c/busses/i2c-designware-common.c | 6 + drivers/i2c/busses/i2c-designware-core.h | 4 + drivers/i2c/busses/i2c-designware-platdrv.c | 41 ++- drivers/i2c/busses/i2c-designware-slave.c | 395 ++++++++++++++++++++++++++++ 6 files changed, 457 insertions(+), 6 deletions(-) create mode 100644 drivers/i2c/busses/i2c-designware-slave.c -- 2.13.0