From patchwork Mon Nov 2 03:54:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 11872937 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 B497BC00A89 for ; Mon, 2 Nov 2020 03:55:50 +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 52AAC21556 for ; Mon, 2 Nov 2020 03:55:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0S9Hnoaq"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="eXirowKI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 52AAC21556 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=vZq4eBNMTdkAJoqtF5y+zTWK1Tn1Q0mfGYkb55Nf4W0=; b=0S9HnoaqMfZjEStrjKzm05Rgh OiCmCEVL+7hwYbcLFBP8g+R4rj0tYaS0sKy8+3660lWP6/bOTP3Oxi6Ym5t+4+e3ac1MfXyRj1D5r w4IIal+swnxITBqzHc1fmHxKYi//Cs66We7qLw0j50ZsdXhm394cr4IjfyqTZISWCNTwlZzrPSx+w zvMlZieybZrVT8yMrWMxjRP6OENd0pj8IrgMUnKhlslZpSQlgPiCiS0PP5Nc6caMg76ovLxFgeTX8 Y68WdlMfaKuvZ58QwWw4RO2lBVrb5hcWqV1Kamyl5ciKcr/JHsCuojnRHGyiFuUxm7WBFspWFKGI0 ymnMUGf3A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZQw4-0000jZ-ME; Mon, 02 Nov 2020 03:55:12 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZQvy-0000i2-Fw for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2020 03:55:07 +0000 Received: by mail-pg1-x542.google.com with SMTP id t14so9657294pgg.1 for ; Sun, 01 Nov 2020 19:55:06 -0800 (PST) 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=J908IN5bkHeWGugaaCghdY5ib6N19T4BRM0orfMhjjU=; b=eXirowKILAmXhjCJp2ThYXAg02lOCmO23cqZgkX+xUKiBIrxkmscjiOXk/r8am3R7q 2vkAGYF5+CqwlgSRh72gkLGgD/bcOrpPOm+3KoJ7RelpKAIUydva679bCqtzYMUsp9ls vWGFq5J9qUBz+k6uvPt9wlI99CDJmEexX/L4E= 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=J908IN5bkHeWGugaaCghdY5ib6N19T4BRM0orfMhjjU=; b=HQlmJrQ820xpWHoNjUyb/lMJPCHvX+347P0YfYWW0qDhBx7ehqnwiFbN7l0/3LXn4k SeKHfJUQuPdciMB3v+L+Pg/WrgW3eOFHNkSy49Urz3O0ae5gxTRQu4B7Uta2RpM8tCve 0sBvwdV5UXsaI4jnzxi9uD9iUsSSzFS7yj05sViLovS6uzdYM+svROmAKXzJSOzmm1mZ PJHHkhrm27J14dfq7lijTr/HEdwbL80nDinD3TKm0b+Rr11yBLKW4243jjTyPD88nvO7 oEHYYPE5DhASgRACCggEeOQkO4O09qh+po+SF7ZlhEImYOSFspxVUdL1LS7I/B3bfuia 78sA== X-Gm-Message-State: AOAM530ni4b+z/YMX8kBzaB0bNA7PYOsBYMc88sJLXL+k/o5BFfJ20XO vI4kC5aemJvnMy8HVMZ4+MbWPQ== X-Google-Smtp-Source: ABdhPJzut6+4EzNSm0mqUEiHy7KWoQzAohRf9zDwQwtAUjVOS8h2w9vh1l/BTgxLMgYzEnwjVPfQNQ== X-Received: by 2002:a62:7657:0:b029:152:4d66:dcb with SMTP id r84-20020a6276570000b02901524d660dcbmr20463118pfc.74.1604289304535; Sun, 01 Nov 2020 19:55:04 -0800 (PST) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y5sm5655711pfc.165.2020.11.01.19.54.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 19:55:03 -0800 (PST) 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 v3 3/6] i2c: iproc: update slave isr mask (ISR_MASK_SLAVE) Date: Mon, 2 Nov 2020 09:24:30 +0530 Message-Id: <20201102035433.6774-4-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201102035433.6774-1-rayagonda.kokatanur@broadcom.com> References: <20201102035433.6774-1-rayagonda.kokatanur@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201101_225506_704577_DD8CAB51 X-CRM114-Status: GOOD ( 12.71 ) 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 Acked-by: Ray Jui --- 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);