Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3526003imu; Mon, 7 Jan 2019 05:06:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/WKLCEFSmzv0/+R+R2ez9Efkxd/X0EeUZMpiesstzcNz2OoI6jA6n2VfwbsSyBNS3WbnhAy X-Received: by 2002:a62:fc8a:: with SMTP id e132mr61859276pfh.176.1546866380587; Mon, 07 Jan 2019 05:06:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546866380; cv=none; d=google.com; s=arc-20160816; b=iWLOrc6HasTw/5jqJ1PTl2KOznMKTyiuSM8giMkDecLH+8hO9ijdfA3mokJAoAScZz DAgN9iOYM0fFadSuStHd4ZwdvkvAk9K9AuTM+tjlShLWF9KNtWOK4kVYqfrPkx6S/4BZ Huiu1NAnVaCvALD+uff2LKpVXBxDCzJU2fJV7w6ITerp8nsOR/39lJnk1gDDYs/wSlYc N8Qc7/WX2o4O3WRNB7DNUTJCp4urly7yzOdiebkpj1Ubd8kwlN4b4RmfHuCC0sE1xFVF F3DPIMIuHWB6UC3L+I1Rm2covWH4NAGb12XrNjfhj09R05pi7lDOigDQ8j6c0ytormtp o/BQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uI3zCSlXujoXUtQdLUuHhedbiyN2495sZRdFBS87sfg=; b=yqABqFxBC98FlTOD3IYu5o3JPmLyhLFgXvpdLeAxk/ow3WHyVXIrmSyOV9/2+3Hb2W Fu3YjxjmbndwM+m+oRQeyWtY50TaJyjwQPExemU/yn4CycC22+v2x2Ofw2TAUVet1aE1 6nAe8ikpfckH7S1d0oBmLImL3Yw0RBnIzzqNrhCFSzAjHWkyVcoDVzqPJWDhecEXmMXS ZM4FkIHcusnUTZ7ViZAArecwMlRqX7g8/UQ/qcGhPNkR0IjSd2JwdE/ewUmOXRSbnVjz ZnWshYi0FgADdgsIskrXnqoxu0CJOwcvYc2zgMztPB+Qlk+QM14J8gh+UNHsV4fBiw51 4jfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nvRS+psw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t61si15627360plb.339.2019.01.07.05.06.05; Mon, 07 Jan 2019 05:06:20 -0800 (PST) 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=nvRS+psw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727963AbfAGNED (ORCPT + 99 others); Mon, 7 Jan 2019 08:04:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:51578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731117AbfAGNEA (ORCPT ); Mon, 7 Jan 2019 08:04:00 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7228121736; Mon, 7 Jan 2019 13:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546866240; bh=GERBK4DMEnAJmQL75UNVVQuB1qtTLszD4tKIuWv+4lM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nvRS+pswQuHtqvjXeKhdMKetTFgNQp+P8QrZuf1T5qP4nhEzbTWsHR8cBTZqKG3tD kEq1iz7Pu6LhWAHGgw5vRFzLeUVcWHrSLglSKrfaMMaX1hqK3BUpZyWeN2cHTxPo1s VLRx7z3QLOoP2qxX+Ov4lN5EZcsFFUmOpCv8eCrI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaro Koskinen , Paul Burton , Ralf Baechle , James Hogan , linux-mips@vger.kernel.org Subject: [PATCH 4.14 094/101] MIPS: OCTEON: mark RGMII interface disabled on OCTEON III Date: Mon, 7 Jan 2019 13:33:22 +0100 Message-Id: <20190107105337.966220986@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107105330.372621917@linuxfoundation.org> References: <20190107105330.372621917@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aaro Koskinen commit edefae94b7b9f10d5efe32dece5a36e9d9ecc29e upstream. Commit 885872b722b7 ("MIPS: Octeon: Add Octeon III CN7xxx interface detection") added RGMII interface detection for OCTEON III, but it results in the following logs: [ 7.165984] ERROR: Unsupported Octeon model in __cvmx_helper_rgmii_probe [ 7.173017] ERROR: Unsupported Octeon model in __cvmx_helper_rgmii_probe The current RGMII routines are valid only for older OCTEONS that use GMX/ASX hardware blocks. On later chips AGL should be used, but support for that is missing in the mainline. Until that is added, mark the interface as disabled. Fixes: 885872b722b7 ("MIPS: Octeon: Add Octeon III CN7xxx interface detection") Signed-off-by: Aaro Koskinen Signed-off-by: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: linux-mips@vger.kernel.org Cc: stable@vger.kernel.org # 4.7+ Signed-off-by: Greg Kroah-Hartman --- arch/mips/cavium-octeon/executive/cvmx-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/mips/cavium-octeon/executive/cvmx-helper.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper.c @@ -286,7 +286,8 @@ static cvmx_helper_interface_mode_t __cv case 3: return CVMX_HELPER_INTERFACE_MODE_LOOP; case 4: - return CVMX_HELPER_INTERFACE_MODE_RGMII; + /* TODO: Implement support for AGL (RGMII). */ + return CVMX_HELPER_INTERFACE_MODE_DISABLED; default: return CVMX_HELPER_INTERFACE_MODE_DISABLED; }