Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2293383pxb; Tue, 12 Oct 2021 03:35:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvlkBXmrpwQqLk26FBY+/VMh8knTwSyac+000roEJxTsoC+d1wc+9+GQcfkV/gqzTJJIfF X-Received: by 2002:a62:1553:0:b0:44c:67cf:e669 with SMTP id 80-20020a621553000000b0044c67cfe669mr30940110pfv.55.1634034948796; Tue, 12 Oct 2021 03:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634034948; cv=none; d=google.com; s=arc-20160816; b=voXV4QEmd1M2V49vPWj6p4KQJ+Kx6vicOeTK27Lg451qP165fn7qnQ2iMkhmVCP/5g WD9t6SWH6LnN5L8mhynChUBEIPS4QhmCKQ6hd7kRjxk95ZhdnASKopE97D4mDx1VNDPY MhlLChwjFb4qTdszpmahU77lNvuatoTMmnUdLNB683gckgaUOzcY0kjo3GOqRv6nkhN3 Q4cccWRSUeZe1aYZUeD3uRFRMxIxZNSuhPzaONKMZKza0rx7Jl9O3NNRPaFNxoV7Nlx+ lALqedfnz9Y0hdDFFOX/LADNNjX8KsqCmukFms2rqqY41/x2oYbeB2/dM1M62ISpnFqO 3VAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=N3FxWyyAhPx0EQn+niL7GP8WkVwBY4Mf5vip22eXHKQ=; b=HlsFJbgj7hyvz4oTTrfmwMlVh25fX6SYuiJHLidyDQiHR6bpvDXtUaFxwpXgAzwpl8 JO3URoHw8doZQU5YYoWI6jj2vkM2ircIv/CZufa48HSvLqvVp/iyoXUlPrz/3fCnT+p5 YVPnRpL7+pdAMgLIffR67qRl8CQMAxE9SfySX0pNN3pb6Oh1g2CSVUu/ftNTU5f1MVEU yw6JPUKTpaBZrMgnrsxg/eNLepEWpKsypyUt8+6Rnv8f/NM355Q+gZDjhiK83cbYur0I /qRRU4fGvri/uPhqAcv0pG7D/teWAE/4aUHsCuei8r6l6y50gWDeZpA7zHU3htWPyn8z YtQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=oisi1YQH; dkim=pass header.i=@tq-group.com header.s=key1 header.b=BXiFBM8b; 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=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si19795964plh.283.2021.10.12.03.35.35; Tue, 12 Oct 2021 03:35:48 -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=@tq-group.com header.s=key1 header.b=oisi1YQH; dkim=pass header.i=@tq-group.com header.s=key1 header.b=BXiFBM8b; 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=NONE dis=NONE) header.from=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235949AbhJLKgk (ORCPT + 99 others); Tue, 12 Oct 2021 06:36:40 -0400 Received: from mx1.tq-group.com ([93.104.207.81]:7153 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235881AbhJLKgj (ORCPT ); Tue, 12 Oct 2021 06:36:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634034878; x=1665570878; h=from:to:cc:subject:date:message-id; bh=N3FxWyyAhPx0EQn+niL7GP8WkVwBY4Mf5vip22eXHKQ=; b=oisi1YQHZX/o3Zs3AalhyqsJ8n7eLL/lGFaSYe481griVrVOoR0fYiHA 0PlCxQxmcJsbPy5VwiiSuWwVPzvFgOShQrcbEe9UWYVz3zYC/yYTF1vUR 63t7yGze1TAaE9lsZfYPgyRsMIqF2AGYa5jWubyMZyWnVbt/KNAVkntxU g6VGSJ8nkubL+++ARph2UACllAv1fRLaLup+SVCYZY+C8KHp2CwUp49hv ASs/vGDs+LJxCZyFKRBIELl5de7uE31q7GgcWIyM9vVL7kh1PhxcX1CAr qdcrAsU+CD2qno9PfwdVUSMg+8oIP7X9+AoM3be4bt3cMJSn8xcq+T7tR g==; X-IronPort-AV: E=Sophos;i="5.85,367,1624312800"; d="scan'208";a="19994409" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 12 Oct 2021 12:34:37 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 12 Oct 2021 12:34:37 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 12 Oct 2021 12:34:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634034877; x=1665570877; h=from:to:cc:subject:date:message-id; bh=N3FxWyyAhPx0EQn+niL7GP8WkVwBY4Mf5vip22eXHKQ=; b=BXiFBM8bd0rxV9Wmf0T+NviUMvxMUlOMnnm7mrpWRDMSudr2sIV/9cO5 wtGV++GuxiQIcAPA2oyT4VQK6ldQnKbZ1o53Y65Nlw5xSgKmN4+/8v5a6 xeF9wok3VEzG/RaHxs5QJr2DUV7zufZoBftJhdsOU5PSOiPCP+yKTQzyB +Wy1bBmxcOTg4Xzloh39cF4Hjd6oYsoEFo3Zlg8ke0BU7Z0mBMSc4/K5C M1njpVoB1XqBFT4Ak14QTnKck9hw+G1I+MhMowb2/lnK3VpNaLCbIzK6W GpFKtuCFLLmcY2VCGy44W5w/ksSo0FvoeWhcTFEKVFPdHI84L3CNAHz8z w==; X-IronPort-AV: E=Sophos;i="5.85,367,1624312800"; d="scan'208";a="19994408" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 12 Oct 2021 12:34:37 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.121.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id EB084280065; Tue, 12 Oct 2021 12:34:36 +0200 (CEST) From: Matthias Schiffer To: Andrew Lunn , Heiner Kallweit , Russell King Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Schiffer Subject: [PATCH] net: phy: micrel: make *-skew-ps check more lenient Date: Tue, 12 Oct 2021 12:34:02 +0200 Message-Id: <20211012103402.21438-1-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It seems reasonable to fine-tune only some of the skew values when using one of the rgmii-*id PHY modes, and even when all skew values are specified, using the correct ID PHY mode makes sense for documentation purposes. Such a configuration also appears in the binding docs in Documentation/devicetree/bindings/net/micrel-ksz90x1.txt, so the driver should not warn about it. Signed-off-by: Matthias Schiffer --- drivers/net/phy/micrel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index c330a5a9f665..03e58ebf68af 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -863,9 +863,9 @@ static int ksz9031_config_init(struct phy_device *phydev) MII_KSZ9031RN_TX_DATA_PAD_SKEW, 4, tx_data_skews, 4, &update); - if (update && phydev->interface != PHY_INTERFACE_MODE_RGMII) + if (update && !phy_interface_is_rgmii(phydev)) phydev_warn(phydev, - "*-skew-ps values should be used only with phy-mode = \"rgmii\"\n"); + "*-skew-ps values should be used only with RGMII PHY modes\n"); /* Silicon Errata Sheet (DS80000691D or DS80000692D): * When the device links in the 1000BASE-T slave mode only, -- 2.17.1