Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp464287pxb; Thu, 5 Nov 2020 05:02:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8tiheultWZDcfrGqgKCY4KFIgRkQX3LApf5UhknHQUfV6lZQoASysq6Ya/beP4Bd7J688 X-Received: by 2002:a17:906:3294:: with SMTP id 20mr2135961ejw.322.1604581354548; Thu, 05 Nov 2020 05:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604581354; cv=none; d=google.com; s=arc-20160816; b=jD9I9z4ImSwEzaufk4ou6Ix6NkXRt6bGzbfaKlkMYdTvwaUy4qO1ut/WOsP+/eAyFn H+/ETsaj7ZGjn5u7aWW1STcCWVqjrDQUbAL0jR7QNqO2mPtPtwnBdXu+RDnzDfAXEOLF oqgTbalmg8TT5/lbRqJrIQiRmhP6mXjciw0ttPcgWljcSLQisAwqiqhauvw801gGgmwo //PbH1VwWJTw0FXrWbqEJSA3FdHa3QHHuHQIYS3W2ew+aBicfpycB8ZoWLm5XRZFhujL RZf9Ep55DVsS8ECVmBzuIoiw+Ga0xvi4oTTtBqAU/kNYjg6BWgq/KrO9t4wKEYvY4THH xtuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ogy1F0OZxhfIxCnSobyKyOBL57nC3KTIEKh8oSdo12Y=; b=ngF0D+Uw5HXi6G/699ijLSDh5ZAp5uHQ/20Ce0Mp72aOQ4Be/GrdPlsXK2BNubBPur +TMqc6Md80Tv8j0P3pFD/FHkiA/hsVd/qMacCaLE5jpkR9acXA0p2Oe7/VAhuNUe7X6z pUk6N8aEGff8WIZU7JGLDLG2dpKS3fXru+eTbdjvz1VDquAu2jBh4caHbx+qlIAHrx/A koHH8MTkSgqordRuJohBi78kUY04w2ZdBpzEdzp+dUS57H07U+omf5IumSACcRB8gQNM mzyQujg1pSeAfI7JBcTMO4GoWi/YdFRhNqO4CFULgAifZvPEFIedMWcxGrc2Q91oRKcD kyJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lCdGxiE4; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si997248edr.490.2020.11.05.05.02.11; Thu, 05 Nov 2020 05:02:34 -0800 (PST) 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=@linaro.org header.s=google header.b=lCdGxiE4; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731071AbgKEM7y (ORCPT + 99 others); Thu, 5 Nov 2020 07:59:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731038AbgKEM7u (ORCPT ); Thu, 5 Nov 2020 07:59:50 -0500 Received: from mail-ua1-x944.google.com (mail-ua1-x944.google.com [IPv6:2607:f8b0:4864:20::944]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E6DDC0613D2 for ; Thu, 5 Nov 2020 04:59:50 -0800 (PST) Received: by mail-ua1-x944.google.com with SMTP id k12so474314uad.11 for ; Thu, 05 Nov 2020 04:59:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ogy1F0OZxhfIxCnSobyKyOBL57nC3KTIEKh8oSdo12Y=; b=lCdGxiE45E+xLqcXhqfOnyBv5sAJ6fcX8rd45RL5WkLO4LoUzy+R3uDKgfckfmDHTc v0PZqlL/2eBRkz8Cj+qydXTCLss6tVvPKTrJY+jP6s0yhRUMElRXMHaWuueeISr39xl2 QI8NMvSWJzAH7FYQDdHEoyIhWfZxDetbEmN3ZmUAS6yt8MVlFxRaKggtSagTnc6/qNah PrvhqYPtaui1rhhbk5fv4RuocM3YiiFOEKHyZ0CXUfquH9kSow0/N5JThKqpAAxgaQ9C jxVeunieL1p3jr7T9f/guNEUtgtIR8+jom6805hnxzZsMwPCX6SM+N5HrGfzlAyO7s7L CzWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ogy1F0OZxhfIxCnSobyKyOBL57nC3KTIEKh8oSdo12Y=; b=TB9tC2cmEeVFfkrkA5TtlPSGc7FYpr2kRuZ64WT5GyeNjGALXTjXUxyOrkbBH0a+eL Lz/mq4FG9hPqWKrialhr05r3qqg9lLegV1AKfoGLQR6TvWmwf+qoYJJSg45R20UH+01w Q0Xr/loY6BYnCPFMGhlDxnV/k00T0z+JYFyy4Qx2UIaVLhlJHCJvG7A5oMnkOwle8yjc TBH0I2kRQKcHkBUHjSBWXbxqWmWRa9Q4/tPwAXkeI0ZW5DrcYPLXrryBVUJZAdcW1ieL E4TlcRZNbpaovcqkhTFAZsyYxCsI/kSfCyKSrjxsAepJWMxFvOPdx6dNzb3zmYxw1s6N m3oQ== X-Gm-Message-State: AOAM533OMEF/Kyl1+TBwKKbE2iqIBD0wxDnBtFT0XVqJatAOtR2Dcgqr 3ein2SYhX+jctIYJESUYcNSV9thlK+u+MyfTemJMKQ== X-Received: by 2002:a9f:2f15:: with SMTP id x21mr844197uaj.104.1604581189602; Thu, 05 Nov 2020 04:59:49 -0800 (PST) MIME-Version: 1.0 References: <1604278337-55624-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1604278337-55624-1-git-send-email-tiantao6@hisilicon.com> From: Ulf Hansson Date: Thu, 5 Nov 2020 13:59:12 +0100 Message-ID: Subject: Re: [PATCH] mmc: owl-mmc: replace spin_lock_irqsave by spin_lock in hard IRQ To: Tian Tao Cc: =?UTF-8?Q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Philipp Zabel , "linux-mmc@vger.kernel.org" , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 Nov 2020 at 01:51, Tian Tao wrote: > > The code has been in a irq-disabled context since it is hard IRQ. There > is no necessity to do it again. > > Signed-off-by: Tian Tao Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/owl-mmc.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/mmc/host/owl-mmc.c b/drivers/mmc/host/owl-mmc.c > index ccf214a..82d2bad 100644 > --- a/drivers/mmc/host/owl-mmc.c > +++ b/drivers/mmc/host/owl-mmc.c > @@ -134,10 +134,9 @@ static void owl_mmc_update_reg(void __iomem *reg, unsigned int val, bool state) > static irqreturn_t owl_irq_handler(int irq, void *devid) > { > struct owl_mmc_host *owl_host = devid; > - unsigned long flags; > u32 state; > > - spin_lock_irqsave(&owl_host->lock, flags); > + spin_lock(&owl_host->lock); > > state = readl(owl_host->base + OWL_REG_SD_STATE); > if (state & OWL_SD_STATE_TEI) { > @@ -147,7 +146,7 @@ static irqreturn_t owl_irq_handler(int irq, void *devid) > complete(&owl_host->sdc_complete); > } > > - spin_unlock_irqrestore(&owl_host->lock, flags); > + spin_unlock(&owl_host->lock); > > return IRQ_HANDLED; > } > -- > 2.7.4 >