Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp463890pxb; Thu, 5 Nov 2020 05:02:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJypbpF34iM7iLR+VRAvMqTb+dGMKApXtWI/DxNBM+64Masqr9C60yYMNjmaPjZDUvM3jEr7 X-Received: by 2002:aa7:c9cb:: with SMTP id i11mr2502866edt.100.1604581320746; Thu, 05 Nov 2020 05:02:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604581320; cv=none; d=google.com; s=arc-20160816; b=BNhPMMSq/cs2e+jChtY+Wj/Qi7Vfz/Vz1KayI1owrEInd6cMFjuQOxgEC1zuXKeSKR UjCwxICuyfFPdne/fXFNLNtpHsgLw88ItGSHwdqAClWN3lX74F4rX8WV1qaKnZNQF1ZW Baf86K6XKz+WzR88ioroRNOtgncBGSA2gdx/5Vb1Rq0jFKjoZlA4Hoj94vF8Jr0AJO1i V3pfd9IDZyw9EEiPf7uywPBneed+KXsNCWy4PpLtqb7AFfF0X9XHMr0T8mTF4gSeL87A dweliAgK1dFWI2kXrsjHuRlwq3KrFnPj0KCy1MDqrByriQ6/NxdlaeJq3Wyj4n3Ywm73 9CvA== 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=DQxEJYTnrFPdkb+SIqKXmZODsTPacZYJuDmLfP+J2k4=; b=lgnLm3E5jptwEfTMUyH5BvgM/V5f9Oa8vIYyTIscWYiEKfgEw628yKQsIqbWJowwnG 2wThA6YXBWpRZYIacV2CN7t7p7UquXNxOpCfta0OQdaySA6S+6bAHvTJvVKe57K+gJSf IThobZ1ia3exAG+bBd0XFadVPP8WwitHh2zlGF7oV0C0tM0og+WzqHMrqeEyB2FfQtW9 AX1MkK5u1LZs5ZAJm+VaBHsXvX6rh4cuZaaCkaUg5m0+NVg81xNpx4hreq9GslfXQ8km gttPo/qk4sLE0w0cQ7agyRvY9tWB+qwqjTgSA+tBejCAn3045+U4vtx9RUad8PpTks4V slNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XQxXbboD; 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 bx13si1092791edb.260.2020.11.05.05.01.37; Thu, 05 Nov 2020 05:02:00 -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=XQxXbboD; 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 S1731036AbgKEM7s (ORCPT + 99 others); Thu, 5 Nov 2020 07:59:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730940AbgKEM7q (ORCPT ); Thu, 5 Nov 2020 07:59:46 -0500 Received: from mail-vs1-xe41.google.com (mail-vs1-xe41.google.com [IPv6:2607:f8b0:4864:20::e41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42D85C0613D2 for ; Thu, 5 Nov 2020 04:59:46 -0800 (PST) Received: by mail-vs1-xe41.google.com with SMTP id x11so687977vsx.12 for ; Thu, 05 Nov 2020 04:59:46 -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=DQxEJYTnrFPdkb+SIqKXmZODsTPacZYJuDmLfP+J2k4=; b=XQxXbboDDYrNgWb5CeYdrF3FGkC+5Q6+wRSBmI+FXAaIwdtq+UdzWdpcVK4KKPTotX lE7KRoRGBMfJzRZ4iEfwFrNjq3PAjuXTq0Q2ZDiGkONZJx2AUtZac89l3kd7pT+oNtjc Im3lb7ynBI+i5nHFnIgI4ppc8jKGJQ0VFmhPvRfTeoIkKqYEvc2Bpe9hfzb7aLPtluDJ 9q6LJkblDFdkgAyjDZp55LZczfikI2/vTSc6Et88yzN9TJWwhMbV/wEjdiG+JFVqeGeF BWSOLvGc+hKOskSC56Cit1Iq3rkj8x1+JgMsOtrftLz8VbeWFGteAO0Kpx0A+NDUr8IA w3MQ== 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=DQxEJYTnrFPdkb+SIqKXmZODsTPacZYJuDmLfP+J2k4=; b=E+/N6O0CWqFaBCCLILs1/AfgmTyawOV1tH7I2Ynp1IKqjEeuzeX8FiMlOVA7tVYw+6 JadypPMik8SfaRllkgslSqD8ZCf4GUHX1hIcpeVwwyiLBBF0L4byUIeW2nzElYxvJWQt NtvhkGY5s4shgJ7AU1VkWHBFldXjtCN5OTURB/8gSk3zVxCyFTr4kuKBwvSGAVPS6SLs 59WWqrd5uCbu8JlwgSmpOBf7ACSfkrs38nzsVdZ2i+ogYjVdH+DnuUJziMbbwN6Xtw2C cPs4eutKzH3AiGRqiCTaqbTxcpnsJ9tkLnJYb7k9fBkSYarbcg4sf1mZgiaAxSAKFrbQ 5ggA== X-Gm-Message-State: AOAM533RCl42+yunzA1od5VBQeixqHI5wqdXUT17EmlIF8l+t4J6SptY rXeoFQHaXlBuK/KSw8mYszhwhqGuOEvKWJJS978JfoX70Bk= X-Received: by 2002:a67:3256:: with SMTP id y83mr1116773vsy.48.1604581185547; Thu, 05 Nov 2020 04:59:45 -0800 (PST) MIME-Version: 1.0 References: <1604375323-33556-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1604375323-33556-1-git-send-email-tiantao6@hisilicon.com> From: Ulf Hansson Date: Thu, 5 Nov 2020 13:59:09 +0100 Message-ID: Subject: Re: [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ To: Tian Tao Cc: Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , "linux-mmc@vger.kernel.org" , Linux ARM , "open list:ARM/Amlogic Meson..." , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Nov 2020 at 04:48, 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/meson-mx-sdio.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c > index 1c5299c..d4a4891 100644 > --- a/drivers/mmc/host/meson-mx-sdio.c > +++ b/drivers/mmc/host/meson-mx-sdio.c > @@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data) > { > struct meson_mx_mmc_host *host = (void *) data; > u32 irqs, send; > - unsigned long irqflags; > irqreturn_t ret; > > - spin_lock_irqsave(&host->irq_lock, irqflags); > + spin_lock(&host->irq_lock); > > irqs = readl(host->base + MESON_MX_SDIO_IRQS); > send = readl(host->base + MESON_MX_SDIO_SEND); > @@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data) > /* finally ACK all pending interrupts */ > writel(irqs, host->base + MESON_MX_SDIO_IRQS); > > - spin_unlock_irqrestore(&host->irq_lock, irqflags); > + spin_unlock(&host->irq_lock); > > return ret; > } > -- > 2.7.4 >