From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 115402F24 for ; Wed, 12 Apr 2023 08:48:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CFB9C433D2; Wed, 12 Apr 2023 08:47:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681289279; bh=O64lCElcQJ0NlJ6c/MfLfDB06IvxX4u6IdtzLIoKKZo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Maz+d0suvbcUJ8syDwglGfDIiY1ze07wBrcL+YAP9qdPklbHDShJluMPhZz/WK57f 6enRmnrLcJTph0Dv7wTM94mu1r9/SwFE4lMoYEVhJ4K6D44cvv4qEsnBy4PKOZtE9s GUFV9h05CFVFeeT6FJAUGWmkRDiTQFNeIBTnyVOY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Devarsh Thakkar , Dhruva Gole , Linus Walleij , Keerthy , Bartosz Golaszewski , Sasha Levin Subject: [PATCH 6.2 039/173] gpio: davinci: Do not clear the bank intr enable bit in save_context Date: Wed, 12 Apr 2023 10:32:45 +0200 Message-Id: <20230412082839.679490607@linuxfoundation.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230412082838.125271466@linuxfoundation.org> References: <20230412082838.125271466@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Dhruva Gole [ Upstream commit fe092498cb9638418c96675be320c74a16306b48 ] The interrupt enable bits might be set if we want to use the GPIO as wakeup source. Clearing this will mean disabling of interrupts in the GPIO banks that we may want to wakeup from. Thus remove the line that was clearing this bit from the driver's save context function. Cc: Devarsh Thakkar Fixes: 0651a730924b ("gpio: davinci: Add support for system suspend/resume PM") Signed-off-by: Dhruva Gole Reviewed-by: Linus Walleij Acked-by: Keerthy Signed-off-by: Bartosz Golaszewski Signed-off-by: Sasha Levin --- drivers/gpio/gpio-davinci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index fa51a91afa54f..39b00855499b2 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -642,9 +642,6 @@ static void davinci_gpio_save_context(struct davinci_gpio_controller *chips, context->set_falling = readl_relaxed(&g->set_falling); } - /* Clear Bank interrupt enable bit */ - writel_relaxed(0, base + BINTEN); - /* Clear all interrupt status registers */ writel_relaxed(GENMASK(31, 0), &g->intstat); } -- 2.39.2