Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4009123pxb; Sat, 13 Feb 2021 18:02:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmFNK+cUzlaA5xPhGFW1A8iMlXZP276E3PrYJZzRWsvH6W59dZXabxiSsDy12+DsCgwx4N X-Received: by 2002:aa7:cd0a:: with SMTP id b10mr9586420edw.153.1613268164008; Sat, 13 Feb 2021 18:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613268164; cv=none; d=google.com; s=arc-20160816; b=G0Qi3c9/cn2rPQBwk8B0uyW/E8cZIHQbISA7l3lzUGfnI6xBmeCJtk1xGzz+usgtOq 4TE5zhIlLqvSCnggrBMqkZbxQ/H66cILvPIEfwtNSdjRBn0059jX/f4tfKAyEEDeL/es sFpR5ybGfPmErwgSuvMyhgInQtD37kdX3BsLB6krAyMNbtgAZH6owjvktpMZy8fVO1Nq WvtPvxHgCmz1pU4Pu1IihCn3HR7ZFdo/dqdvzGfzDWekg5N/RZSGB42egzbYwnlMd6c/ TAminzP4rgCG/KHdsvsv7yAkAf3D8unt9Lnvp6fX07MQFqmV7dUZ57Ofj1J8SW2rgfts HU7A== 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=K4u34jBgoN3pvvMfuoZWvbXvYcFuz5PwpprXBuuhQv0=; b=EVCAsY0qHQoGszQ0tkCx3YvqTEpfPfhyuSlhfdqUoNCy2yY2WxpQUJaAx3BaHTIoF6 1+ccY6FKfuo40bT7kMirEFOBl6txmKclCHjFgYRRrONPnFYt2Hm8f0FlAKyPjEqRAbR7 Wwlh+F/WNUF9BtSb1N/ZXxveX39FEstkiHc05IfXjOLo85l+sP8ZQ/W/jjB5NkFvgKE6 8n18J5CzzDjaVSr4ZyYYKQt5RIuRqBAzbbFvJftFWkQPNqVZORLeY2O2slpVimlXXfUM KLjilm7clzP9EcpA5U7bGZmG/ytBZR9raEIOp72LDWo1nSBSv29TOZYzpCDiLtZ4jcdd 7Dpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IzqDHceH; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si9410148ejr.346.2021.02.13.18.01.36; Sat, 13 Feb 2021 18:02:43 -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=pass header.i=@gmail.com header.s=20161025 header.b=IzqDHceH; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229720AbhBNB6T (ORCPT + 99 others); Sat, 13 Feb 2021 20:58:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229694AbhBNB6R (ORCPT ); Sat, 13 Feb 2021 20:58:17 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02D16C061574; Sat, 13 Feb 2021 17:57:36 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id b9so5642472ejy.12; Sat, 13 Feb 2021 17:57:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=K4u34jBgoN3pvvMfuoZWvbXvYcFuz5PwpprXBuuhQv0=; b=IzqDHceHBFxbk12UKfEeAoRQFJ2vXdSPlyWMGVk/swYicB8ozoQvdHuZqBJ6Bbb31f HuBBKruYuk91JIWbTzicTl3a8iuAcz+p5ruVLfTk8t94NYI/FitWChn65vcL1/I9pgX7 yn7JvdDYfKJaIgCKjA680nepBB3AGXDP0pXFTeEt5acgHPfO/Vivf1t3dpNvLQ1YWwtH xaA6gpFj2xENuaQFmIZNchMDdJbDjWbk5gcPeuYil2sRw7bE2ckjHYI4a3Hf+CJ0QNmS oQRtpBFAxxPMVbOJJYwmAvXM4SOv+dGVvlAdBClcJx1ixDn1Uo8xDEgJEco4oEF9y4ik vMsw== 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:in-reply-to; bh=K4u34jBgoN3pvvMfuoZWvbXvYcFuz5PwpprXBuuhQv0=; b=lVOA49IBr/nfWfw/lWAZV2UPhgch2p8gRh2mUMy485tlYqL0Ppa9TuIqPehpfg4w/b iF0F00sxxb9y2/eNmbTiVRtMv+ORkQCw5ye7Ne7e95fFFCFQRN1R7qypq6qlH+r/1Wxq bfUkBYRH1ub/yzuRouyiwxXz5QJNp6+suaUKxMZCKeEO40a5LogCPxJHN2aJhR1wBBOL kSmYgXlgycc29PKApDvyDT2vKhxphtqRbgcFw4CrBxrL9f6nKIxgb7dgAVd61SkIiRSJ 29tveiz/PQL96MsIfErETkXIsP0gjhOqreaFDKH0G8LmTFDQjcSnn4pH1GMnerVn9K12 4KYw== X-Gm-Message-State: AOAM532KAqtXTZbHl6beVRxe+Mf578HujeYobdR5KcPG32Slw1Pw39iH C0BnWkzkjGL3HE9+2Xn1KZgwYl5WbcE= X-Received: by 2002:a17:906:a48:: with SMTP id x8mr9459263ejf.444.1613267855599; Sat, 13 Feb 2021 17:57:35 -0800 (PST) Received: from skbuf (5-12-227-87.residential.rdsnet.ro. [5.12.227.87]) by smtp.gmail.com with ESMTPSA id l24sm1071349edq.32.2021.02.13.17.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 17:57:35 -0800 (PST) Date: Sun, 14 Feb 2021 03:57:33 +0200 From: Vladimir Oltean To: Michael Walle Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski Subject: Re: [PATCH net-next 2/2] net: phy: at803x: use proper locking in at803x_aneg_done() Message-ID: <20210214015733.tfodqglq4djj2h44@skbuf> References: <20210214010405.32019-1-michael@walle.cc> <20210214010405.32019-3-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210214010405.32019-3-michael@walle.cc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. This doesn't take the mdio bus lock and the page switching is > open-coded. Now that we have proper page support, just use > phy_read_paged(). 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. > > Signed-off-by: Michael Walle > --- How did you test this patch?