Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1823386ybh; Fri, 17 Jul 2020 02:03:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLUD//DxG+eu2CH+1AWs309The3AcX98Tn9pMBhp2RC5ZZMnKwVadCxbHWDbNI+dqw2Ulc X-Received: by 2002:a17:906:40d3:: with SMTP id a19mr7934949ejk.474.1594976634697; Fri, 17 Jul 2020 02:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594976634; cv=none; d=google.com; s=arc-20160816; b=fJtYV4S9A1piHITb90/rt3YM+vrmqPXJM6r+mL+xQYGoTKOW9JkjvFBUPe1vvNEo5d 9VkORkSXSbKCtLTpev9ILTtPqzf6qwzMPLBQE5dskA8mlwHUkugQuD1jN0efJnA3E8PB QH5Cn03e+OWhmIqpROAk1iIcv8wukZfHFVLT/mv7EdhlhTddn6MyQDbKo6ATETXviBaj +5dLe/nFixEZKPRSBJ2q928rifn1VHvc5a5mM8dcJPdy0+eZlPjOWJ3FJZV9Xgpc6tDA syDEmqeiPNMMXYbQfOAeFTL7wyAXici1K/w6wD9ZlUny8sLIrSN3WePWmHflxAyow14A bHrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=DQl00yYXYwsbpEtRwxsV9i6tqBPWGw0OYdTItL8Npos=; b=t/zDb0LGUz0M6Kdw5xGWIFHTLEzDyRJoPANEm091/AZLVSbW4w0lUS773wEKGYy/Ro Ibs7x50wDehHXyVABlQeTb2e/fytxCXbSQaKgyVIG/NRYePJ/E+S5iOd84tADnsdlAsv vk/2o1fbidwhY9nTsSe6L/ecSnQK35T/VkexJrKk5fVaOLVRT2Wkr356lU1qDjOVS0uX 607kEFSIZ55Z/vY6Qe7H11M7x4oGyuVrfpQGFeZkJ9+bLmbUmGQGuoG3kU+ZHcTb89f8 eTklYK+F8eFvxqebzaf0oGRWvlNFaXJ04cob88vadLZe7wOYj/sJURle5/fLXXzj9UTl K/Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=eKvpq7Vc; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bw19si4778242ejb.729.2020.07.17.02.03.30; Fri, 17 Jul 2020 02:03:54 -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=@broadcom.com header.s=google header.b=eKvpq7Vc; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726232AbgGQJCS (ORCPT + 99 others); Fri, 17 Jul 2020 05:02:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbgGQJCR (ORCPT ); Fri, 17 Jul 2020 05:02:17 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC2E1C061755 for ; Fri, 17 Jul 2020 02:02:16 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id o8so13867512wmh.4 for ; Fri, 17 Jul 2020 02:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DQl00yYXYwsbpEtRwxsV9i6tqBPWGw0OYdTItL8Npos=; b=eKvpq7Vc+pWXLiZBlozFZ+/crmGW074XhcYNp3r4fmPCGI8tcs9WINywIQKdsPseE2 8ANxuaBJTN/gfFuBoIKiKMD6t/RoizLQC/C5FpqaQuNzoK80pqOr/gkmFMoH6nt0lItv fwm7+63jhaXuoSSeEEcHzQQuQqzfAfoV62LvY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DQl00yYXYwsbpEtRwxsV9i6tqBPWGw0OYdTItL8Npos=; b=WSIMGop1u+zpj6N8+lolU1NxitlGaozJwZu9RaQra3FsHDYzDr+sJKcJiWIX83d7iZ G6RLh9YIyaDaXZP6bhNJVplpBKV1hj0KGwRuM2ZaN8fWiDWrBaGwRuYxKekoPCxH7x2x isS/3ma6KzrOjee4dLVZOvUySk6J6SWCYKFxgMGGEEJcuVSBFpJBFTrc9i5W4TvmBRrp aake4NXJ3PfUwxhi4CDPy6quVB792OoJpH1ZKmyc3gHI3x2CMyg5umu5iHCJ1NwlJgTz C76FDyCT6xtOIg9hDf9HqxXCtJUXXJKsyiQ1p/FpDhsXvJtmQwelz7pOd2rd96QDmcOv qpLQ== X-Gm-Message-State: AOAM533hEICbRFbpPPR6oxcTKGMpSZi2+kdzwEySQiR8jeuYSAlagcJ2 xbaqwXswjUU5uh51x99/174GNA== X-Received: by 2002:a1c:48d:: with SMTP id 135mr8559807wme.102.1594976535435; Fri, 17 Jul 2020 02:02:15 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w7sm12360705wmc.32.2020.07.17.02.02.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 02:02:14 -0700 (PDT) From: Rayagonda Kokatanur To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Lori Hikichi , Robert Richter , Nishka Dasgupta , Andy Shevchenko , linux-arm-kernel@lists.infradead.org Cc: Rayagonda Kokatanur Subject: [PATCH v2 1/2] i2c: add PEC error event Date: Fri, 17 Jul 2020 14:31:54 +0530 Message-Id: <20200717090155.10383-2-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200717090155.10383-1-rayagonda.kokatanur@broadcom.com> References: <20200717090155.10383-1-rayagonda.kokatanur@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new event I2C_SLAVE_PEC_ERR to list of slave events. This event will be used by slave bus driver to indicate PEC error to slave client or backend driver. Signed-off-by: Rayagonda Kokatanur --- include/linux/i2c.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index b8b8963f8bb9..e04acd04eb48 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -370,6 +370,7 @@ enum i2c_slave_event { I2C_SLAVE_READ_PROCESSED, I2C_SLAVE_WRITE_RECEIVED, I2C_SLAVE_STOP, + I2C_SLAVE_PEC_ERR, }; int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb); -- 2.17.1