From patchwork Fri Oct 30 06:53:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 11868595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,T_TVD_MIME_NO_HEADERS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E592DC00A89 for ; Fri, 30 Oct 2020 06:55:45 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5D72722203 for ; Fri, 30 Oct 2020 06:55:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DL14s43z"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="gizKqR7Y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D72722203 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:MIME-Version: Cc:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: References:In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DW/EmK0CWrJuBvr4BR/mZlm7EeRtJ1hrMalPVEURR5I=; b=DL14s43z9Gc/yiDEJFRfYTO7r at4Q5mAYFkxREXcTp6sQs6xw9r6Vaa6oVIhZko+F/49I0VH5NKDfdRwStCLjfokoHc+AnzCFHDjdV dXGR2/MJnsb5I6frqFiuN6Wv2HhDEQsoYc1ufwbEakyY62BeAb0dQoXAJcmkhtxMddrQEAKYpqgBy R86ep7iBlwFxBtCr2rjXYQLcoPbtv2APQo9wzx8tgbI2UMsZJIWPHR7SK8YTw3Vv9DgwqXvgAaYQD VurKxt2hqzbWSkRbmttxBr9lZ5H59jJk+eWAy5hUyO7fkuD4+vWpy8bUtah+02wUV6evGxUIh6ISU bNhmBkA0Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYOIo-0000cd-KM; Fri, 30 Oct 2020 06:54:22 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYOIj-0000b9-PF for linux-arm-kernel@lists.infradead.org; Fri, 30 Oct 2020 06:54:19 +0000 Received: by mail-pg1-x541.google.com with SMTP id n16so4385788pgv.13 for ; Thu, 29 Oct 2020 23:54:17 -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=eeJ9An+0OH9CRKavwrv+IIgYGJFfmTWrCGWlt9/Lx+Q=; b=gizKqR7Y/FiyB4KoZ9ktHrIpRTvm9Aqjw4A0FjgyESMolRq5Swb9EzE5V57v+M8udH W+4S24a8iyYGXkHjft1ympzLi771Sp2vqyt7OY6/Kpq9yzcZNDmzzyfvKP+5gV1fqHEz qE0sD2C/8jWoTUUDPJu0PhjoKYZmOHPpHD9kg= 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=eeJ9An+0OH9CRKavwrv+IIgYGJFfmTWrCGWlt9/Lx+Q=; b=Fs5RFaebTRheWKZsBfKp1QKeGLwQ38lpLde1Ng8110wvd8AsPayzfxfFzmLaGRTwxW U2T1b5cH/Nv00W/2Z+yEogkjegsg3LHclc2fqOLFpQHDHikDZnCl3aIo9P+PDIjcS9Pe xzhzAwuE6WgiB1irrG4isDxOpOcIMppOkHWc4U2cCWprJJaJAuqnIH1qNaDduq54ltx2 9P1OYNsdl+sQQFVH6DQwOoWfTphDbtNdgFrhlRzLwlKZHJeeuTKOtJxtvK8QldaLp8Mf agJgM8W2Y9/GyIHkx8uTyUTfJBIR1MPW+KtxjgN+gtg1HfcW161IDzCJCld4hcPa3bcN nqRg== X-Gm-Message-State: AOAM531lOL9gy5fvOj43vjKlXKFzGIuG/Td1yVefWh7c9Ib5bpHcghJm GLiO5qSx5kO0tWX38p0r+bPtwA== X-Google-Smtp-Source: ABdhPJwhpXMG+ZMd6b0Zowiw9iHoUNYR3WFJPjIueYSku0pEqPe6igYz08wuJPo62F0FR3UUYYUyZA== X-Received: by 2002:a17:90a:f683:: with SMTP id cl3mr1160637pjb.84.1604040855688; Thu, 29 Oct 2020 23:54:15 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id n1sm4561547pgl.31.2020.10.29.23.54.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 23:54:14 -0700 (PDT) From: Rayagonda Kokatanur To: Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Wolfram Sang , Florian Fainelli , Brendan Higgins , Andy Shevchenko , Lori Hikichi , Dhananjay Phadke , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/6] i2c: iproc: update slave isr mask (ISR_MASK_SLAVE) Date: Fri, 30 Oct 2020 12:23:36 +0530 Message-Id: <20201030065339.955-4-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201030065339.955-1-rayagonda.kokatanur@broadcom.com> References: <20201030065339.955-1-rayagonda.kokatanur@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201030_025417_885584_1A5F4519 X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rayagonda Kokatanur MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Update slave isr mask (ISR_MASK_SLAVE) to include remaining two slave interrupts. Fixes: c245d94ed106 ("i2c: iproc: Add multi byte read-write support for slave mode") Signed-off-by: Rayagonda Kokatanur --- drivers/i2c/busses/i2c-bcm-iproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c b/drivers/i2c/busses/i2c-bcm-iproc.c index b54f5130d246..cd687696bf0b 100644 --- a/drivers/i2c/busses/i2c-bcm-iproc.c +++ b/drivers/i2c/busses/i2c-bcm-iproc.c @@ -216,7 +216,8 @@ struct bcm_iproc_i2c_dev { #define ISR_MASK_SLAVE (BIT(IS_S_START_BUSY_SHIFT)\ | BIT(IS_S_RX_EVENT_SHIFT) | BIT(IS_S_RD_EVENT_SHIFT)\ - | BIT(IS_S_TX_UNDERRUN_SHIFT)) + | BIT(IS_S_TX_UNDERRUN_SHIFT) | BIT(IS_S_RX_FIFO_FULL_SHIFT)\ + | BIT(IS_S_RX_THLD_SHIFT)) static int bcm_iproc_i2c_reg_slave(struct i2c_client *slave); static int bcm_iproc_i2c_unreg_slave(struct i2c_client *slave);