Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1737247ybg; Sat, 19 Oct 2019 01:24:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZh0t0iAAMX8O+PiNcG2I/BYM515RyHBrBhCeo4SvjbpGcXQs23SvUSgTeuTw4uPhACVBT X-Received: by 2002:aa7:c410:: with SMTP id j16mr14112519edq.271.1571473479980; Sat, 19 Oct 2019 01:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473479; cv=none; d=google.com; s=arc-20160816; b=Ln2glCJm/jTOrMr4f67GwFKZosF+e1RWC9hvx19EM61axGMgV7nA0b42UEtS4weaS2 czNSKEugRhmNfwxMf78tO/4MR6nqNV6wGRqL+8VEUAsGqr7Lm7RzYIYQMc7VbimTz3po XsC/tsrr9woOXJ3UFvxrMp68NKBe9pGK3waKQKzBFOJ4vO/aKdaarWG/dERw3i3BwDEP /wUyrNrq8qrWcDkmGrixCjdUPS4/FGS3dsHrgVNbqb0anyNnnUgB5MpcKctXs0BE86h9 3ma5TWAtp9Y/z1UwAoDrOAtQbEIt1koIjs6f8IRFuXe2aL79BdaKOaK+DSicZDNlKfsn bzUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=I+A3dB87+JuYioNI45CdwjsokYk3XurMvwJZEmk0zIQ=; b=pSZn0LsX4JfjonGR06fr1a99qZEb3Ms6m4pHebq4+i8XHKbpeCPhexz4+Vk7Jv5xQX 2zNHtGjkXp8s5DZWufC4pE/nyJQZ6f/yi2l/26IMGmXyFHonYUOLzDmVjBigO5817RHs 42Z3Pc9GytYU5obve5LPnV0137gTNcB+leZgmeA5N8bfOHIRirzAqMpldDs7kVbYn8vZ jfrVF2omk2uHxMILgjYiInqOaPqn+iq7c/ehmK3+9NZt+MmsxELGCVTmgC0d6athxQhv AZuaS/o3GcCVCQcjmwzGmzETZum/QfsqUmV2phagA7nOQi+astuuH5k8YB9CLq/m/Z++ m3fw== 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 f7si4720803ejt.155.2019.10.19.01.24.17; Sat, 19 Oct 2019 01:24:39 -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 S2410252AbfJRNPh (ORCPT + 99 others); Fri, 18 Oct 2019 09:15:37 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56898 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729109AbfJRNPh (ORCPT ); Fri, 18 Oct 2019 09:15:37 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1iLS6O-0007ay-VM; Fri, 18 Oct 2019 15:15:33 +0200 Date: Fri, 18 Oct 2019 15:15:32 +0200 From: Sebastian Andrzej Siewior To: Daniel Wagner Cc: UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Woojung Huh , Marc Zyngier , Andrew Lunn , Stefan Wahren , Jisheng Zhang , Thomas Gleixner Subject: Re: [PATCH] net: usb: lan78xx: Use phy_mac_interrupt() for interrupt handling Message-ID: <20191018131532.dsfhyiilsi7cy4cm@linutronix.de> References: <20191018082817.111480-1-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191018082817.111480-1-dwagner@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-10-18 10:28:17 [+0200], Daniel Wagner wrote: > handle_simple_irq() expect interrupts to be disabled. The USB > framework is using threaded interrupts, which implies that interrupts > are re-enabled as soon as it has run. Without threading interrupts, this is invoked in pure softirq context since commit ed194d1367698 ("usb: core: remove local_irq_save() around ->complete() handler") where the local_irq_disable() has been removed. This is probably not a problem because the lock is never observed with in IRQ context. Wouldn't handle_nested_irq() work here instead of the simple thingy? Sebastian