Received: by 10.192.165.148 with SMTP id m20csp812700imm; Fri, 27 Apr 2018 07:56:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp9PZnKbP5XSsr8taEYGPaO1Wm1tm1cBBzwb6U6f/jrppAKEall1JS27XIZabtBTSbk2H9P X-Received: by 2002:a17:902:820d:: with SMTP id x13-v6mr2517116pln.225.1524840986616; Fri, 27 Apr 2018 07:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524840986; cv=none; d=google.com; s=arc-20160816; b=jkQamxZnQFH0hkxF99wCy6g+6pHnVnZcx95gCBh/FKayA3awdCXS9RX4W5vc6YORBE y1f06Vjtf2P5LbmXaKIgvZp2o48fqfHzglZ0ayS5Kdw4U1Q/LA7CXqToTvaT4ViZKnd2 o7AqwC2NNsUeyfY0qe3qskJ2DqXeqXaGlQL51s6CxVs4pWT/h9OFeskqVbKhqdHqDMjs gXXcczpDeqgtQV0sqnEo6xs2y+o/PR6D5BYTb62PDhi8pN/fVQbg4sogIbLpWOv7a5JV mxISCkx10lBr2Qd3LmExxOP7sWsCj9naN65/rfwrps6I/u0u6i/ga1kH4YVfu2ey5Uqn IhBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=sgWwtVhgxX/juCjoXcUg1tFjF4CdonN4CiJNdoaDl60=; b=cLkaHr9R1K26+GsuGs/8aWs3HPMKqMkIScJkAe/7yLzLWpCIoAOtMKhYEjMmOrvxJT FWXxMNLZZzImpxee78VJE7NQn/odNZ3Zo33Nqs2SFtg1sKJhlgWzS0ChLdpjJFY+zN8T 8BVQ4NjVbGySyF6hrx9UdIb7CUuxjO/lZe3naIqI5mw406vxlAGHyjM079l4HSgWmTLR JMMGep3rlzOPSWWn5rF+LtVhgyC14JPWQZ4ntcPKlGhufqf6hZOuJnnNY3s6e3L9Gsv3 Qlxjmfg9MLgOsJbGQszVm1e6NWUFctq6fR8yi3QY8nQZSwnzMzVl3firQpQAOT7l3lcY /few== ARC-Authentication-Results: i=1; mx.google.com; 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 y26-v6si1320372pgv.504.2018.04.27.07.56.12; Fri, 27 Apr 2018 07:56:26 -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; 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 S934305AbeD0OzF (ORCPT + 99 others); Fri, 27 Apr 2018 10:55:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:52514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934132AbeD0OG3 (ORCPT ); Fri, 27 Apr 2018 10:06:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 ECD3121890; Fri, 27 Apr 2018 14:06:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ECD3121890 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Archit Taneja , Neil Armstrong Subject: [PATCH 4.14 02/80] drm: bridge: dw-hdmi: Fix overflow workaround for Amlogic Meson GX SoCs Date: Fri, 27 Apr 2018 15:57:55 +0200 Message-Id: <20180427135733.038377575@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135732.928644313@linuxfoundation.org> References: <20180427135732.928644313@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Neil Armstrong commit 9c305eb442f3b371fc722ade827bbf673514123e upstream. The Amlogic Meson GX SoCs, embedded the v2.01a controller, has been also identified needing this workaround. This patch adds the corresponding version to enable a single iteration for this specific version. Fixes: be41fc55f1aa ("drm: bridge: dw-hdmi: Handle overflow workaround based on device version") Acked-by: Archit Taneja [narmstrong: s/identifies/identified and rebased against Jernej's change] Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/1519386277-25902-1-git-send-email-narmstrong@baylibre.com [narmstrong: v4.14 to v4.16 backport] Cc: # 4.14.x Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -1634,6 +1634,8 @@ static void dw_hdmi_clear_overflow(struc * (and possibly on the platform). So far only i.MX6Q (v1.30a) and * i.MX6DL (v1.31a) have been identified as needing the workaround, with * 4 and 1 iterations respectively. + * The Amlogic Meson GX SoCs (v2.01a) have been identified as needing + * the workaround with a single iteration. */ switch (hdmi->version) { @@ -1641,6 +1643,7 @@ static void dw_hdmi_clear_overflow(struc count = 4; break; case 0x131a: + case 0x201a: count = 1; break; default: