Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp463956pxb; Thu, 5 Nov 2020 05:02:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeUicG7f3klHFj1mY3XefiB5EmADXD+8Pu+e1zBYF1c5rrwhES9CM8KAGBGiVsTUTWAvT6 X-Received: by 2002:aa7:de86:: with SMTP id j6mr2508044edv.353.1604581326596; Thu, 05 Nov 2020 05:02:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604581326; cv=none; d=google.com; s=arc-20160816; b=VXrNDuItW3oW3ojSZkTeMOlYmkmxFxnoyyXlmrZG25FZD8Yn+/zg+RygW5GF0hWE2L 6yhoPTSlXqP94t4VxxC6ItQLHhTyvuyarGB8ox4yigLzcoiUTWkVmCDpQ1EvPvMJgsvq ONzSr/6vY5bVHVOBZQryCn2qlV7xIbjgd+G1w7j7DRFM3jwviV4JnSf1NX68D6jb3GpX Qmysj1q9DJi1xN3e4492Ld3u6sbO9j66pX8fEpd3P3LxwXwoLJVYhJSAnDVAVf4f+rEZ oQoIe7ca64+FmsbZQfOoU3ZKbKrXRIxfQroFucF+MyxwKi6Hk3wgYhNgd8ZnEhh+9efU Zakw== 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=/GWKHgj2S/6eiUDyBrO4Blx873nzdq4gGQ2ur5hE7TU=; b=hcIrvwiMQh0vAHQyuL3lxGIi9LKomoWqm9DherYdtzKDI8U8tkjJODhf0hg+Ayyc++ Q2ZWWpAaoNNT2IjEwTHWUJUZ5jRX+FUz5FqMJkTtu3mWXR7QvCyYft5vZfHM8LLBTgt4 WzCG2c1NsjYCLlTjlZWXRzUHGnpJR7B7Od9ZG0tLMtkZW0ca6HPy6wuzjacwicphsgys CVUi5Mg5SugUQ/AEDstXeHEbWLPrAi07NMiVnSNQsUZZE6RCrvWAPQrX4/TKKRCGyOQX DEHFeRdcGHy+YaiKb/WWJPxLy6VBJdg5SPcyxKulQzwceOvGLiTcMfbagmZNrL+URJak WH9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=juZNn7AT; 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 r16si1099349edq.149.2020.11.05.05.01.43; Thu, 05 Nov 2020 05:02:06 -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=juZNn7AT; 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 S1729990AbgKEM73 (ORCPT + 99 others); Thu, 5 Nov 2020 07:59:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728371AbgKEM72 (ORCPT ); Thu, 5 Nov 2020 07:59:28 -0500 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2423C0613CF for ; Thu, 5 Nov 2020 04:59:28 -0800 (PST) Received: by mail-vs1-xe44.google.com with SMTP id b129so708923vsb.1 for ; Thu, 05 Nov 2020 04:59:28 -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=/GWKHgj2S/6eiUDyBrO4Blx873nzdq4gGQ2ur5hE7TU=; b=juZNn7ATLUh5c/FjYPZJLxum7iwsn3BLLjFdy0vPProXAYp5OZ/XJODQv9JeVjNYQ3 OGRbmlqSg/An1FaYfaQDufnVN72C4chiT9bK0jo5PHuf4gGZpSmRLl4cZwBgI5HBa40T gTXuRN/Cv3vNBHUvmWiInC6nuKoRpIVYIH8sLNRGaamBARkKkH4ClXtPzV4uEiF8gMNK eGoCgJs/r5D8tbJm+2R7uyKJ2XArdAYeFGwRKtxNgMO+lbYzk21vwwsgB4nMNP/xkEus SeeDvrh8j8/I6aCxgnIlziLZpN1B+sP6XwCyycHzw33ZxITqCHxx6YV5uCk8QeXfSfSb lT1g== 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=/GWKHgj2S/6eiUDyBrO4Blx873nzdq4gGQ2ur5hE7TU=; b=BVjw2KfrbLIKy/A9SAAfG7BpcbVP3o2o0ClESvjZA+q60szK5agCGddyb+yAc/GT5Q khHsRFZZb9ycNEZ7R1xMnIwwWXbx0c5BYLYxOzmmwU//HMfG8JXzy3tJTTqeMj2X85Kr VK/LCJl0TMnA0Wscel9zv0OBZf3Zj4J6CMaZHM4wyUYUu/CcFwypvn5IMn9D5DfycGQH m0rWide8F2vFRz8qeyZwkaY4RSvDucReCJ/fPKnFxycGJE3k5yADoUh2LoUkvUW+VBgz QRDQ1Q0rxyWM1a7crkmbjAjqgot8gjA6y0nxT012J50Jy4Kn4Si6G619eBtveEWQu5kS ZtjQ== X-Gm-Message-State: AOAM531882BIyEyXNVhe/YXxdkmGBAxGKicekR7GvAAwHH+mWLNIKcTk gdMU/s3kDV6clX74x9tAge5dSnV3p7/3uxrB3k4h0Q== X-Received: by 2002:a67:3256:: with SMTP id y83mr1116160vsy.48.1604581167927; Thu, 05 Nov 2020 04:59:27 -0800 (PST) MIME-Version: 1.0 References: <1604021319-31338-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1604021319-31338-1-git-send-email-tiantao6@hisilicon.com> From: Ulf Hansson Date: Thu, 5 Nov 2020 13:58:51 +0100 Message-ID: Subject: Re: [PATCH] mmc: moxart: replace spin_lock_irqsave by spin_lock in hard IRQ To: Tian Tao Cc: "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Oct 2020 at 02:28, 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/moxart-mmc.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/mmc/host/moxart-mmc.c b/drivers/mmc/host/moxart-mmc.c > index f25079b..89bff4e 100644 > --- a/drivers/mmc/host/moxart-mmc.c > +++ b/drivers/mmc/host/moxart-mmc.c > @@ -465,9 +465,8 @@ static irqreturn_t moxart_irq(int irq, void *devid) > { > struct moxart_host *host = (struct moxart_host *)devid; > u32 status; > - unsigned long flags; > > - spin_lock_irqsave(&host->lock, flags); > + spin_lock(&host->lock); > > status = readl(host->base + REG_STATUS); > if (status & CARD_CHANGE) { > @@ -484,7 +483,7 @@ static irqreturn_t moxart_irq(int irq, void *devid) > if (status & (FIFO_ORUN | FIFO_URUN) && host->mrq) > moxart_transfer_pio(host); > > - spin_unlock_irqrestore(&host->lock, flags); > + spin_unlock(&host->lock); > > return IRQ_HANDLED; > } > -- > 2.7.4 >