Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp584787rwi; Thu, 27 Oct 2022 05:21:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5goX8mO+qFM10dzpbVWom7ARUMVglfiylGRf9kIFKJxKjiEst0U1H0Dlg5GyPhBNC6MCbx X-Received: by 2002:a17:907:3e9c:b0:78d:ce8b:8548 with SMTP id hs28-20020a1709073e9c00b0078dce8b8548mr42921238ejc.427.1666873301436; Thu, 27 Oct 2022 05:21:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666873301; cv=pass; d=google.com; s=arc-20160816; b=NH9zNnapgcNQqdkymxDV0s4HQ2HLDJuzZwy1Zn0KIWuWNu1+JWngvobApV1XeIBQ3X ItmLWuul96ruXIT0Qb3eDh488l/snO5u9GhVBe495YEPkfA9ik93uzAiceI62Tt0WnnW l7nlpEWHni+WFBoLQDnzppeMMxuTPkMtMZrr5xygg7AWJJ4ZSYQa90SqxnJ4Rw/+EOKf ZWfTOcJyFnmdY2+e6s8j1y7kY6w0lMdAFlEHfr3lv2F1OXEymOhzSUxWx5YCkvff0V80 MhHDZeZTzR7gv+K8MXFEIqZ+RXGczR1/OMYiIwA9VYJS8YbOEE6X7y8DfcMCFDpP+3oa D3gA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=0AsHB1dtyRY6YQUB+DBuMKo+2DOqnLB/BqjrEqTh5Ow=; b=J/qoEdDidMLtCVNeb9Z5blL/yHDUwcd0Ex3kHG32ZtIFfYt/uXly8785nPBShTzZrT BpFloTVXa3IalE7X5MVrbPXqn1swScWWY0WRUTD9F4dyqeAm7Pad4j/KCzLvepzKmTIm lxA7g3S6Cn7VeoqZxEqk88DD1iNg1t6Divw99IzqU2U7VD9vAztBeUZFQxUT2+Ufvf3r wbfm+1oo6U/F//BKGIIrQFa3cz+hqSFcYqctsKT2cPGqEUDHlI4prUgIQ6VIzKjC7MQR RVbBzVSv/ClTaAa/YyXTuv62sLwrSc7XcBE18gpmg6oWYI62QKdTWFa+SnJdqsXhaxRZ u8bA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="J3iF/1Xp"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj3-20020a170906f9c300b007acdb3fae5dsi1177959ejb.469.2022.10.27.05.21.15; Thu, 27 Oct 2022 05:21:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="J3iF/1Xp"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235581AbiJ0MFg (ORCPT + 99 others); Thu, 27 Oct 2022 08:05:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235552AbiJ0MFX (ORCPT ); Thu, 27 Oct 2022 08:05:23 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E8257E323; Thu, 27 Oct 2022 05:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YMEat3x4TbeWyp+9uW5aGJAFRW9h7Mw3HYoIi6al3v+C5ItdJ8+HYKFOIk0YzZIHR0XULazZYowCIyuorLw28EZrKEi/6/VINqUCBW8RNgpASC57Cygtqm+vwcLoYLCpIvxlAgeEkksLzLQ3ta8wYQqkU0wOUXX6c0vEtf+TRYqAnPDRyullvDh043fR6Msp1vXjzYIMlCo0FUk7YHM4lG5UI0UHfZNDBjXMVqYM5M2fZRrsfxy4J1FMRSSN0Mj8z3sidlJA++vIa14Qjfm2VlOevThPm+7vH5tmObCaelwJutho+kcakc3tTeTmDAWx3MgpYfhAOEWh5AW/VRyDmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0AsHB1dtyRY6YQUB+DBuMKo+2DOqnLB/BqjrEqTh5Ow=; b=gnTjIxJOSnMmJCzFlKVeRXarMsy619x5LEXTgBAJoAEQANJcQfxa2ujuNtpw+wTuppKO3u/HtBzAHTm1wxZUNQX5mZSjJZtLlBT7AXcjpgjl/hqxRj/YO2kCJuFZwL+P0xw/TUjbMq26fqmij3WYNWw9NlxXf8iveiRcz66SJrf2HANmF05+h/Vk7UxYW8mN5rRZCAm6BqrtsDafRKRtPPCKSmhyUQqq+7NiOUFeup4vhFRDRzPnTAftsTWu+cB91uuQdcoDQUegZgsFXAYrLLgiE5vk/QuykMQoZw4Gvvm2tCYmfkvRRjkmp1/IKbGd8haFxqsCIWKneErWHP2jMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0AsHB1dtyRY6YQUB+DBuMKo+2DOqnLB/BqjrEqTh5Ow=; b=J3iF/1Xp/6X5284HmhDCgHAjwli735+5jFg75c8adQgAyB2C9uKNmmQbl5hTnBVKSSpBqW19qsjp3O+Q17A8qzk0LCiadn/of5heQu1y/Nua2hwfogqMygE+dh22zScbcct0ZsU7KFcilysCP/nBbd8UZcVY6Guu/18txgNEmrk= Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by DU2PR04MB9178.eurprd04.prod.outlook.com (2603:10a6:10:2f5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Thu, 27 Oct 2022 12:05:20 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::6710:c5fd:bc88:2035]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::6710:c5fd:bc88:2035%6]) with mapi id 15.20.5746.028; Thu, 27 Oct 2022 12:05:19 +0000 From: Vladimir Oltean To: Michael Walle CC: Shawn Guo , Leo Li , Rob Herring , Krzysztof Kozlowski , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Heiko Thiery , Andrew Lunn , Florian Fainelli Subject: Re: [PATCH] Revert "arm64: dts: ls1028a: sl28: use ocelot-8021q tagging by default" Thread-Topic: [PATCH] Revert "arm64: dts: ls1028a: sl28: use ocelot-8021q tagging by default" Thread-Index: AQHY6ffdJD/5Oq16AkSmf/jVUKUJTq4iJNOA Date: Thu, 27 Oct 2022 12:05:19 +0000 Message-ID: <20221027120519.7f3xun66l4lamcq6@skbuf> References: <20221027113248.420216-1-michael@walle.cc> In-Reply-To: <20221027113248.420216-1-michael@walle.cc> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: VI1PR04MB5136:EE_|DU2PR04MB9178:EE_ x-ms-office365-filtering-correlation-id: 574ecd4e-271b-483f-de89-08dab81384d2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: x4v2NlikFYOP0FZ0n56STgaG0Is466A+vMcgk1oOBSIfh0le4vl6QJS95Xv6sXT92Y4feF3FtRVSftzwSQ+M5BHSFzPE3mYqik6Pn7LYDQtqa1JspvOh+xMwrSzyoTUCYRFq9FeRF3bJE7PTKYavNASHBN0ngFM+dw0Ek7Ipwgs9O0e++O2cyipnpPkTj4XOwZVvT3cGMcUy4MwjXZ+A6fJerh3IioeOp9tk79RWfiLzztMObwVBYPNav3KaqjsJNXFiudDe9h0Ko+bNz1QaFAnwtUbcpfhQ4bnqmqv1vCO9+vlGeZx7f/Mc6N/pX3lQkONPtirwVhNHhwJTZ/PggGR3M97VnXukB0yuTPd00b1OcR5Wnu/nXOTolUyv/SAOAlLeifTu+rI/Wn7MvqIzXb+NtIQvGjLmn+ODH6SsmL0MzrFaH0YfD16zaY1UPdRVOqkIkP9EJkd6PkQCI+Jm+YL97blOcmeQFwJCJheA1BSFmBsIPgPZiyQI/Wze3s9HSSooP3AtXLOU1Wz5hXVslv++uAhy+/PcmC8+glGBAkETAyYSumPPyJsHzBrtKLPDjNISfyTNaWQbqzdzjs5dkL6sVfMYaiNei+uKcMXJHVt8yGn6Szjf9cW2Uq3calo3KcMrmaiFvUUCn4lJ/g7JspEX2HWFvyumixiby7EG7UkXet3Ch+3QzpUk3+Esy4FOyXDEqXU85GPPilpHeSUiNblTxXUElC+6wxQ7KCOS43qqALZwDneypUmHs7JuNg+3jWKneeo05EVD0zNqPqWbcw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(7916004)(396003)(39860400002)(346002)(136003)(366004)(376002)(451199015)(478600001)(71200400001)(8676002)(6486002)(54906003)(316002)(9686003)(8936002)(6506007)(1076003)(186003)(6916009)(33716001)(26005)(6512007)(83380400001)(4326008)(2906002)(86362001)(38070700005)(44832011)(66476007)(66446008)(66556008)(5660300002)(41300700001)(76116006)(38100700002)(64756008)(66946007)(7416002)(122000001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rLpckhxQ/ODtI3kMrj4jRL7gi8TpPkmrnwD3AxPd4shizsEoOsGOqXRptfBC?= =?us-ascii?Q?D+yirTGgjrRKhzmR9+xkv+fIU4e5NhFUgbFGAO7DsW3CNm72hRoujmvC5WOD?= =?us-ascii?Q?71BK/AlEOBjJ3Tv8lasuMh3EQ8JPQr60MAYI/zYNTIiMPtQ9Ot5m6Bgv/apc?= =?us-ascii?Q?m48m5eUrfToZbUHtpTgPRlN8JdmPGliXwEq4+Z+Ia/LWdYNKpoiYjrhI+Qx5?= =?us-ascii?Q?SpD+U5KzNOntvH72NHPVVc1MNorn3jh3OQ2XVU+Jpm9/Z70MFujetv24pTF3?= =?us-ascii?Q?7qC8gQV++dc3iaprx+VFJYnwx7/tE53L2l2PuohiDUZierEWrDckPw3WzFB5?= =?us-ascii?Q?bM96G2H3ISGK+/at1s2DHiPCd6vbNxLLVz7gt7ViuSQlXL3BGrpwPStmjD0W?= =?us-ascii?Q?cFTXSZPqIV5oIdsUN3tPhjd2M44DUzJDJiqxgkl7usQ5EOeClqJh6qIoks+h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4JYwSKwf0gf30CRhbROdB?= =?us-ascii?Q?YzFKX1Oh6nLDm54/GCzDi6BdiXnHjxCfRzVfyRD27qIohzjIjL7L3ab9zAl1?= =?us-ascii?Q?Uh4dhZclEcGs8fHQN7gmHeJcmpI6BZeWuyA8WG3ahKVSsenhkjwmdzrWtRwM?= =?us-ascii?Q?Kp/Xv35f7lWt8YOw5nkQS9Ti3JQBhzJYXjn8EQ6OtxT4Z8DlKormsRjnYFaf?= =?us-ascii?Q?yTi0IHgDR8dW/NoNC7QUzFEwvA4ngnF9al3yYYEb2LKWN8dvPrySqChXCxF4?= =?us-ascii?Q?Cg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <05C2EB2B8000BD45AE0530C4C8BFA3E4@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 574ecd4e-271b-483f-de89-08dab81384d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2022 12:05:19.8022 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Pox08mUg0bI7D25wPprWjNWryDSV63UQ+h09ANY/BCkuxhv4Nr717OiUp7/n7lo60rX4dz4KiXpB6vm4Gb6LFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9178 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 27, 2022 at 01:32:48PM +0200, Michael Walle wrote: > This reverts commit be0b178c50c37a666d54f435da71cf9f008362a0. >=20 > This commit will break networking on the sl28 boards if the tagger is > not compiled into the kernel. If a non-default tagger is used, the > kernel doesn't do a request_module(). Fixing that is also not that > trivial because the tagger modules are loaded by ids, not by name. > Thus for now, just revert to the default tagger until that is fixed. >=20 > Fixes: be0b178c50c3 ("arm64: dts: ls1028a: sl28: use ocelot-8021q tagging= by default") > Reported-by: Heiko Thiery > Signed-off-by: Michael Walle > --- > Vladimir, I'm not sure how to fix that one. Adding aliases to the tagger > modules? Something like "MODULE_ALIAS("dsa_tag-ocelot-8021q");" and then = do > a request_module() in dsa_find_tagger_by_name(), too? >=20 > .../arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts | 8 -------- > 1 file changed, 8 deletions(-) >=20 > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts b= /arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts > index 72429b37a8b4..771c50c7f50a 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts > @@ -324,14 +324,6 @@ &lpuart1 { > status =3D "okay"; > }; > =20 > -&mscc_felix_port4 { > - dsa-tag-protocol =3D "ocelot-8021q"; > -}; > - > -&mscc_felix_port5 { > - dsa-tag-protocol =3D "ocelot-8021q"; > -}; > - > &usb0 { > status =3D "okay"; > }; > --=20 > 2.30.2 > Pretty nasty. Of all the switch drivers that support tagging protocol change, Ocelot/Felix is the only one with this bug, because in all other cases, the default and the alternative tagging protocol are part of the same .ko. Only here we have tag_ocelot.ko and tag_ocelot_8021q.ko. The problem preventing us from calling request_module() is that currently, the string identifying the tagging protocol (to which we match device tree information) is part of the tag_*.ko. I think we'd need the translation table between string and enum dsa_tag_protocol to be part of dsa_core.ko.=