Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp460392yba; Wed, 15 May 2019 04:30:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXS+Z7WE7t2aCscU9G47mPrP+3lOlYW6YO7IReq36ADPeI+O64Rq33oVJm8aBS+4Mav9zT X-Received: by 2002:a17:902:6ac6:: with SMTP id i6mr43718981plt.336.1557919832097; Wed, 15 May 2019 04:30:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557919832; cv=none; d=google.com; s=arc-20160816; b=bqWwefLE6VPREZmi4I72lR6QgPWWtfJskDVOSwPYlNjOcx49HbmiA5NDNZ5t2cmpav SGW/prI+Xfzxx6ZXLG6DLUAkCwwyrro9J6+OHa9HlXImdIc+9Voi2OyBL453aTajbxmP 9Gq24gT+s1nYw6mxIBeTi8KM2AAIW7ZsZlXzXtxxuLsFBk/l93LNg6NIQeiss0NughDm m9oIHJUu78NAWaBxhB7TzCNQhxvHcaFrNVt3DhUNzK0Y9DdVzyXdUOs/i5g2ausZUqFM UCJF2rvkvp1RCXJP7eO39e320WenZ8ZJ+PVrokW1l4MavC8jxhJg65ONnPc/ugm8UBCm NkjQ== 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=o98dMDUGG9u+bOXyguXkcf17qXubx2MOydw9xPIC0lE=; b=kJbJNdihpgRFE4g4BEZ3ApyTM9g4muLTDUBCpYviea8gODiW08wc13jDhoQX+JIyPQ cdoZCAWUui5zMg17BnWJ4B0dGlbHSYRJgQlhS04CODTSXm66uaWGaKbrOVHS7+QSlSOV q/BvwYjFl/nJRJ4xMujUL2hwpKK2wCIaMaDGhsIrbW/5bdhcWBAYKYBuCEVvy7tW1VKB vCVspG60N6ZyuO8PL/IehZXd+h8MWClMsJnldWHrtBbfH4gkOZ+e2di/RYLttXIJohoS uPGIhTBmDaTOS4RfIdUWIXSXvEbCgHsLymrcM17gHXiqM393j01duCIKNoCB+oLwvx+0 1dOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="1O/JUuVi"; 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 f1si1554029pgo.517.2019.05.15.04.30.17; Wed, 15 May 2019 04:30:32 -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="1O/JUuVi"; 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 S1732407AbfEOL2c (ORCPT + 99 others); Wed, 15 May 2019 07:28:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:39596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732395AbfEOL2a (ORCPT ); Wed, 15 May 2019 07:28:30 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 3AFEE206BF; Wed, 15 May 2019 11:28:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919709; bh=e2MtqTSZ3nrJhGKG3P7qiVm73W9Shig/UosHZO8yi+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1O/JUuVixrV2uaVCzBs8kmbV2PauzY7UvHFLZkZeP88C1UvJr2WEG3dpF/zB/W8gd OMjSce3/JMk+v0ULJEgOueowRWcH2Zz+KmbGzGsek8qDEXw6nViylvLA8N64BwpMi/ fqdxYxFLEOG1iOtMg9vBKJN8P/oQPbyVv9YcAjew= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonas Karlman , Heiko Stueber , Andrzej Hajda , Sasha Levin Subject: [PATCH 5.0 063/137] drm: bridge: dw-hdmi: Fix overflow workaround for Rockchip SoCs Date: Wed, 15 May 2019 12:55:44 +0200 Message-Id: <20190515090658.041220026@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@linuxfoundation.org> User-Agent: quilt/0.66 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 [ Upstream commit d15d9fd02575ecfada92d42f655940c4f10af842 ] The Rockchip RK3288 SoC (v2.00a) and RK3328/RK3399 SoCs (v2.11a) have also been identified as needing this workaround with a single iteration. Fixes: be41fc55f1aa ("drm: bridge: dw-hdmi: Handle overflow workaround based on device version") Signed-off-by: Jonas Karlman Tested-by: Heiko Stueber Signed-off-by: Andrzej Hajda Link: https://patchwork.freedesktop.org/patch/msgid/AM3PR03MB0966818FAAAE6192FF4ED11AAC7D0@AM3PR03MB0966.eurprd03.prod.outlook.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 64c3cf0275182..14223c0ee7843 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -1655,6 +1655,8 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi) * iteration for others. * The Amlogic Meson GX SoCs (v2.01a) have been identified as needing * the workaround with a single iteration. + * The Rockchip RK3288 SoC (v2.00a) and RK3328/RK3399 SoCs (v2.11a) have + * been identified as needing the workaround with a single iteration. */ switch (hdmi->version) { @@ -1663,7 +1665,9 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi) break; case 0x131a: case 0x132a: + case 0x200a: case 0x201a: + case 0x211a: case 0x212a: count = 1; break; -- 2.20.1