Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1981634imu; Fri, 14 Dec 2018 04:03:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/V6uChIKd9ayA6llHn933O6FwaToSzMX8rFfhllSQfDV94e8j4z2CzmfSSXJoXV8EAUs3b8 X-Received: by 2002:a63:4f20:: with SMTP id d32mr2442229pgb.47.1544788986651; Fri, 14 Dec 2018 04:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544788986; cv=none; d=google.com; s=arc-20160816; b=lT3dxK1STj84GfGQlZorzQeboKsGUV4sr69/RP2s5/BwZ2eQTqvdQXAuOK8Z1KcpwY x6dyamak8UA/ScRul0a4cQt2tHMvG4AXtwe4WrsALtDnMefiwm+KITCsR/0+nhh1bZw7 ZFSJlXPPoBQ9WMtMO0dNfupCaUWOIZ0xFpKhi1AVkqzuVEzG4Qw3D/su/0rBzBXHvZUw X7vPw2PMBTY5c8KX3mT68y8hWgoO84x5UsAHi1OZdtQ07nzHvS0L93auR+p6ira2EcSX g4+ylDYNr4GmugYKH53/Wmioh5mDUd4Y1yBL93jFWA+NwQ07F9ixdVdc+pTeFYwP+vJn A+nQ== 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=pIkS4mQ/evyJei1ZL1YQfKtt0pHcgxaCIu5dyqSDbOA=; b=QSq+qqZiQ9tq2tV2De9ES6ibMg2XxwvfFrLbowBTE3ogVRCWG0GI11n3p1AgNICVKK LqFOVegnQXwGdGvQj3ysg1EsV8NgfLDpj0VYaiufHw0Ma8NotjcCKuh6jsR1FdXF7558 tWo/s4+s5DH+l3NCuctCKypxoS5hP8NKTqbu19gHkQhhCuKhsIzZ1dGLRRwOqrKEOCSF oNXbMrxqiPim4TBzinz7eh83RhGBuKqoPQMLlQQimoo/Nrs2pJ8yaEsi1h+LRLCrggeu H6cIjyi6jp3udMa2Eky0b5RhRBTsbG4eEox2m5pKlyeVPSWQGHfOliVFWMQottShCVYG CM/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="X/vbLg0R"; 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 v16si3777735pgc.519.2018.12.14.04.02.34; Fri, 14 Dec 2018 04:03:06 -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="X/vbLg0R"; 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 S1729737AbeLNMB3 (ORCPT + 99 others); Fri, 14 Dec 2018 07:01:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:43854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbeLNMB1 (ORCPT ); Fri, 14 Dec 2018 07:01:27 -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 C0ADC2133F; Fri, 14 Dec 2018 12:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544788886; bh=WpjLEwZmyU5pDSgLxclwf9bZotWqr0hYDwXNJkKmkZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X/vbLg0Rf8Tv9VsDAGLJ4LQf/aGG4uafbISitId7n2RowTU16ZPIArd/iBBAFVxKZ fIxV+V9ZmKhc0cYS3WUtPmKDeZ2wjWVu1ExPjbCHbOUa3efOL05MSjX+xMuKyvnX2y zx1QsP3BJJdKqaGObcTvYzSED2d/FO/QWVls4nyI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benjamin Herrenschmidt , "David S. Miller" Subject: [PATCH 4.19 011/142] Revert "net/ibm/emac: wrong bit is used for STA control" Date: Fri, 14 Dec 2018 12:58:16 +0100 Message-Id: <20181214115747.498608467@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Benjamin Herrenschmidt [ Upstream commit 5b3279e2cba2238b37f6c18adfdea8bddb32715a ] This reverts commit 624ca9c33c8a853a4a589836e310d776620f4ab9. This commit is completely bogus. The STACR register has two formats, old and new, depending on the version of the IP block used. There's a pair of device-tree properties that can be used to specify the format used: has-inverted-stacr-oc has-new-stacr-staopc What this commit did was to change the bit definition used with the old parts to match the new parts. This of course breaks the driver on all the old ones. Instead, the author should have set the appropriate properties in the device-tree for the variant used on his board. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ibm/emac/emac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/ibm/emac/emac.h +++ b/drivers/net/ethernet/ibm/emac/emac.h @@ -231,7 +231,7 @@ struct emac_regs { #define EMAC_STACR_PHYE 0x00004000 #define EMAC_STACR_STAC_MASK 0x00003000 #define EMAC_STACR_STAC_READ 0x00001000 -#define EMAC_STACR_STAC_WRITE 0x00000800 +#define EMAC_STACR_STAC_WRITE 0x00002000 #define EMAC_STACR_OPBC_MASK 0x00000C00 #define EMAC_STACR_OPBC_50 0x00000000 #define EMAC_STACR_OPBC_66 0x00000400