Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3118537pxu; Mon, 19 Oct 2020 04:34:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjtdinxyUnzlaOQ4p7TVI2SgQ5bzVJwxfngJ1MLU4u2nwh6eZK5lgH10BmTci5r50x2ucA X-Received: by 2002:a17:906:c095:: with SMTP id f21mr17473819ejz.108.1603107293532; Mon, 19 Oct 2020 04:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603107293; cv=none; d=google.com; s=arc-20160816; b=FeW61AucliCGCXjqcgDRMJ/NquuDFFu89+uMA7ENk4eeMlVaoZBeeU/wPSkAAHrOin FhILk9anNNbtOGdo+erZU9Wakv0zA5LkT0YUtpNbYSyxscocUmOMI+A12tuFRPCg+lTK /awuwIqnlQh6BklRjsbwVKpesog41P0SSBlcYxGNXHRQJTo/2v0uatfFCZKozGWSV2lU K1wvac+yFyBGduvVua4JIUAB5hCLloOEznDaxe9ULmL8hj4wCFo5kA+2BHfuQu4yGX1y PXPmfXz7n+aLZemUZlQmuzskJCFWyP2HKiwTyPX+Er2Ld+wNpUgz66g6W5xKNQoBlsTi q6QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:subject:cc:to:from:date:dkim-signature:dkim-signature :message-id; bh=CglHTuol1LH6Rq9Arw6I3q0kZXSSc/D44FpLqZfI5WA=; b=RkyzUwa99SutmmZ5xDM7yJTzbZl13DGWvI9Sfnro8IZCpEuYzI/1YdDi49B34QIUPu AD4OWeEgboSL5bVsrqrZ7NXWZ2g31qb2NlSZpTS4hEF7tecciARfaDmxel+YactznDTG XE0r4yjwm4QOIDEUIjIOM0cO/zRlFozAcB0aWx6ZTDOvDz8MCkFKT3xfyZNBxu3WMeU3 TnnbS6zOuMotj4M9Ul0JizR6Xb5ijOyoR3qq9Xg+t3S8SHydExWFrwZKZ8dBIqQj8Lc2 P0Y5U7cGbpomPZXnkYZmz/7sDyETONLaw1YK/DEM344TJTsDUhaP5fEPKe1pfhoHdf4k MQGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4lpNzGZt; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pv4si7623441ejb.4.2020.10.19.04.34.31; Mon, 19 Oct 2020 04:34:53 -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=@linutronix.de header.s=2020 header.b=4lpNzGZt; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729534AbgJSKSd (ORCPT + 99 others); Mon, 19 Oct 2020 06:18:33 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:58876 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729285AbgJSKST (ORCPT ); Mon, 19 Oct 2020 06:18:19 -0400 Message-Id: <20201019101110.944939915@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1603102697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references; bh=CglHTuol1LH6Rq9Arw6I3q0kZXSSc/D44FpLqZfI5WA=; b=4lpNzGZte+JbLXJ83VGLllmO8p7ZgJPUbn2pEj3AWBlV6Kr6kMkordF9yNYiD+J0YfMNXF WrlseHROLQU+l/lbqigi2qTk9VAJ5y929pArYCx8cDTQAbouSa8PoPonAE8JjMfp1PBvEa chWrp8n1QbIhLVdUVFfL5aSRuMaJZJS8TTFH9PSpLmIHnfKarImStpf087juZuVGvW9vpy d8B+uITbEjquNSdDef0bc5zON2rSBuX0oqlrKnMDzU69dISQhvYlJeHwTtqk2u140cDa/H 3fgsgfkIGUmNcjOiSHyfjChDmTDZqoKfiozdWtZ8cgBRXPi6/SvEdu54WiqWbQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1603102697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references; bh=CglHTuol1LH6Rq9Arw6I3q0kZXSSc/D44FpLqZfI5WA=; b=L1BAx4OybAp6bDVli4bT4V41G4OGiBnmrb1bmCjWXg2vrs6Qc4FM9XNkkoVzYxoojOoBkj 1uEPNEpJBDmssyCw== Date: Mon, 19 Oct 2020 12:06:42 +0200 From: Thomas Gleixner To: LKML Cc: Peter Zijlstra , "Ahmed S. Darwish" , Sebastian Andrzej Siewior , Duncan Sands , Greg Kroah-Hartman , linux-usb@vger.kernel.org, Thomas Winischhofer , Johan Hovold , Mathias Nyman , Valentina Manea , Shuah Khan , Alan Stern , linux-omap@vger.kernel.org, Kukjin Kim , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Felipe Balbi Subject: [patch V2 13/13] usb: atm: Replace in_interrupt() usage in comment References: <20201019100629.419020859@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-transfer-encoding: 8-bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org in_interrupt() is a pretty vague context description as it means: hard interrupt, soft interrupt or bottom half disabled regions. Replace the vague comment with a proper reasoning why spin_lock_irqsave() needs to be used. Signed-off-by: Ahmed S. Darwish Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner Cc: Duncan Sands Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org --- drivers/usb/atm/usbatm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/atm/usbatm.c +++ b/drivers/usb/atm/usbatm.c @@ -249,7 +249,7 @@ static void usbatm_complete(struct urb * /* vdbg("%s: urb 0x%p, status %d, actual_length %d", __func__, urb, status, urb->actual_length); */ - /* usually in_interrupt(), but not always */ + /* Can be invoked from task context, protect against interrupts */ spin_lock_irqsave(&channel->lock, flags); /* must add to the back when receiving; doesn't matter when sending */