Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4019285pxb; Sat, 13 Feb 2021 18:28:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJytAQb7p4wG0xfN5wPMg6TErZu1+4USokA2rT1GOgiKxR+tFMKLeKhiYEAI146hrfa3/2mQ X-Received: by 2002:a17:906:3444:: with SMTP id d4mr9610595ejb.410.1613269734389; Sat, 13 Feb 2021 18:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613269734; cv=none; d=google.com; s=arc-20160816; b=ulMkxuLbIPkimqzoMgChLTFbowNSN3S0fJ3IT1DlGiPQVDo2EbbH5J1oEhk7Yg7TvO inTSt7TRkj2yfdBxoXEyZOIsZ6AdFT7VUMrRB+IilFjE/TPqbAmdqTuhvPeXTQb7ESMq aH7VGYB4pfbck6jYFxDiM3Nfc4F2DCoiuCM3Rw88zTl+gmYtkx5GUu62nNIXhUvhIC2K 8W4iWgfU2MKZ5dA1G4n7YMQ/ACgCvZEC+ZfqneqUqDhrUTW2I+xYU0lzzelMERQ7XmrU ovwF+SgdDHBgqqe8lunqESBzRvFZRu7s5aOsfYUJ/QLWR2zAFZwMp7eyrpL2IPiATnFN 8oag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=jYade44Er++PL8gJFEA789aohz4aKYKKdcGATKb1jqc=; b=k9+p8K/NuYTi8eCEu06iFrzUNJo2vV7EvG+VfWxMi70sRO3UG/NVeCVAE1N6DW1WRg ZWg5PmTqoyVGK7CZ+Qq2kyfR5XBZHw/Ku3D7B6+9kO2ueoQ8rQQ9U9g7gW7bno3TTMs7 YDFMAb3jSXRaEa6QrwLfyAOkkH3nopPyUm1bzJct7nXUa2xLB7ZQVRdsXa20GbNc4NZt 6+dk7y3g5UrpxCLfYI7w+IMkuD+ao7DnjzNLosZjVuCf/r27skE38ruu55lBPncXsAiK 4Jw9grbY+/2UQ20qYS6j0RwtjE3v9bYKpJh0wY0JrkRoB5dyvzflGIchMjgVRMY9auyE k6Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@walle.cc header.s=mail2016061301 header.b=sd4oshak; 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 d23si9367621ejd.151.2021.02.13.18.28.11; Sat, 13 Feb 2021 18:28:54 -0800 (PST) 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=fail header.i=@walle.cc header.s=mail2016061301 header.b=sd4oshak; 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 S229718AbhBNCTg (ORCPT + 99 others); Sat, 13 Feb 2021 21:19:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbhBNCTf (ORCPT ); Sat, 13 Feb 2021 21:19:35 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AC5DC061574; Sat, 13 Feb 2021 18:18:55 -0800 (PST) Received: from [IPv6:2a02:810c:c200:2e91:dcab:323e:12bc:b21a] (unknown [IPv6:2a02:810c:c200:2e91:dcab:323e:12bc:b21a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 7F23623E55; Sun, 14 Feb 2021 03:18:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1613269133; 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: in-reply-to:in-reply-to:references:references; bh=jYade44Er++PL8gJFEA789aohz4aKYKKdcGATKb1jqc=; b=sd4oshakWlybWIb09uSI+tH8voecDPEVPFkyzqqMP26ZF3dTPGwwHll5XvpkQ3AiH56+ql QpqUh8NGcYR/QcJ665k2hmk4YihEqABtxlJAL5OHAeSdEAd2IqCwNTzFSewmgE7ZX2hXTQ QLMLrunvdFpcWGNNc1qjPiVFGxTEzYg= Date: Sun, 14 Feb 2021 03:18:49 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <20210214015733.tfodqglq4djj2h44@skbuf> References: <20210214010405.32019-1-michael@walle.cc> <20210214010405.32019-3-michael@walle.cc> <20210214015733.tfodqglq4djj2h44@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH net-next 2/2] net: phy: at803x: use proper locking in at803x_aneg_done() To: Vladimir Oltean CC: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski From: Michael Walle Message-ID: <4ABD9AA0-94A3-4417-B6B2-996D193FB670@walle.cc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 14=2E Februar 2021 02:57:33 MEZ schrieb Vladimir Oltean : >Hi Michael, > >On Sun, Feb 14, 2021 at 02:04:05AM +0100, Michael Walle wrote: >> at803x_aneg_done() checks if auto-negotiation is completed on the >SGMII >> side=2E This doesn't take the mdio bus lock and the page switching is >> open-coded=2E Now that we have proper page support, just use >> phy_read_paged()=2E Also use phydev->interface to check if we have an >> SGMII link instead of reading the mode register and be a bit more >> precise on the warning message=2E >> >> Signed-off-by: Michael Walle >> --- > >How did you test this patch? I'm afraid it's just compile time tested=2E -michael=20