From patchwork Tue Jun 11 06:57:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 10986119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0800513AD for ; Tue, 11 Jun 2019 06:58:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E84A528712 for ; Tue, 11 Jun 2019 06:58:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA7772871E; Tue, 11 Jun 2019 06:58:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7BA7D28712 for ; Tue, 11 Jun 2019 06:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=rtP4srln5IJzYnnaW5Y7PYualw5kOr7G2/CUP2ya2dc=; b=Ugc 4z7A2kRL5qK6JVZ1GiGFxf0cnrKuh87E4vd+nLQvHKjsI8utNQ/Mje9HEBrGDLv6ktxCY28pkL3yL 5s7D7jiUvYNrp/R91YEmXLPQPoQQZidHZpG8QS1hvA/sXFCY29Felt8qqYSb5bRYfw8ayvctewX+n UbPkryVxQmQ4XA/pX08tfXLFCD2HQBCKz7pIzWDhC+THaIbL4JQ/DgtFcwxFG99lVQakit+itLRXv cfurw9BIMC9d0pUXlUxgEzG2Aw8yWLZ6k1fXSX2zj8ALsJWidWACHw1lCDPD/f7ozuK5JB0fPzmwZ D+d0KpegthG3VgM5yxcHclLbm0Xa08g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1haajF-0005mz-Qp; Tue, 11 Jun 2019 06:57:57 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1haajA-0005mY-Cu for linux-arm-kernel@lists.infradead.org; Tue, 11 Jun 2019 06:57:54 +0000 Received: by mail-wm1-x343.google.com with SMTP id 22so1556671wmg.2 for ; Mon, 10 Jun 2019 23:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=KJ/d5w9c/HXeeYUZHkN6hWB+RneeD4rivtNwjYdhiiI=; b=YgF3oK2tbFls1fnPASO0AsGvoJZ6/XzrKZQQcuvr1tooHq99ncAIRahhvKbhEhSJ+s ZNI5gK5QRnrRNwln9+9pJAOWuGaqk1koj37fyt5Wn2oxz/eRcbvjUf7H7r9+47sTwCVG jvBU/W0lWNk7hSN6lNQfgJvn3Cmv2Rw0UPpMdSYMVl1jaRM6GMuFDIdLsb1sscpZTT04 cGpGeQKFDRzbHC1w4h/jBABPsGDY7ExQQhFwbWPbZ4Ho1nMPrgp+48UxHtMJcwntdPG/ ZNwYS209DEAWLeowNeaLDF49AyNZxOGPq1fACm8xalrvbzNEZ2sn8jYhmgnyqCg6a3Mk MqRg== 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; bh=KJ/d5w9c/HXeeYUZHkN6hWB+RneeD4rivtNwjYdhiiI=; b=GZiFP1WW0LzuF1VyqUhQSSnGeN8k/U1C4o8bkXAM9F01r8xB/iis24WcitbIo80ytf S92MOxshIXO9j9inddKYlWawO8sHMq+Is7LASeQFcqrlvXPX95G4fs90vDud2EKjmxj/ p6r1igMA0HmQtQOFP0810YsTtQSt3OVzohBbm0j4RgI1tdde9tisK2RVfO+y/M7BR+Vo WzLuFW5b9H9Y6YnKTf+vf7IeE4ktFfSYFWWS7UrCBsHfr+KgwmJVI37KO6u/qQTVrkus Qpw3Ck49UKqQynCiE8LHiTr68KDjxqnWZGmoeDUji483eMwImwoxmQKfaYSGu6rX6f68 LItg== X-Gm-Message-State: APjAAAU8Bvv2wDC9s6CKUUJY8KK9eHpuBuqM6UUm47sHGiN4gBYdJlJE Hj5e9au24U+jzaT6+hFWiec= X-Google-Smtp-Source: APXvYqxAcg2C5KvGZp1y+sWdt0YDMenF1gjiiZ1jb+Z9Gks/VABBlPnMntLZgLkYBilYx0JW+amngQ== X-Received: by 2002:a7b:c5d1:: with SMTP id n17mr16676335wmk.84.1560236270227; Mon, 10 Jun 2019 23:57:50 -0700 (PDT) Received: from localhost.localdomain ([86.121.174.24]) by smtp.gmail.com with ESMTPSA id r3sm16566696wrr.61.2019.06.10.23.57.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 23:57:49 -0700 (PDT) From: Daniel Baluta X-Google-Original-From: Daniel Baluta To: jassisinghbrar@gmail.com, shawnguo@kernel.org Subject: [PATCH v2] mailbox: imx: Clear GIEn bit at shutdown Date: Tue, 11 Jun 2019 09:57:31 +0300 Message-Id: <20190611065731.5581-1-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190610_235752_670499_0405BCF1 X-CRM114-Status: GOOD ( 11.28 ) 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: Daniel Baluta , s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, o.rempel@pengutronix.de, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, shengjiu.wang@nxp.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP GIEn is enabled at startup for RX doorbell mailboxes so we need to clear the bit at shutdown in order to avoid leaving the interrupt line enabled. Signed-off-by: Daniel Baluta Reviewed-by: Oleksij Rempel --- Changes since v1: - no changes since v1 just sent it as a separate patch from RFC series https://lkml.org/lkml/2019/6/10/465 drivers/mailbox/imx-mailbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 25be8bb5e371..9f74dee1a58c 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -217,8 +217,8 @@ static void imx_mu_shutdown(struct mbox_chan *chan) if (cp->type == IMX_MU_TYPE_TXDB) tasklet_kill(&cp->txdb_tasklet); - imx_mu_xcr_rmw(priv, 0, - IMX_MU_xCR_TIEn(cp->idx) | IMX_MU_xCR_RIEn(cp->idx)); + imx_mu_xcr_rmw(priv, 0, IMX_MU_xCR_TIEn(cp->idx) | + IMX_MU_xCR_RIEn(cp->idx) | IMX_MU_xCR_GIEn(cp->idx)); free_irq(priv->irq, chan); }