Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp329040lqo; Wed, 8 May 2024 00:30:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWYY6RCFISIzceEGuugRHraGfpc9QElbS6U7693nKKr2fPc2P3f5O/a9I35pJ4BNUck9yuyM38qVtpCm/+58dg9Gv4cv275MdtlzZt7Bg== X-Google-Smtp-Source: AGHT+IGscXAu1wiL7dw+KMCt7cUP8NZaH4WgGyOKp/bcQQAx0DIUo2F9SjnzrR+3pFY1TuecvLEG X-Received: by 2002:a05:622a:d3:b0:43a:ed55:f3a9 with SMTP id d75a77b69052e-43dbed3b59bmr21516421cf.30.1715153434552; Wed, 08 May 2024 00:30:34 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p8-20020a05622a048800b00439ac5225b6si13811432qtx.349.2024.05.08.00.30.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 00:30:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172810-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=neutral (body hash did not verify) header.i=@innosonix.de header.s=google header.b=Z1BXXkUv; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-172810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=innosonix.de 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 4A1481C21A9B for ; Wed, 8 May 2024 07:30:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B9082BB0E; Wed, 8 May 2024 07:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=innosonix.de header.i=@innosonix.de header.b="Z1BXXkUv" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.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 D6FE722EF5 for ; Wed, 8 May 2024 07:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715153426; cv=none; b=OJS2AnXP/0bIF2uFL1kut5YKYE4/mvqb5G+QpPeM9iOQsQL2JkYI4iNT2VYn6axeBbsXAhGH+yB5eq2lXyOcHvo3iGOoHFWayI9k7uijT7ZEMWI5o2bHd7cO84xr2UoXsiZ6VrMV3iOhjeB3O9vARxKdkhzn93Jsi9DunzlOgNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715153426; c=relaxed/simple; bh=8MJVYb7cJIk6fOdvOULsJh7hLK4SkwmGIcOvMtTljuc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=Ya26Iiuoc0rrA5kxGPrn4olTfDEVrrVwkvMeEIbl9FmUPHYT8ZGvxt0xemdtmuaY2Jwq95fy9pCf3OItG81NdyECsYVj3EjJhjB+YEHHTK5tBtUh6nloWxAIBUaca/1opAYDhzpqwqPvu4QWBItGg3dyQoFi6FY5bwSQJAaaVxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=innosonix.de; spf=pass smtp.mailfrom=innosonix.de; dkim=pass (2048-bit key) header.d=innosonix.de header.i=@innosonix.de header.b=Z1BXXkUv; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=innosonix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=innosonix.de Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a59cac06ec3so80865266b.0 for ; Wed, 08 May 2024 00:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=innosonix.de; s=google; t=1715153422; x=1715758222; 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=hJcjnRKy8xP2WS7UzmCHQ2sD43j2O7hA2lQCM9IkQBo=; b=Z1BXXkUvu5PLsFBqkwLeTZH29CS6RU9Hq2zWqpGQ7sqf5tpQzINqWvFi30gKGmqbSE WKlgLXK749euD6CooDXeFgVVfJD+oBtM5tV8Hg+smng+e4DE0pbCKqDyDNVuGx5Zq+cL wIVcqKuizeFifculSSpvs81komCqfrrpDsqmoFahyCdc0zx737JODVEM3G+u1v2C/rqZ 7ISxyRxrMgaadjTSHuL1SYNrIl18bL03yqAOT/WDhquHZM9Z5xZz+9aXPEw7ld5epTJ/ GwI9mLEmOXPGKpoO6Fuv+1GNmpxMFuGza7ZgcNxlfRg2NrMNSFDn1n+zkiD4xvWuK/Dx u+LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715153422; x=1715758222; 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=hJcjnRKy8xP2WS7UzmCHQ2sD43j2O7hA2lQCM9IkQBo=; b=iO0qOfJLOUQdSb9VqLvUhuyVWaR0ijmt420ISQKKDXtGwIq2DM6i/TX3QP1066fZgn 4Y7kpKVsQCS1n6vi5lyutsWwY5BnynthzQMdntfVPc7JTXj4teXZbPZsDAajmNqQWcyo Rmpt/LFW0GDsv3UUL53vy0Xf1Y/mvWKpGXa4XqKiMhbOF5tyk4srEA4qd9CKlthfPeaH y86b5UFGYALydCF7sqiEvz0g9M2o4So0NweR28KatKtCgVGj9CsWmueBEu5No/s3yqP8 /NOLDSYPX973jT45Gcl7+PDtuxa4vT7q85kwtnO716PeIMq6SBnEtyXk2qTs2GriHZQN bOZg== X-Forwarded-Encrypted: i=1; AJvYcCVTf0W9PbcN7X0/ceBsN1ykt1Uv0UKmrIDA3cBAHk+cah9T1ijhYtOVvrUJK/EhNa/il0n1GqK4H1odB8PwdNTPsWRQd0zO+NfvgoHY X-Gm-Message-State: AOJu0Ywv2GzsHwafiAOs1le0g3LvqETETccaKfJAZeoOqqqU3evsI9M2 xvRAFyPE9f8lHlXVZGPQOIPhBHdQMuE31fmJB9MUy4p0lqW0PJGbC9v4zgZArySNbyzePyx1QU0 JfoEeFpnT73zptnU9pVgz+pkaDCtpuHaK52c7TTjYIuv+TQjhCmhCNcI= X-Received: by 2002:a17:907:b9d0:b0:a59:cb29:3fa7 with SMTP id a640c23a62f3a-a59fb91fa86mr98634666b.1.1715153421963; Wed, 08 May 2024 00:30:21 -0700 (PDT) Received: from localhost.localdomain ([24.134.20.169]) by smtp.gmail.com with ESMTPSA id d12-20020a17090648cc00b00a59a874136fsm5212358ejt.214.2024.05.08.00.30.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 00:30:21 -0700 (PDT) From: =?UTF-8?q?Steffen=20B=C3=A4tz?= To: Cc: =?UTF-8?q?Steffen=20B=C3=A4tz?= , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , "Russell King (Oracle)" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 net 0/2] net: dsa: mv88e6xxx: fix marvell 6320/21 switch probing Date: Wed, 8 May 2024 09:29:42 +0200 Message-Id: <20240508072944.54880-1-steffen@innosonix.de> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable As of commit de5c9bf40c45 ("net: phylink: require supported_interfaces to be filled") Marvell 88e6320/21 switches fail to be probed: .. mv88e6085 30be0000.ethernet-1:00: phylink: error: empty supported_interface= s error creating PHYLINK: -22 .. The problem stems from the use of mv88e6185_phylink_get_caps() to get the device capabilities.=20 Since there are serdes only ports 0/1 included, create a new dedicated=20 phylink_get_caps for the 6320 and 6321 to properly support their=20 set of capabilities. Fixes: de5c9bf40c45 ("net: phylink: require supported_interfaces to be fill= ed") Steffen B=C3=A4tz (2): net: dsa: mv88e6xxx: add phylink_get_caps for the mv88e6320/21 family net: dsa: mv88e6xxx: read cmode on mv88e6320/21 serdes only ports drivers/net/dsa/mv88e6xxx/chip.c | 39 +++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 8 deletions(-) Changes since v1: - Removed unused variables. - Collected Reviewed-by tags from Andrew and Fabio --=20 2.34.1 --=20 *innosonix GmbH* Hauptstr. 35 96482 Ahorn central: +49 9561 7459980 www.innosonix.de innosonix GmbH Gesch=C3=A4ftsf=C3=BChrer:=20 Markus B=C3=A4tz, Steffen B=C3=A4tz USt.-IdNr / VAT-Nr.: DE266020313 EORI-Nr.:=20 DE240121536680271 HRB 5192 Coburg WEEE-Reg.-Nr. DE88021242 --=20