Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4575578rwb; Mon, 31 Jul 2023 08:54:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+C57D/FxwERhhZW+pQ2O3zzjBSCDhPFQLB0hDKH74m45eOaTMBeS9r8xYPEIBGBlBN1Yf X-Received: by 2002:a05:6a20:2455:b0:137:a3c9:aaa9 with SMTP id t21-20020a056a20245500b00137a3c9aaa9mr11751319pzc.16.1690818859648; Mon, 31 Jul 2023 08:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690818859; cv=none; d=google.com; s=arc-20160816; b=GqGKUZP0sKnRfOwoWsBRK69sWbN7qIOY3hC/gNORm8fUJyIiS+8LLwTxnjkIIiEybX QoH3zqnLK/XhfJ4MbCHbHwp+ahUfjBLAzbtMB5SpWZ+oQbliqaTBDGRmR+s+KyuYuiuf /7UVOTqUOaCwMDjl0cG+WN78h3cufM8DaRyeBNzb8s4jdRoFyyCcX+iViB/KyzE6HClb 0Uo8iF4tUSlJiom68aSZgg2sUaUhVeQS3LHTOOcKjjFT84Xo5+7eI7dL8Y6JlJpQ02b5 PLKkdRPqgpAdSkbbUi+ZLtGkcnmqvSgpxv+evsyGVCfkLescXaA1vGlvOo/8Q77QvYeZ i6+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=M7bzdQSRGVpDVr3CMEAqQUVUanffXqBwkJftx8SZ7Bc=; fh=73Yk0W9DxRP7vpBd6aCIxdcEnEx76DapEzyiajM+Fs0=; b=M7RugqQ8iFcPPr1czMgTFvY1PcFs8C0O9YLCZGP0AEK+z4Qdc68qcWzFrx6pjciL1V FLI91UEWSdtMie5SA4z15QNl2K47anfRKGsqYNRfntBjxa1MFVXbP+jIFbJWlacmtReS h9fJuQ98z7YmSulhEklME8dlO129PbTSPkbTcet0y9HAYOkU/LUomZ9rfiZfSOd1IpN0 GO56WWFe/ZfENIV+aN4gOYuIrX7PgAcZZQJMdDCkwH0uwnb2sRTBeIpN3+DCs9BLOYxl /1L51m449r8+PJcTW3kAO/qO/rLw0uzE5pKA0nCa8nTNt91R8SpyDPeANv8wh36BFoCP 721w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=0xRtmmCs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay20-20020a056a00301400b0068728a9acb2si3061819pfb.130.2023.07.31.08.54.06; Mon, 31 Jul 2023 08:54:19 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=0xRtmmCs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232202AbjGaPkP (ORCPT + 99 others); Mon, 31 Jul 2023 11:40:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232148AbjGaPkI (ORCPT ); Mon, 31 Jul 2023 11:40:08 -0400 Received: from pandora.armlinux.org.uk (unknown [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3DAA1713; Mon, 31 Jul 2023 08:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=M7bzdQSRGVpDVr3CMEAqQUVUanffXqBwkJftx8SZ7Bc=; b=0xRtmmCs2S3Ooou5AhnJSgbCxl sGNMPkdFcml+cmxF036cHSY9wkSGVo/9sKJKol2rMPqebpHh+5D/7YJxjGhuVQGDYqyBKWugvbBdF 5IqTvgceGfqkZ7A8+93tycJ8SwP8xLfMXox01P7tt4Uqnb7FwpkRong7c8C5RGBM1QONIZt1gWdz6 b2zNG5GvQvXxwMvEIXQrVWSNuhfoMFWVWeRwxkpa4148T4ZO4HSqN7sBorgcUidAfxtlXyEXweevy 2CwIpqt6KrAScTSHFzPVOfPN7OrE08oN3f3JmlBR6wMcTLEG7+urR4YgQvzqyIEBTDbdScKJ1TjmT UErXI09w==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45756) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qQUzy-0002n5-1m; Mon, 31 Jul 2023 16:39:54 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qQUzx-0008Aw-4m; Mon, 31 Jul 2023 16:39:53 +0100 Date: Mon, 31 Jul 2023 16:39:53 +0100 From: "Russell King (Oracle)" To: Stephen Rothwell Cc: David Miller , Jakub Kicinski , Paolo Abeni , Networking , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: manual merge of the net-next tree with the net tree Message-ID: References: <20230731102254.2c9868ca@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731102254.2c9868ca@canb.auug.org.au> Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, Jul 31, 2023 at 10:22:54AM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > net/dsa/port.c > > between commit: > > 9945c1fb03a3 ("net: dsa: fix older DSA drivers using phylink") > > from the net tree and commit: > > a88dd7538461 ("net: dsa: remove legacy_pre_march2020 detection") > > from the net-next tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > -- > Cheers, > Stephen Rothwell > > diff --cc net/dsa/port.c > index 2f6195d7b741,c63cbfbe6489..000000000000 > --- a/net/dsa/port.c > +++ b/net/dsa/port.c > @@@ -1720,22 -1686,8 +1686,15 @@@ int dsa_port_phylink_create(struct dsa_ > if (err) > mode = PHY_INTERFACE_MODE_NA; > > - /* Presence of phylink_mac_link_state or phylink_mac_an_restart is > - * an indicator of a legacy phylink driver. > - */ > - if (ds->ops->phylink_mac_link_state || > - ds->ops->phylink_mac_an_restart) > - dp->pl_config.legacy_pre_march2020 = true; > - > - if (ds->ops->phylink_get_caps) > + if (ds->ops->phylink_get_caps) { > ds->ops->phylink_get_caps(ds, dp->index, &dp->pl_config); > + } else { > + /* For legacy drivers */ > + __set_bit(PHY_INTERFACE_MODE_INTERNAL, > + dp->pl_config.supported_interfaces); > + __set_bit(PHY_INTERFACE_MODE_GMII, > + dp->pl_config.supported_interfaces); > + } > > pl = phylink_create(&dp->pl_config, of_fwnode_handle(dp->dn), > mode, &dsa_port_phylink_mac_ops); LGTM, thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!