From patchwork Wed Feb 28 17:24:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 21098 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3493505dyb; Wed, 28 Feb 2024 09:25:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWPUXIgQl0Nqt4sHEox9gETS7bwIBkw1RTsK1eaUqP038n/BBbCBuBGHkU1T7MApsur9ual09Ce+HDWnxhhEv4NRM5vEw== X-Google-Smtp-Source: AGHT+IHTm/K1Ew3HTw+MCL90uIgAzhdVMg129IaddaWUiSdDa3ICum9Ant/ussYbyWG4TzilAWzK X-Received: by 2002:a05:6a00:d6a:b0:6e5:5bb5:a020 with SMTP id n42-20020a056a000d6a00b006e55bb5a020mr221669pfv.19.1709141143833; Wed, 28 Feb 2024 09:25:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709141143; cv=pass; d=google.com; s=arc-20160816; b=c27AryEaH8oQNb+3eOlfQKH2ZfTKPErk6A8wV8AmFkAvRpAP2ipLa+SYpqySpS7jor OTVVswPIfKhoMjriOzfrlI/4cB+aOA4UW2XHwH5LGI7A5AXR+6QXF5GeEx4Xl7rTUARj 4cDsNeLYoxXO4HcV+QQ/ZhWREiKiJ6h8LKohn4/n0r7xJESKjDundHhn8Aays1KHtROO b4tLLT6OhdbAmnXH4PSubJr+KE7BKPVLXaR6fVqpj9e496t9A7a3SNMdl4W6hHdqFK1i m76VLNyDmLaQGyOrf9QZzLtfdzs5lMdgz0iOO2iSH7nWTSZsqgNsTpmmt0wP9izO+M81 qQog== 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=ggUWzI97AER97VCO5bK1ghUrgDw3VtB950on0vUkKY4=; fh=zahSYA2D+oHG6ivi0Vu8ROH4pts8x8/5svla9xMUklo=; b=XbJcH1D3z78nsBh3RuXruL4HOkCyDMLu2W+Se62dsjO2Rh9LEXOJKMBuYspnv1TTcX oCYCdh+Jb18B4AvqW1L+lzwKv05ZvIxMXHOLpVuMgoEh4s7XzVX6QZZ/uOPi4acQakS7 GnGRL760Sei/g233FY9tdpXFKODkgOxWXutApNh1b7/19iQosAPcLeyzkjQgMe72RDs1 ewr0cSlaY8sVOH2n+cG8h0GMXChLONvHgPcau1nS/wHCzgJiCcGug1v1qluUfU4X07IL aI71yTw425n6xTS2EcNWR3vkSgCDSTexra4gbWafE8EuxNGPntdqFyp7kCvH/jpkXxxm pwNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MK1D2lJ7; 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-85433-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85433-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q145-20020a632a97000000b005dc80a2a308si7623910pgq.436.2024.02.28.09.25.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 09:25:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85433-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MK1D2lJ7; 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-85433-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85433-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A4D372815D1 for ; Wed, 28 Feb 2024 17:25:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4755D15DBC3; Wed, 28 Feb 2024 17:25:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MK1D2lJ7" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 E28003FBB2; Wed, 28 Feb 2024 17:24:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709141100; cv=none; b=mVNYYJS3UMuZvca6IQvkJk1c4p44nsPW/8ZzEbLRWzSLiiHdTQ90jJc4AugiUGAlMupiPLGbhrCnsKsJ3Dl0zV/VvA4clefFE/6RUJEUY8bOFSL+AkLvFEyUJ2+rkYAR/PxaoqhpunwfjNHeEFRbqRbUJyLuHD8J8pEyu8I7ND0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709141100; c=relaxed/simple; bh=ibbZtSAB3p6iITdVB1SXa0cy+XZ4vhhCy3WP18PyyD0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q7gzYO3+uFJwEkTRZ35mBTB/F7QzDeHBIZx/AC4EQ68NTsB93e2C7RRhXKF+TGSHC4duVgo/StOwymOJ1OT0sHgXvdpi4yZ9MLHENlIO2sfgqEn4vThIzXyEqeld7ViQPUl6N+fz7gPpNZZuKy2M7LhTydkKNYQKpvToIs2VAiI= 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=MK1D2lJ7; arc=none smtp.client-ip=209.85.208.49 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-f49.google.com with SMTP id 4fb4d7f45d1cf-563c403719cso27494a12.2; Wed, 28 Feb 2024 09:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709141097; x=1709745897; 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=ggUWzI97AER97VCO5bK1ghUrgDw3VtB950on0vUkKY4=; b=MK1D2lJ7BIkx9icBccLLDChbA7H1+8PayXlzXLK9b6z7z5RlI5vSMVBIQigF0Je6Ia jrFTLN6Pwm5pPJPHyG3kB57C7S+eTPwpp2TJPWMrvFdE3sMAoUS4vCxBCJmS5QfN15Zd 1LzVYHU3teMPTatGrPV9qu4qHqYb+rDpPgZptlGN6spDkN1TsTt1n81+sQaU+ueTD/aO GPFlAyfT0qgThRBqQvowiAV71XEDT2AlxkztFXpiU8k+5MOrOz4G37V1T9mnEsMBuFMl FktxM5UW5OhlZfm3nQX78mDO1EVlTptexQn+5gx6hzlsX/m2DZDgpH0g0rzVgjdfC8BG 4qTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709141097; x=1709745897; 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=ggUWzI97AER97VCO5bK1ghUrgDw3VtB950on0vUkKY4=; b=WD1tQ3bLE5OxR3B/lvy5qRMc5fxKCFSE2TTBRk5/80F0JMHFoMrUFUiezLI/VgXXv3 tT4N5MQj6mp+hKqvP0osxTIUEIxhLC1pnTuPVQcdPdDje0h/EyDbpLaXsP9qMqR/4JD8 AXA2xv2jc/dEJzbn2rQbu8GCVrmswTARMORdXzpI5cvVt0yAc+2O+fmHYagFd1CRekiM 5EJxdS57fm1YmVtmrrmmhos81HU+cyM4Kmrhs7kgl0KEp+9RXKuzE7MlfU90D9AdqErE 622vyaPE3d3L1Ldky3eJIF4Qwcvw0NJsnMmf6DDXRSdnPZiZU5V82CgnbPbvRdsnP3Hg rFeA== X-Forwarded-Encrypted: i=1; AJvYcCVz+JSeFv8BGerlPToBUbD42Nbk7eo9IYqnECr+dSP6TYrxP33u5Oq+9Drgp93XWizBjohOq7a+hwS6lp7RhWT0bGUQLcENGCQudQYdoN0c3X75edfskIRY5yHLew8Lfqq2LElU/1GhIs+7AU6fQsaOcqv3evthSdfX1fBLw0ke+TylpA== X-Gm-Message-State: AOJu0YwsckSgFdrV8hOekII4Bq2hJx9ZOC/XSMxgQ/ryalDSDVZ7leqI da4CTqYNq0lr2niHnjs1LjeP1F1CPt3puNxkDq9gkoSftchxexQs X-Received: by 2002:a17:906:454:b0:a3d:994a:791d with SMTP id e20-20020a170906045400b00a3d994a791dmr193000eja.59.1709141096969; Wed, 28 Feb 2024 09:24:56 -0800 (PST) Received: from fedora.. (cpe-109-60-83-139.zg3.cable.xnet.hr. [109.60.83.139]) by smtp.googlemail.com with ESMTPSA id ts7-20020a170907c5c700b00a43f4722eaesm926910ejc.103.2024.02.28.09.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 09:24:55 -0800 (PST) From: Robert Marko To: andersson@kernel.org, konrad.dybcio@linaro.org, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH net-next v2 0/2] net: phy: qcom: qca808x: fill in possible_interfaces Date: Wed, 28 Feb 2024 18:24:08 +0100 Message-ID: <20240228172452.2456842-1-robimarko@gmail.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792164383954510978 X-GMAIL-MSGID: 1792164383954510978 QCA808x does not currently fill in the possible_interfaces. This leads to Phylink not being aware that it supports 2500Base-X as well so in cases where it is connected to a DSA switch like MV88E6393 it will limit that port to phy-mode set in the DTS. That means that if SGMII is used you are limited to 1G only while if 2500Base-X was set you are limited to 2.5G only. Populating the possible_interfaces fixes this. Changes in v2: * Get rid of the if/else by Russels suggestion in the helper Robert Marko (2): net: phy: qcom: qca808x: add helper for checking for 1G only model net: phy: qcom: qca808x: fill in possible_interfaces drivers/net/phy/qcom/qca808x.c | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-)