Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp386782pxx; Thu, 29 Oct 2020 05:11:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7bIosoNnqKOhUrrUNjiVFHqCQK6cgAlk5Hh4Q5gNeeeunvxieZ37sRUNFU6vT2lsTx3vT X-Received: by 2002:a17:906:814:: with SMTP id e20mr3956213ejd.367.1603973460289; Thu, 29 Oct 2020 05:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603973460; cv=none; d=google.com; s=arc-20160816; b=WtGjb95J7bXUb3pfGorzf78HcC+w9tyq0v0TqP6SChcrSRcgqBuHdVyzeOweM9qZ1M qQ8sOgoGaVIGQC8Uwsx5E3YozBErh8ZFgCBRRTG5npQy+f6aOvsv15Wdp/nabFfMhnFM ttM7HSMF6hT7KNq880yXZELeGWIDMmjIZ3k8pAq3DC0VlfvX0M8NbtKqJPh67fYbt0E3 IZ2YkGauGRhru06lxbzlGL03madNHjhzXqH9Y1GvzIMQLx5/zgdU76CyRTFKbJ4VAgB6 kUTNHe5eXt5zaiBrlQSJlueOhw1mJVnjq2o0wdXQ914wZSRw3+IlL0Ab+f767IVU1ko/ F1pQ== 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=2OKA9Pgk0ZZ7+DXmqAtn7byrzzqg0DhRt90w2UoAl54=; b=rUzaTPLSDuU6I2bBaJ8+vncqJOhLbd7FrU3qnoyMl2p+DoqkknNmfrP9gzDHOr25Av cSCW232+ovXc4ylKpVasbsojAFJD7RsKJ7BBCxQS1qFun8tHvvfjN6JMYqfgi2An8fxO GwIJsNl0djF1zjWrjbKmoSmBtIiIU2x8aFX8WL1RQ/94ogehK2oBZFbZKOO2dbMRMvyR uAFtvDGzBnD6G2O477EIUdIrg8Gu4dD7yFIVgUZ3TJPDZCyDNm3mi7D7kxE+cBvYWPjx /WBxL4hqyXKBdZPRmMNWbetIaDarx8kcbiAFJkCLJv+G9hh+awHJ8yx/Q6Uiozu6lR2t yK4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p3Nt87l2; 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 f11si1638875edj.402.2020.10.29.05.10.36; Thu, 29 Oct 2020 05:11:00 -0700 (PDT) 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=p3Nt87l2; 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 S1725987AbgJ2MJL (ORCPT + 99 others); Thu, 29 Oct 2020 08:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbgJ2MJK (ORCPT ); Thu, 29 Oct 2020 08:09:10 -0400 Received: from mail-vk1-xa41.google.com (mail-vk1-xa41.google.com [IPv6:2607:f8b0:4864:20::a41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA985C0613CF for ; Thu, 29 Oct 2020 05:09:10 -0700 (PDT) Received: by mail-vk1-xa41.google.com with SMTP id y10so639373vkl.5 for ; Thu, 29 Oct 2020 05:09:10 -0700 (PDT) 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=2OKA9Pgk0ZZ7+DXmqAtn7byrzzqg0DhRt90w2UoAl54=; b=p3Nt87l2xN8E/kW1cpinhezE9x7HXKo0TaISvtMl0md3/MASIkPOI4oWfHMDtV2fL8 HJf8642vtrJwRDG15XPPEhmxdnqKFj1DCvxvW0izscb4zY+MPp/WvvZTLUwkDNI9YTog RMbzmKP8cNTp32zafmWVv7TbKNv7p4bZyuZ+QemO5SKdfFmSlt5+kiPbBo+xxxnypH60 t9nSQ/yHhI6zYAF4FVQiiEOTs4vK48hVWrxgCv3/XszpLqel8WuZDFHQmfkvcEkMHtcl AWTYcD6quieQEWNs2sBIikUTjgIQzx/S+gm9fC7VmHV9Sy1HeHWtweWy6MGK4Ldk3KCm 8w6w== 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=2OKA9Pgk0ZZ7+DXmqAtn7byrzzqg0DhRt90w2UoAl54=; b=RQNvXQVPXzL4dykzDLFLlNvweBNnd9UXsqYxhX/igNi2UOJYQwbFT6Ms22Lro2YF+L isRkmo7sRnk6i71ZySTflK+5Jtp211jroLXrH9epzNN9w9PMNnRe+jqDoRQM7PgdYRcr 3di4zzutbMURBmWFfXs/mULkBU2e2RVw4tD1tNgqtBL1FMX3QJpBoY4vtYUGeRMSUBKR 4n8u4qnpnEqZQymN0ZmyoHyGxnVLhg3mp5Vck4oCHn61Tc0n4j47Vl7MgDa1JJyxdGuJ ZlDFlPNWAOYwpt/kvp60PYXDt2dj3W1ebavNc6cFOBttDApykpsRgpMVuLDtGdvdaCpR j3eA== X-Gm-Message-State: AOAM532aVCr4rtyhjA9eahqC5GUhOPSl/3VAzFnVuyGiKIRwgIvxLNSM A32a2ltrpdFIF+wUeN2SpGEQi7jKfprNI7zUiaMDGg== X-Received: by 2002:a1f:4c07:: with SMTP id z7mr2571896vka.15.1603973349970; Thu, 29 Oct 2020 05:09:09 -0700 (PDT) MIME-Version: 1.0 References: <1603068193-44688-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1603068193-44688-1-git-send-email-tiantao6@hisilicon.com> From: Ulf Hansson Date: Thu, 29 Oct 2020 13:08:33 +0100 Message-ID: Subject: Re: [PATCH] mmc: mediatek: replace spin_lock_irqsave by spin_lock in hard IRQ To: Tian Tao Cc: haotian.jing@mediatek.com, Matthias Brugger , Philipp Zabel , "linux-mmc@vger.kernel.org" , Linux ARM , "moderated list:ARM/Mediatek SoC support" , 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, 19 Oct 2020 at 02:42, 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/mtk-sd.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c > index a704745..fb3e419 100644 > --- a/drivers/mmc/host/mtk-sd.c > +++ b/drivers/mmc/host/mtk-sd.c > @@ -1536,13 +1536,12 @@ static irqreturn_t msdc_irq(int irq, void *dev_id) > struct mmc_host *mmc = mmc_from_priv(host); > > while (true) { > - unsigned long flags; > struct mmc_request *mrq; > struct mmc_command *cmd; > struct mmc_data *data; > u32 events, event_mask; > > - spin_lock_irqsave(&host->lock, flags); > + spin_lock(&host->lock); > events = readl(host->base + MSDC_INT); > event_mask = readl(host->base + MSDC_INTEN); > if ((events & event_mask) & MSDC_INT_SDIOIRQ) > @@ -1553,7 +1552,7 @@ static irqreturn_t msdc_irq(int irq, void *dev_id) > mrq = host->mrq; > cmd = host->cmd; > data = host->data; > - spin_unlock_irqrestore(&host->lock, flags); > + spin_unlock(&host->lock); > > if ((events & event_mask) & MSDC_INT_SDIOIRQ) > sdio_signal_irq(mmc); > -- > 2.7.4 >