Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5652301img; Wed, 27 Mar 2019 12:29:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzAl7Sh1PklVA2Ma7Qkdeicw9H8YQZmKPkqURXhqhRHh/KwxF06nWtF+3Wj2RzqiTjepvI X-Received: by 2002:a17:902:6b47:: with SMTP id g7mr39793594plt.100.1553714970306; Wed, 27 Mar 2019 12:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553714970; cv=none; d=google.com; s=arc-20160816; b=tg752Wkz+GKkseEqMJsZIXQQPH7uZ/Bwp9Z9zlrvaWT3o+3W1A6m7ENOcgBZAa6Hfo +DoDCgKL5L4bYtdgIFVynQ6qX/dEc/uK25+ikxhKM2L+SdKDQzX5U1xkn5OpehA+Hkkc stz47xwe0LpCCZPq09tEAez8V0NOBIngRBCY1aPlT7vs8v6Jtk2UJBbpsEGAY2+WgsJb IwDJCKsINW37OqoyoAbcFygK7d6eolFWslZe6pwNegDZrlo7sbSeYC1VuT1/ambRVTXt gGtq1NIbY+0wwl1Wu1D8T7ohtG3KrLvefKDEsaB4hzJy8x7OniO8O6npipWYI11RxCyk hhIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ME/4xoinJvfdOxUNDvXs07N6BetFHMeOKON09bH9coA=; b=Cw0PZ34uDeFFXMDnB5zsrpLKhtDKWEK7yPiGhFOr2yzsEuXFm0Gw+1OFjKK+wUmtWu Lb+Wt6a4qTTPeJVjMm8bUyJVOEglKu8YIFfj2WC1qXbozORHtL8nsfR3jIV/b8FQdiS9 b0Ss/sCEquinfNAX0qGNXZrqcxiEYiV06mn8jnR2fBypA8vvaX5QU4DlYA83lEN7LlCx iUffT1kxZbUFMnqfq2oSRFUPbtDOolcScbEXuTevcd4xzLqbknyczjIQJXnuPoQEau3H UixZ4PI9jRJA/dtuiCWo8GT1VYkyGwGGyOqEnJOu8xzVGScx7l8zYPjtdS3213aJYJZ/ +twQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="nWt/pVY5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si18542532pfa.181.2019.03.27.12.29.15; Wed, 27 Mar 2019 12:29:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="nWt/pVY5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387825AbfC0T1c (ORCPT + 99 others); Wed, 27 Mar 2019 15:27:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:45474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387428AbfC0SEn (ORCPT ); Wed, 27 Mar 2019 14:04:43 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0923521734; Wed, 27 Mar 2019 18:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553709882; bh=5nUfx0bnsuzCLf6bLSSZYIMw8WIO/ltzMmL0xXxuUGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nWt/pVY5ECXeobDzvShfw5UUsRW9199CIdlvxloKyI7Ddw9VEjI42cmAKuppFsByc fQV7UXaBiA8Xvul3t6MlCHWkVSxdSR8suKveLQF422N5ehdbo0QP4O2nbEFjOg+Bod PjhSrkvgbEX3uYNnmfjn9QBrI9Qqo0MK5Q6Mr91s= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Marek=20Beh=C3=BAn?= , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.0 087/262] net: dsa: mv88e6xxx: Default CMODE to 1000BaseX only on 6390X Date: Wed, 27 Mar 2019 13:59:02 -0400 Message-Id: <20190327180158.10245-87-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek BehĂșn [ Upstream commit 65b034cf5c1766492aa107958149b440889480be ] Commit 787799a9d555 sets the SERDES interfaces of 6390 and 6390X to 1000BaseX, but this is only needed on 6390X, since there are SERDES interfaces which can be used on lower ports on 6390. This commit fixes this by returning to previous behaviour on 6390. (Previous behaviour means that CMODE is not set at all if requested mode is NA). This is needed on Turris MOX, where the 88e6190 is connected to CPU in 2500BaseX mode. Fixes: 787799a9d555 ("net: dsa: mv88e6xxx: Default ports 9/10 6390X CMODE to 1000BaseX") Signed-off-by: Marek BehĂșn Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/dsa/mv88e6xxx/port.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dsa/mv88e6xxx/port.c b/drivers/net/dsa/mv88e6xxx/port.c index 5e921bb6c214..dce84a2a65c7 100644 --- a/drivers/net/dsa/mv88e6xxx/port.c +++ b/drivers/net/dsa/mv88e6xxx/port.c @@ -472,6 +472,8 @@ int mv88e6390_port_set_cmode(struct mv88e6xxx_chip *chip, int port, phy_interface_t mode) { switch (mode) { + case PHY_INTERFACE_MODE_NA: + return 0; case PHY_INTERFACE_MODE_XGMII: case PHY_INTERFACE_MODE_XAUI: case PHY_INTERFACE_MODE_RXAUI: -- 2.19.1