Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1816037pxa; Sun, 2 Aug 2020 22:48:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5MT0fedpGXx3P6+JVtfbX4NOGbVrTL89sE0rToLhkzOi9jiMRisCsl6bBggphn0tIPgcC X-Received: by 2002:a17:906:38da:: with SMTP id r26mr14805746ejd.120.1596433709626; Sun, 02 Aug 2020 22:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596433709; cv=none; d=google.com; s=arc-20160816; b=wnHgwITNaRLsOerwLyRdS+mtNqbQOVlu5i2d6DKJEtBDXOMjfUnPUZZ7Hw6Tbdwepp SoEoQHq6Pi4h5ncCQS53Py1fQfZSJ1dRVY/RgaG+l5f+PCdO3UOd4Z5g+qaQCU7Va3B0 sFLP43AASyVnY2/ZhTEWKj+qfILJy+0pR0SfimN8EgjdIHYikbN1j26YStgLnWclLzoY BOyvg9G8rzayDmDc11bmf5Eo9q/it6UNyVzDwKjOoPqGQXXPwTaioIJk8rcufTefwoaO 6mB02A07s1A4/Z6pVc6lQj9otg8sfTwNIqv/AnMlrb+O+/u2M/BtD/8w2GOD08WQ/owE O0+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=I5RMLhsf+2H/+2z062Q7AViIP2i9l6KE48tTultTe6U=; b=e8RmvNfqOEEEF9H6gThd/MrviBuYfeCmpF9h/GzzktiGyEpdHAJ8qFKEPYDnq2CcOe 317e0L/jESgdvYz22PCysSSeWIh/0U6nh5+yuvftQ6ZRZkPBItbKWoIBUtbQycettMuZ 93W5U8YeemWjWdlansiB3spLUTr6bPS811nJ1/eGQBKjzgBuIP9mStpV7YCDgzwsswzE JWvueVwIErYLOhUpnVEWFuY4JI/+jCueuPfY0gdDipkf19LZtXXFGCLEvx71cHm9kn8Q WK9XTjmilurTdrhQOLPJp73DBA6+zyZY6uaT+FDnlb7iplwk3zNMXmK+3BHoabTGO47i 46iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=GYuThUnh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi17si1569424edb.71.2020.08.02.22.48.08; Sun, 02 Aug 2020 22:48:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=GYuThUnh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728308AbgHCFpT (ORCPT + 99 others); Mon, 3 Aug 2020 01:45:19 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:9556 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728295AbgHCFpS (ORCPT ); Mon, 3 Aug 2020 01:45:18 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0735H2xv031305; Mon, 3 Aug 2020 07:18:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=I5RMLhsf+2H/+2z062Q7AViIP2i9l6KE48tTultTe6U=; b=GYuThUnhsjrsn76SrPD+b3L+9ncls2UMnhL9ISWU93U6rfo7esPs5BT8kEOVGYvvQ7Px kFjwEjIwzt15spHAjKg7893He7/zI59++FUy6xt7ZRxWmcA2lEnB6vrs9861/YvJRPiH SQNzvchTtQ60dks7lt8qasxEtGZo4+IYWWkPy7mIBCXY7kyVrgY0cq0tg7Wn72jXYwDV L4f7Qp0HTMMKerlRQsO8uqytmcWL/vntXQ6AARtaH6552vYnVzG4achPMtv/BtGGHbjA MHrghwmdjwfOGiwVZErWq40qaU0XbAdJkdl5xIhDcv7KwBXpZTDT8A1EdEms1QHUC3bk oA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 32n6th4vff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Aug 2020 07:18:45 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BA80910002A; Mon, 3 Aug 2020 07:18:43 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3184A20F450; Mon, 3 Aug 2020 07:18:43 +0200 (CEST) Received: from localhost (10.75.127.49) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 3 Aug 2020 07:18:42 +0200 From: Alain Volmat To: , CC: , , , , , , Subject: [PATCH v3 0/2] i2c: stm32: add host-notify support via i2c slave Date: Mon, 3 Aug 2020 07:17:54 +0200 Message-ID: <1596431876-24115-1-git-send-email-alain.volmat@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG8NODE1.st.com (10.75.127.22) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-03_04:2020-07-31,2020-08-03 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This serie replaces the previous 'stm32-f7: Addition of SMBus Alert / Host-notify features' serie to only focus on the SMBus Host-Notify feature. It should be applied with "[PATCH] i2c: add binding to mark a bus as SMBus" from Wolfram which defines the newly introduced "smbus" binding. Alain Volmat (2): i2c: smbus: add core function handling SMBus host-notify i2c: stm32f7: Add SMBus Host-Notify protocol support drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-stm32f7.c | 110 +++++++++++++++++++++++++++++++++------ drivers/i2c/i2c-smbus.c | 107 +++++++++++++++++++++++++++++++++++++ include/linux/i2c-smbus.h | 12 +++++ 4 files changed, 215 insertions(+), 15 deletions(-) -- v3: move smbus host-notify slave code into i2c-smbus.c file rework slave callback index handling add sanity check in slave free function v2: fix a bad test within the i2c-stm32f7 driver leading to decrease of available slave slot