Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp161493pxk; Fri, 11 Sep 2020 03:21:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw538Hp4+zkPo5Mvj5B6+kXyjMiqn4oO+FbFBsLYLd5xBHVCVZrpb+HRu7i++lYn1n0OUfu X-Received: by 2002:a17:906:c309:: with SMTP id s9mr1453715ejz.167.1599819715728; Fri, 11 Sep 2020 03:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599819715; cv=none; d=google.com; s=arc-20160816; b=1FtK2vBfS75K2scMJPdlJx160mg2yo6y4P/39tCJrb1vN15qWU1CreLBb9ktptJGCf k0c7U1Ag0dpuwb8CRzCoaxD2OmDvgv71hFia3A8p+O1Jz8ATQPJZrJQhp48j4H+lgY/q kP/ekLvSxeSWETne4xhv7Bld6WQYabHmVQ/nppj/hw3jbKwpmnj6PP0vqMUSVq/Is/Lu Rppp56dPOJ7dE95xJk/ZywjFTRgRLxO6t3Dt0UN+Kfb9LDlL+s3uWESgdyDz+PSUPLWz 0KVUV9GBOGY7aPxjKbuh36HcIlMFVtJO5LDHOjC3yQ6s4sstlg38KQnxQxhikgxjU9u8 OQ9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DoNxlxNbIuPsWruQqDAefHo7eQS4OyQVKCYon5jAzns=; b=n0k91aozTpINnM75hNV1vVUiSMBUe1AYGh3tldo63Y2mPGDlTkmteIXRDyI4oX517N rtcyi/EXAKN8ZjM8Xg7gKl3Ko/zUq37MqUDYzy8gy/rg8oU4rWGK+XE/+ccHHrgzBFiJ PHAvqhE9IMSY7YSXjmsv5aQVsC2kIRsb9t3c7xI4EJPaUJ6GGlpyl0L4OxV7ZMQlKgov 8P65nyyosP9bz/syijFTuklUY5lFPQdGQhKm/+5BmX0MLCYnxh8deb6qc8cLgVp7tRXp i/YfwanDLcjr/AwccmoficXGYLywAYYI9KCRcLMnAcyotLjsx/nUs9EvT22HTKkwmnLZ HILg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=SGkhRnMn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si974624ejl.266.2020.09.11.03.21.32; Fri, 11 Sep 2020 03:21:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=SGkhRnMn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725710AbgIKKS5 (ORCPT + 99 others); Fri, 11 Sep 2020 06:18:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725809AbgIKKSq (ORCPT ); Fri, 11 Sep 2020 06:18:46 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E863C061756 for ; Fri, 11 Sep 2020 03:18:45 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id m12so7933891otr.0 for ; Fri, 11 Sep 2020 03:18:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DoNxlxNbIuPsWruQqDAefHo7eQS4OyQVKCYon5jAzns=; b=SGkhRnMnlbT74gOTMblp6PEac/FtvGU7/oCXI0PStfaFMAaiEYQeKZ+wZXDerFdgCq s0wf0Su5OlXjVaatpk7oyMOXE8eH1Tqqdrt6gbgyzcmgnyaW7K8jaSEQigDkew4Vgf8c RDaRHPnlUa1sthYmr3xrV+KD9APDUdRncCDKo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DoNxlxNbIuPsWruQqDAefHo7eQS4OyQVKCYon5jAzns=; b=jYrjZV8JveGPlBx0ZjnzUabr9a6IkWjHkpR1PtMu2YFJPGKzCIgoO6AQd4otbGbpm/ RP/nmQnUb88tUOZ5zAIsbJPJRPpIYSfodgk7UPeM0ON4KilNat/HwPkhlA/it5F8ZVlQ m5ZurLR+OQraVp72jqeJHW3brKRqbucnLiQUqsThtTZjgi/kfz4+XjsmmYF27m1Vyz+R JsjcLrbDDJlc9rXaaZfiMnvTbRFlT8HsVNx0T32wH3MEttqiwS/IWw9yV3aHN3+KnNRq 1YzFYIPcJmj1ByEZBRc05l//lAa7fjb0moDFncEbHpfh6n1Py3Loi+YdfyYHQvHISGsO kMsQ== X-Gm-Message-State: AOAM533VsjD3RmlC62pDscMm10Mnf9CrvMA7PKhL/KU1/eYsibJlQmoD Oo4vouSL0i6FnmjnVvFzfiUVk5UodkF3O71PvZsRdA== X-Received: by 2002:a05:6830:1d8a:: with SMTP id y10mr797377oti.92.1599819524962; Fri, 11 Sep 2020 03:18:44 -0700 (PDT) MIME-Version: 1.0 References: <20200911111731.48a324d0@canb.auug.org.au> In-Reply-To: <20200911111731.48a324d0@canb.auug.org.au> From: Paul Barker Date: Fri, 11 Sep 2020 11:18:35 +0100 Message-ID: Subject: Re: linux-next: manual merge of the net-next tree with the net tree To: Stephen Rothwell Cc: David Miller , Networking , Helmut Grohne , Linux Next Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Sep 2020 at 02:17, Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/dsa/microchip/ksz9477.c > > between commit: > > edecfa98f602 ("net: dsa: microchip: look for phy-mode in port nodes") > > from the net tree and commit: > > 805a7e6f5388 ("net: dsa: microchip: Improve phy mode message") > > 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 drivers/net/dsa/microchip/ksz9477.c > index 2f5506ac7d19,b62dd64470a8..000000000000 > --- a/drivers/net/dsa/microchip/ksz9477.c > +++ b/drivers/net/dsa/microchip/ksz9477.c > @@@ -1229,12 -1229,15 +1229,15 @@@ static void ksz9477_port_setup(struct k > ksz9477_set_gbit(dev, true, &data8); > data8 &= ~PORT_RGMII_ID_IG_ENABLE; > data8 &= ~PORT_RGMII_ID_EG_ENABLE; > - if (dev->interface == PHY_INTERFACE_MODE_RGMII_ID || > - dev->interface == PHY_INTERFACE_MODE_RGMII_RXID) > + if (p->interface == PHY_INTERFACE_MODE_RGMII_ID || > + p->interface == PHY_INTERFACE_MODE_RGMII_RXID) > data8 |= PORT_RGMII_ID_IG_ENABLE; > - if (dev->interface == PHY_INTERFACE_MODE_RGMII_ID || > - dev->interface == PHY_INTERFACE_MODE_RGMII_TXID) > + if (p->interface == PHY_INTERFACE_MODE_RGMII_ID || > + p->interface == PHY_INTERFACE_MODE_RGMII_TXID) > data8 |= PORT_RGMII_ID_EG_ENABLE; > + /* On KSZ9893, disable RGMII in-band status support */ > + if (dev->features & IS_9893) > + data8 &= ~PORT_MII_MAC_MODE; > p->phydev.speed = SPEED_1000; > break; > } > @@@ -1276,22 -1280,21 +1281,30 @@@ static void ksz9477_config_cpu_port(str > * note the difference to help debugging. > */ > interface = ksz9477_get_interface(dev, i); > - if (!dev->interface) > - dev->interface = interface; > - if (interface && interface != dev->interface) { > + if (!p->interface) { > + if (dev->compat_interface) { > + dev_warn(dev->dev, > + "Using legacy switch \"phy-mode\" property, because it is missing on port %d node. " > + "Please update your device tree.\n", > + i); > + p->interface = dev->compat_interface; > + } else { > + p->interface = interface; > + } > + } > - if (interface && interface != p->interface) > - dev_info(dev->dev, > - "use %s instead of %s\n", > - phy_modes(p->interface), > - phy_modes(interface)); > ++ if (interface && interface != p->interface) { > + prev_msg = " instead of "; > + prev_mode = phy_modes(interface); > + } else { > + prev_msg = ""; > + prev_mode = ""; > + } > + dev_info(dev->dev, > + "Port%d: using phy mode %s%s%s\n", > + i, > - phy_modes(dev->interface), > ++ phy_modes(p->interface), > + prev_msg, > + prev_mode); > > /* enable cpu port */ > ksz9477_port_setup(dev, i, true); Looks good to me wrt my patch "net: dsa: microchip: Improve phy mode message". Thanks, -- Paul Barker Konsulko Group