Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp91788pxt; Wed, 11 Aug 2021 15:27:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjDs3aMZnwFmL2O24ddAVdVaxvb+SxymCdT6mVMmEPoLIV2EerzOn02/D5GAcDK5pecXgy X-Received: by 2002:a17:906:858d:: with SMTP id v13mr705491ejx.424.1628720860028; Wed, 11 Aug 2021 15:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628720860; cv=none; d=google.com; s=arc-20160816; b=lTTKa/EFIn3JqF7Dn3vA3DK8WFX1C+OLjG9b9bWx1IT6MJfFD6O5bXI8ljyfDKsFzl pkgBKjEGlVIZntgKFMR/tCnsDq6TuERWuFfdUrwIPBg0cq3h4w/2/xPFItMWblVL+ntt E+Yl22qCe/zFF4lfbt54K7zYvqP+RT/heJCQrjOtT/cPlZBo6mW23FBzpAaxlWEtWZkb hWPPET+5ia1NH9RVpFtSwnqiuTQEafLQ4KkyJiBqyo4QlACXtOInfW9mBv0j38VrMfBX zaEjikmeq/skEwulplAwVCjYE+jWksG/KPSiXjB7RiBQcZhYeWpOC+EYZ+uyxkWFi+qb uucg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=poRP3nQyD7lNNQ3P/1blKXJqRofYUQsNWQobugkVHSw=; b=kNYhLUgNhQDp+A917kVsckdDPO8OR1ir8jxnpGmhdu4Nk5mGCSexFz8VPG96XIJ3fV cksguvVoMaclMjZ+HzNIRIJDZepCC3C4hW8Z1wZf1l0X4pyuYHcMp9a+MGH29WQHM+3j yRDCQFUjxUs5MpzcyuD5trOr1LXYEGYaYsjZQsQMxJRqD+LKFhFnTZhQMf5BoNM2yCXC 1lH/pz6P8RN9+i9ZqbFlY0kHq4rZ1uDm2PU2+MRL6jag846UiEdDljp9WvH7GUfInDrQ nFdcoXFS65U/FAAi0LNrF2bkrzuTE8950HdvP5v0Bmbius6IsgFFuUkxa9rTFqp+3RKd 6Gug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=V8YaSRJ0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si700957edj.222.2021.08.11.15.27.16; Wed, 11 Aug 2021 15:27:40 -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=@lunn.ch header.s=20171124 header.b=V8YaSRJ0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232552AbhHKWYS (ORCPT + 99 others); Wed, 11 Aug 2021 18:24:18 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45978 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232212AbhHKWYR (ORCPT ); Wed, 11 Aug 2021 18:24:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=poRP3nQyD7lNNQ3P/1blKXJqRofYUQsNWQobugkVHSw=; b=V8YaSRJ0X3LFGR0LK38iM3oI1C Sa3g0d0FsYoJa5hi9MNtdYAnWqwe2Y4x3mn5UK2dWE9JK9omwgnf7t4dvMARu/QYOYpi6vFbmUctH EMTrTAqmYu6L+UTeXlHfK34qleGUQm1FVVlbvwFk+wVl8Ux8Kw/HvdE3IGhbf/aJeatg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mDwdP-00HCP9-GX; Thu, 12 Aug 2021 00:23:39 +0200 Date: Thu, 12 Aug 2021 00:23:39 +0200 From: Andrew Lunn To: "Russell King (Oracle)" Cc: "Ivan T. Ivanov" , Heiner Kallweit , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: leds: Trigger leds only if PHY speed is known Message-ID: References: <20210716141142.12710-1-iivanov@suse.de> <162646032060.16633.4902744414139431224@localhost> <20210719152942.GQ22278@shell.armlinux.org.uk> <162737250593.8289.392757192031571742@localhost> <162806599009.5748.14837844278631256325@localhost> <20210809141633.GT22278@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210809141633.GT22278@shell.armlinux.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 09, 2021 at 03:16:33PM +0100, Russell King (Oracle) wrote: > On Wed, Aug 04, 2021 at 11:33:10AM +0300, Ivan T. Ivanov wrote: > > I have sent new patch[1] which I think is proper fix for this. > > > > [1] https://lore.kernel.org/netdev/20210804081339.19909-1-iivanov@suse.de/T/#u > > Thanks. > > I haven't reviewed the driver, but the patch itself LGTM from the > point of view that phy_read_status() should definitely only be > called with phydev->lock held. I'm cooking up a patchset which makes phy_read_status() take the lock. I don't see any external callers taking the lock, so all the changes are internal to phylib. The change is however made a bit more complex by phy_read_status() being in a header file, not phy.c. I wounder if there is some build dependencies, modules vs built in. So my first patch simply moves it into phy.c no other change. I will push it to github and let 0-day chew on it for a while and see if it finds any build failures. Andrew