Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp306900ybe; Mon, 2 Sep 2019 01:48:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLIyKvDQ9xqa2s7Y7eQ7sqb8qMK8olhjjR9ov9Peqykqvmv3lHhntW+SQ4/hpF1F7xK/b3 X-Received: by 2002:a17:902:ff15:: with SMTP id f21mr8825648plj.185.1567414136021; Mon, 02 Sep 2019 01:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567414136; cv=none; d=google.com; s=arc-20160816; b=iXWWid5/DrhO28Icrn3QCJ+WbH8fvj/8TNnPyqqAKYTa0IySiRasi9AnH+5vL+m6HZ THjgLA9SOZWn5Z6NZrQj1QkeqYXnItTx1j8d2rXTEZBSOhiozUPd+W8vRxU6Y/+cW4+X H2HYGqqbX1G0aeZMCJkfgbFjWpmBifL3KU956BPtTMIRX3NgDLe4WAbreoYNnhPcCnZZ Dzc6xnpn2JaEReUxnGYnAn6maCpj9VIz26edLGodKMtljf71P7ZeNcKNyOtUNk+ZMGxn laKuEyGNeKdirdluCr0dBt1vYQ105aifOKdyY+BcM0czz3Nw7Rkb5jFJdTX6RNo/s6jf 7wnA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=piVC8lY47V4zd0qmJtmvx1ZiVDDDWKtmdiyonD3TF+Q=; b=CU9f4m6EWih9OARrd4n6/l6+gMxTjDEmaz5sVTaNC02HxT3tOw70YJDp8D4jo+np1p 4VSFah5KcSmpXSxW2gf5nh8FEZ/hY0yqmxetvgUdiGpnRX8HGmmILmpuzPQDSLeN8RgR /+uTHY/YSNevxuJ0cUfi8cT07mvfmA7+kjmWNHs7Op0FfhN2K7Ll9Fb7PR3hMjtH6sSI vghuOwnoinWLWJiorEupq2ct0AixzO5ffzPTNpDtqDPupi6ir2wg9C92yEBaASOLMOk1 QrRYQ7bKiMyF9QkwyAKGYuXacLJoUfA3LUpYYGkQJqklqIsKOSxUf+TsjSJ4vQD4kw1q QeZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="n/POo8hM"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si11326727plo.384.2019.09.02.01.48.40; Mon, 02 Sep 2019 01:48:55 -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; dkim=pass header.i=@linaro.org header.s=google header.b="n/POo8hM"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730462AbfIBIiK (ORCPT + 99 others); Mon, 2 Sep 2019 04:38:10 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52181 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729408AbfIBIiJ (ORCPT ); Mon, 2 Sep 2019 04:38:09 -0400 Received: by mail-wm1-f67.google.com with SMTP id k1so13554885wmi.1 for ; Mon, 02 Sep 2019 01:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=piVC8lY47V4zd0qmJtmvx1ZiVDDDWKtmdiyonD3TF+Q=; b=n/POo8hMG3mQicU7+ByrLjlYsC97v0YrUFoP3JHijWfcpq4vMwVB3wWGfgPoFMdHww NE6bBd+YtLGrQx6m1WkizQrNtqvBTGoveH1A9A4NvxKke3W/0BU8Uo6jrYT4c2qfDok1 iIoXNreDXNu8sHgng2vWjW5m8OCdvoCLVzU9fLxUJkAjdbFcQ2fYuVSjRYR4zdRyOEkn wH1mo8eGWcXUro7RAdESUDvzPQnCcu7T7Hr+bQShEltk17zsrBCHbjKpAhCDod4kUi8N 4nkKdLTZzjctwhI1Rdz4FTx65stl+bfjit8oxwud7eje22AeKM9KtJ4g5bTxzE54637V FSCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=piVC8lY47V4zd0qmJtmvx1ZiVDDDWKtmdiyonD3TF+Q=; b=AWJ5UN4CMWjm6JjvzIj9VdQdbQdDAnw/0O2cqoB5h43+7QrlxcRISHWU0i0rSbjZ7L gyMmrJYDWgXvDRl+pDrDlkmG8aR+dGD15Vxk9sk7xMSYByIo+MOYSduQhQODJZiCTrWM GyO49X2ts8LN4eFfUte1kHSUE3uxXf9AAvpKDHFKS/jgfG0aWVVAKZ7TaZvcqLWOwIrz l/JjcfUZa7PUeMh3IfFkR7UwJpeE1t87RxiKlD3O11RaUFk78Me/OjDwroPMkxcwFu/E ekw/7SEEOTZmc9r5YI/I0ZKKYF9s1ZxlIAkEz3KMEL5gLfcd7qGu7kU/UqCvBnuxJ7oT 1xOw== X-Gm-Message-State: APjAAAUGnLhrPGAoWavccTGFXnrJAgNabMzFg2bVghCr4ToGIUD4Fy7T I4UIBVgHZSxhjXVxOQN0X3DIpg== X-Received: by 2002:a1c:c5c3:: with SMTP id v186mr20535829wmf.66.1567413487754; Mon, 02 Sep 2019 01:38:07 -0700 (PDT) Received: from dell ([95.147.198.93]) by smtp.gmail.com with ESMTPSA id o193sm12550070wme.39.2019.09.02.01.38.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Sep 2019 01:38:07 -0700 (PDT) Date: Mon, 2 Sep 2019 09:38:05 +0100 From: Lee Jones To: Fuqian Huang Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: ezx-pcap: replace mutex_lock with spin_lock Message-ID: <20190902083805.GP4804@dell> References: <20190813103133.8354-1-huangfq.daxian@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190813103133.8354-1-huangfq.daxian@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Aug 2019, Fuqian Huang wrote: > As mutex_lock might sleep. > Function pcap_adc_irq is an interrupt handler. > The use of mutex_lock in pcap_adc_irq may cause sleep > in IRQ context. > Replace mutex_lock with spin_lock to avoid this. No one has complained explaining why this might be a bad idea and the premise is sound enough. Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog