Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2014386lqp; Tue, 16 Apr 2024 05:10:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHkN83cO09a+tTnjgcHoXD3OnY4bVDOjXbMJjYnSEKFBwvLLuWvbQ8UJU5UOmR1dCejN5eWA82foAqDGL8zrA8tr7QHuY59AGu8IGDzw== X-Google-Smtp-Source: AGHT+IGRgNi7y0by8QvB8pggdaXpndnXS4z93Fry8/wZPpPbBEUgTW0OgSNVudOxrP5+njNXO7UC X-Received: by 2002:a05:6871:c418:b0:22e:8868:af8a with SMTP id ch24-20020a056871c41800b0022e8868af8amr8338336oac.31.1713269448000; Tue, 16 Apr 2024 05:10:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713269447; cv=pass; d=google.com; s=arc-20160816; b=mACXC2lHs5nptFyjCn13IYyfCjr2K52DPNwyU3+ZU3bHDYEsfdaMIiYGaOU0zDqSON 9QQU+sC6I78xq/O70wGIaAYt7/aoAFUznci/wVq1wwvTXTDHn2slNIP5ehjI7cS8gf7y QYgbSbFhWWoCHpnd70Z4NvNq1Dbioy7U3KG0wP5ySCqPOE9cIRahZjDZXdR3PW7jnfUg jKfaWgVFoLDJr0dcwXgS6Axmwe8dQ+Zyx06RPeroNsYGXXlfkcvfmigH9/uvRFhuFV37 68m/qT0yB9oTzKQP9n/7o4HlfxDM+cf1yAjmdzC8LXlZ/GGiEFqEeCvNT2v1/j9xJW0n nWTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=rqic+xVQD7P5NplkS6N+DUp4Zv72nWmu6XLdwVwHsWQ=; fh=0FTN9QPBIqcpSKM5tTIgecyA4KkS1KUo/uqvP8E8yUw=; b=kd5oNQE7DMXc44zcIy6QK7U9A0/CxNXJTFsizZftiCdVVEM8lEhIHPCE/fPKruuBwy KH7A1RpV/Qu0rZFmOZeS9XBluCtpXkeG8tSAcQPGSfI1eTeFgRaDA/GlopdGoCNibnwx O3kN4B5Ct1u6tLl99NtHJBmfNxZyx84qqdux4SzsxpgarVRT+Y4p+GyQ12d9krBzJl9d g8DrYeAsYYK87aMhUueQqY47y4bIa8U3yfoIGOMtgbyNShkz3XSrfaDQL485lMFTBKUU y6KHvFL7a9QmQNnCziCn/3nGM5kf7LQ6BB2YI1tFiEO9ikbUzdEttluL6Ns++cB/k3lM WUZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ldypGjqz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-146754-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146754-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y11-20020a05620a09cb00b0078d518ec0a8si12430903qky.619.2024.04.16.05.10.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 05:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146754-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ldypGjqz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-146754-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146754-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B3E4A1C20C92 for ; Tue, 16 Apr 2024 12:10:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 885DF12AAD6; Tue, 16 Apr 2024 12:10:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ldypGjqz" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F4B2127B57; Tue, 16 Apr 2024 12:10:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713269436; cv=none; b=p026pyuLHyrqmvssIaCnV0ApyeQAV3sNkRs0UeGltQdKuzgLuSdNFuOKBaG7u0aCEcGYtzZmoYjg1ZFX/rN4SXGNkylAM85VifioubalDT6moiZNZLtgY0urkH+1CPAED5z2iBDF3F3bmJwwQYP8pFDbENYJlFotMdNf2GSxVQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713269436; c=relaxed/simple; bh=oeygwidh8JjsndjXzqBY/y0hHXvLxr6263bY5yFGTNQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Lndot2FXB8cwZ35d0IFqQyagJQGLlWFgWDjs8THwEIYgu4YmnCGmsOgUfbXjPKygEsmhCtS0PeYO0a+rcgt6Hcc6q0LutSmiYd89iJ2jOCG52WSLHc5jFnvGgVy+nGiLYH/QGzspXXyocWcvTi9KbV0fbienTGlUPix0IS17ZZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ldypGjqz; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-57030fa7381so1915691a12.2; Tue, 16 Apr 2024 05:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713269433; x=1713874233; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rqic+xVQD7P5NplkS6N+DUp4Zv72nWmu6XLdwVwHsWQ=; b=ldypGjqz5fLuig2yA9ppMaghbRhG9KJuSLdYpX0+Yjmn23GXVkdoI7QzLDEjmVgKyG /nketclHvTb9FbJTEbGvRIXqEpkwOqXlzpia1R+WknuitblRtw1nrIQQT1zNg8T6Qxfr J0EK6ViDg6V/cL6roJI4GrzVEG74+4uMEnPRScwbn0zpXe7HoEnqYC23YbBplko9xu2n boyMS1rwmtMfuoSgkynr6yz8DXPjHumJnQ8DkrB5JR4u9aktww3Jws3pTr6MLBHQx0dG FbvQAUd2Fe/dE5fWt51M1Yo6wtEHr3CkbVJfBtwEZXFXRJFAVevwsgLqG1q8xYFIeYKW 88Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713269433; x=1713874233; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rqic+xVQD7P5NplkS6N+DUp4Zv72nWmu6XLdwVwHsWQ=; b=MHf/aRhxRZ7udtNec8CgRvzWLDQtMoxMOlett0msUP5qFWOQYrdN4wRK+gS9rOoosK Z5KkTwbW4S3miHDDj66Gr2ABV58gekdcJt2wFWSWbKd45cViCkH34vL4evplrYHaY958 iw0OawEBYe238YUYN8PHKBmhU7pmACXhWnCLpFiSGIwFAHwDtMvQ5ztyoFu0x40oUKF/ Ei307gB71ShbTVuOdqI8Uutba60QttD4ddfXJM2OQu6dBFJSpLX2sQx0EKYrnMZ3t1Cu AtPFMI7KAT2nbsn4QpSvCx41v1Ge7pt0dQCJHkWU3qYxlMtsnSWGlzS53hQLA79gd3mk xkag== X-Forwarded-Encrypted: i=1; AJvYcCWZsmLHgPKt8PuvICEuntWJERIlC6oSJ+008CJLDR0f4HddboGuQ+vlDof8pnbpHKxZTTAl8IAnEMno4iavea+ysnTdc+AkYrRudzPHYNHmbaQEJLYLavRzDtR0dHFJsGndadwWLVWhLg== X-Gm-Message-State: AOJu0Yw3oUbZJmaB+klLBtDWZbHh7/YEoIRU1pL7LnT6W1MSloEyxcb8 by/9agMUM+JVM9Ii6cB9s1s8yTQ0lLgUk3Sep4eblbj9K/hZqX4d X-Received: by 2002:a17:907:7e87:b0:a51:adac:d6e0 with SMTP id qb7-20020a1709077e8700b00a51adacd6e0mr10553313ejc.62.1713269433453; Tue, 16 Apr 2024 05:10:33 -0700 (PDT) Received: from eichest-laptop.netmodule.intranet ([77.109.188.34]) by smtp.gmail.com with ESMTPSA id hg17-20020a170906f35100b00a469d3df3c1sm6767509ejb.96.2024.04.16.05.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 05:10:33 -0700 (PDT) From: Stefan Eichenberger To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lxu@maxlinear.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, michael@walle.cc Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/2] mxl-gpy: add option to match SGMII speed to the TPI speed Date: Tue, 16 Apr 2024 14:10:30 +0200 Message-Id: <20240416121032.52108-1-eichest@gmail.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The mxl-gpy phy supports a mode in which it sets the SGMII speed to that negotiated over the twisted pair interface (tpi). This is useful if the Ethernet controller is not capable of autonegotiation over SGMII, or does not support the mode implemented by the mxl-gpy driver. This patch adds a new property to the device tree bindings to enable this mode. I marked this series as an RFC because I'm not sure if adding a new property is the way to go or if we should use the in-band-status of the phylink instead. Unfortunately, it is not possible to access the phylink structure in the phy context. This would mean that I would have to add a new function to the phylink driver that would allow us to access the cur_link_an_mode property, or am I missing something? Stefan Eichenberger (2): dt-bindings: net: phy: gpy2xx: add sgmii-match-tpi-speed property net: phy: mxl-gpy: add new device tree property to disable SGMII autoneg .../bindings/net/maxlinear,gpy2xx.yaml | 6 ++++++ drivers/net/phy/mxl-gpy.c | 18 +++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) -- 2.40.1