Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp178593ybl; Mon, 12 Aug 2019 14:06:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqynPVGD9TlnlnVF46qBKGYHaDP1N0p6jK5nfirhKLIoEMj0AFLzUqpkHK6Tmp6l2nbkKeUH X-Received: by 2002:a63:494d:: with SMTP id y13mr32297048pgk.109.1565643980273; Mon, 12 Aug 2019 14:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565643980; cv=none; d=google.com; s=arc-20160816; b=W4LUal2+JF4Zs1SH5IVlvYb1LAZLsFDe+2ov1FcIY9ybWY5cV7T2A8oQKAQBjMFEb0 gr00rN94r6xgo/r0CK3xRQe8GEYhbF2w8vO23PR2/1lbbzbGaIizB5xDT1f1kNJ/1ba/ Xz7AhFzGeAhtTTUjeE7LArqAVCmLdeZF2awliQPUklXMA/9X8S+ez7KbkWHHJW8VLiue HRstxLOn5ZcTe96v0Ti9tAUaCOay1hLi3A/jcG7r7sQB78tDU+YkUPfT6ihF61p24sHE rGQVagr8wbPZ9MEdRLcQpcG/5v8j2QyDQ85rfZ6L3nw0n6HjySX7SqmC++RjE1ARqjX7 IVSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fgoVe/nLiSTNoOZwWS+ahR0+USv8BaROFNw2CB8H2oA=; b=UspyA5Q1jHLqIGREmp0FKHAWAZiqLSvl1/69V2qC16NpWcVUFDyYsCHWhiEbF0LRgm HrlK+tLxnpzSy6TNvWmH9vt0Vy387hM3mt7XE9l6w6iYaJOy/GxLgIpSnpX1mBlkzdVZ NlmG7mzPCmErxm+RVIa4uv5joSF55XDUuKiRddGhZbL8cL/ciYROTJGezQGg6ClgbWft ZI4QtTZ4MMqTE46X3aCVCTRaTl4Qb6UkkPfqXZjWCp8EZR5tCjDiTHYX44ZV4OzHemCx X9lkgN9gxgfDbixEFK1YvWHGGOmwF3Jf++XvXOCKZ9JTsB1TUGPrFcXgl6qP6fwoC6j1 ZoyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v203si29736953pgb.302.2019.08.12.14.06.04; Mon, 12 Aug 2019 14:06:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727215AbfHLVEo (ORCPT + 99 others); Mon, 12 Aug 2019 17:04:44 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:41605 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726707AbfHLVEo (ORCPT ); Mon, 12 Aug 2019 17:04:44 -0400 Received: from localhost (lfbn-1-1545-137.w90-65.abo.wanadoo.fr [90.65.161.137]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id DE26C240003; Mon, 12 Aug 2019 21:04:42 +0000 (UTC) Date: Mon, 12 Aug 2019 23:04:42 +0200 From: Alexandre Belloni To: Fuqian Huang Cc: Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtc: mxc: use spin_lock_irqsave instead of spin_lock_irq in IRQ context Message-ID: <20190812210442.GV3600@piout.net> References: <20190807082310.10135-1-huangfq.daxian@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190807082310.10135-1-huangfq.daxian@gmail.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/08/2019 16:23:10+0800, Fuqian Huang wrote: > As spin_unlock_irq will enable interrupts. > mxc_rtc_irq_enable is called from interrupt handler mxc_rtc_interrupt. > Interrupts are enabled in interrupt handler. > Use spin_lock_irqsave/spin_unlock_irqrestore instead of spin_(un)lock_irq > in IRQ context to avoid this. > > Signed-off-by: Fuqian Huang > --- > drivers/rtc/rtc-mxc.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com