Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1644938pxb; Wed, 10 Feb 2021 13:10:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxm5V/0bPO+1CPKt08CKQ15fQC3TiYTQvkuDQBicGYBCEWEsr09+q6fci47rW1JXNmgHAzw X-Received: by 2002:a17:906:36cc:: with SMTP id b12mr4958303ejc.323.1612991418680; Wed, 10 Feb 2021 13:10:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612991418; cv=none; d=google.com; s=arc-20160816; b=E8abhNtPHEcRbU9o+F+mxnFSMwf0MgaqZqh8aB+hN3kUOSA8deZBTsH4OGkUL8L1Tf mpLtfsYNaS+D1672/esUpwn0t1+e4wxNfxUDh65CVbfWqdVWMCg9pcsduh/CMVgLoIik v59fjLe/xJSGzgmCtIK3pDRrKWxXhpwOvJ7qk01JTRFJnaY5ZQmwUlRAGNC5iiAjbwSk 9aJdBzQeC33RFpXPh4eauE67Soa9UYddPZ/SdVuBfKr3OsKFoy/SCu9SU1KdyIIHCLwy bKEk5yZYPmzv5pys8rtW01baQSIwpWYu7kgK8XC0HgFn/E4zICdtGgyy86VsgAqowl5z Bxxw== 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=mZhBvp+WKL1GjGYg/cC0hhNjKILLfx3wgilGDLxX5RQ=; b=RtClhNU4P1/0BKBcBemH7CN2/3YPabNyyPzhrwXjXCuftro2dJ+x4i2bfn0edcewDt 1qt/a2ZTkBHZt8XIzByJWY7gpAWlwjg6qm3oioI7QBwtlW/nGple5MxlVqCL50qxUwXS cmk93Nuf7pscTycyOqDltK5JFk3JSvQgCn0/bHf5HMI1WETUw1iBjL5HU3KdWObBfzpq EtScah4u+giBVTXoopTZK1Ck7qOHoKSd5BGa6LZhTnpUyQ6gHl6OoiXZua3snIY5J3cd 4IG0lz/2R5ivRjtukVdmdQZdWWpt4C1uGCkzWLmJbZ+0qmdmNMBUrQN3Lt6oiqX1SoBa XKeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=lfMfvfkv; 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 re9si2026998ejb.135.2021.02.10.13.09.54; Wed, 10 Feb 2021 13:10:18 -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=lfMfvfkv; 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 S233358AbhBJVJJ (ORCPT + 99 others); Wed, 10 Feb 2021 16:09:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232101AbhBJVJB (ORCPT ); Wed, 10 Feb 2021 16:09:01 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC104C061786; Wed, 10 Feb 2021 13:08:18 -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 7B4FF22FB3; Wed, 10 Feb 2021 22:08:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1612991297; 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=mZhBvp+WKL1GjGYg/cC0hhNjKILLfx3wgilGDLxX5RQ=; b=lfMfvfkvrZvNt3x2iDRGZtfgMAXVzTTzSOQZq1aCNOFmfpc3I4+wium9w+OOc08GCfOgz8 BA0soO9uaTfaRIUcVLJH4BUFbwXNacJbl/bF7AL3Mtm+nz1NZlCZzKzlK092C4j9dp8VeP lJ8k+KcRFXnz9BdMH8BlW2OqKP/DDIA= 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 v2 0/9] net: phy: icplus: cleanups and new features Date: Wed, 10 Feb 2021 22:08:00 +0100 Message-Id: <20210210210809.30125-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 | 378 ++++++++++++++++++++++++++++++++------- 1 file changed, 317 insertions(+), 61 deletions(-) -- 2.20.1