Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1957396pxb; Wed, 10 Feb 2021 23:57:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+utSm13lLYdOAvThzzNdbU1dYjfcSWboKVAghIBFGnDdrKHlZryf0BxgW4SslO9vMpoOu X-Received: by 2002:a17:906:780b:: with SMTP id u11mr7218352ejm.492.1613030242142; Wed, 10 Feb 2021 23:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613030242; cv=none; d=google.com; s=arc-20160816; b=sF357l+w7u1O/Bvt1nHI7eMTwf5yxGo7tp6MPlW/NyRAwCGpadIOqIczixkfTjpqAH KGI0AHAITBZqt8zpBcUir9Fl52Iqe0IsyOcOkxH8l5wTJQZTSogfcURAIzpupdqhpwq5 UJXZXk9KXN8wve/pPNleSgj9fmMIuaHx3ZArjh9X1rAM+Z8xQj8pDryOaKFX4y19rvZ/ wntdCO8ceHDVoUjAkUbXBqix/SHbfuiwIQ40OCu335EMFhn4b/mk4r5G1x4/o4StZFb2 bRV0j43MwYhoxmnQTL72BE9hoM+oUWj0g33HmvXL53JojGlOEByoKsDJW6tF1IdAvbe6 3DvQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=LTZJD4ma6sWCmPqIisuAl5RzMUcb5Efd+URGB+ho9QI=; b=xFOnb8yCeIXR56J8cI9njAmy+gBgmbkEVWoSX6C+gv9klsNpZQwP0CIL1I5/GPTpBE //Vc3TrtRYbjZBL5tXitnw+RMiGCMyKpouTDYGFQP3bjcjvugqSN5NCl6qmx4R37J7qV UCbxhA+UcEaXJC8L5kie/VqNjBo+v2lZKwA/tHdnPfdlw2sSlqtME4IUIPaIWqInY4AS SbLlVC8o8havylq60NBKVrjJRaP2NvkWp9xM77DYOhjYUjm0JBF8w3EpvVK2VrE40xck H7luSJucH6wuf+vg9pZS9V0u+8XWn2Eld9l/aZj4pGQVsoKTG5BvCUXP8gnOQyK4pEdV 6UJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=cyFZfAVr; 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 a42si4087116edf.469.2021.02.10.23.56.58; Wed, 10 Feb 2021 23:57:22 -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=@walle.cc header.s=mail2016061301 header.b=cyFZfAVr; 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 S229813AbhBKHv5 (ORCPT + 99 others); Thu, 11 Feb 2021 02:51:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbhBKHvr (ORCPT ); Thu, 11 Feb 2021 02:51:47 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22C6EC06178C; Wed, 10 Feb 2021 23:51:49 -0800 (PST) Received: from mwalle01.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:fa59:71ff:fe9b:b851]) (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 C48FE23E78; Thu, 11 Feb 2021 08:47:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1613029677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LTZJD4ma6sWCmPqIisuAl5RzMUcb5Efd+URGB+ho9QI=; b=cyFZfAVrnb+hW9wUax4YAquNX5EK+Xkyd6c0Pjdwtr5piNniApq6wlbF20IXlNWb4XkCbM cElndYfy9I9kJqjCJuEX87uMXHlZA5fvGukTYWzac0niBYzApBIPUP+WRsxrg1THw5bHEp P5kgkSBovhxCrP9WGe/1qFwH2Vb16rc= From: Michael Walle To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , Michael Walle Subject: [PATCH net-next v4 0/9] net: phy: icplus: cleanups and new features Date: Thu, 11 Feb 2021 08:47:41 +0100 Message-Id: <20210211074750.28674-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cleanup the PHY drivers for IPplus devices and add PHY counters and MDIX support for the IP101A/G. Patch 5 adds a model detection based on the behavior of the PHY. Unfortunately, the IP101A shares the PHY ID with the IP101G. But the latter provides more features. Try to detect the newer model by accessing the page selection register. If it is writeable, it is assumed, that it is a IP101G. With this detection in place, we can now access registers >= 16 in a correct way on the IP101G; that is by first selecting the correct page. This might previouly worked, because no one ever set another active page before booting linux. The last two patches add the new features. Michael Walle (9): net: phy: icplus: use PHY_ID_MATCH_MODEL() macro net: phy: icplus: use PHY_ID_MATCH_EXACT() for IP101A/G net: phy: icplus: drop address operator for functions net: phy: icplus: use the .soft_reset() of the phy-core net: phy: icplus: split IP101A/G driver net: phy: icplus: don't set APS_EN bit on IP101G net: phy: icplus: fix paged register access net: phy: icplus: add PHY counter for IP101G net: phy: icplus: add MDI/MDIX support for IP101A/G drivers/net/phy/icplus.c | 384 ++++++++++++++++++++++++++++++++------- 1 file changed, 323 insertions(+), 61 deletions(-) -- 2.20.1