Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4869440pjb; Mon, 27 Jul 2020 07:14:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3Nti9WXsP6RIFyqh5kYpWLgiKU9P7yJCWjTNcSJ2Lc0tsglM2fEvz5IuRmyn90Rcwucn3 X-Received: by 2002:a17:906:1455:: with SMTP id q21mr20975753ejc.139.1595859274957; Mon, 27 Jul 2020 07:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859274; cv=none; d=google.com; s=arc-20160816; b=0lkdr+AuSWPgEbrV4LUSP+grWbhNGNYLH6AYdOEv17YrnehNKpI9Nwz2yVdMiD54PK f3H4fhGFseSfxSDnF1vw1HlCG7R1gJG8uRDDQSVrK9LphXrEBHpkomWWoXAa3yRNG9+o qawham2wBuyvOfK49twWy/3w0LEeW6sf4KpFco2b3KOoZsqZ/tYLR6oTYjsBzFcvK+sY 2InvQYkUcPfR1zte8eMTtIvtSG8kcTaY/vjsn1TGjKqpSkorAK1VlF2gocVaOOoGbB/6 gY0/YvVZ6ybT1TPwadNvV6tzsyRxpEZxDtYlFpvVRqVwnmaynXUNQuDMEF9l0DQXybf4 3wcw== 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=Z+f4+5ln02RsNu26YNiXZ1wDNWOi4L+434hh4TCyR7U=; b=zZgOudm1XUGfT7vyiKBBM61OFln8eFMEfIlvTDRXtgBkc2jE0R6Kmsfd/GiDMbGBh6 bR0v2UdN+tRUcFP2QTEuzm7GBY/gDud5/UQvCdwmp0GmUMwFyUIbjIpr6OGtmeA8C0nU isSBDVDa0UHdL6Jvr3j8qZz5UE+iEXs6MsEvPjGItpU6TaFpAVTfwpwkPsa5PRVh2P5L P0Y0htH0cfN1PjhT7UPDL3Wi4sXYX1w1C4YdEguyVV8R9G8+5lwLS1aQocrTJNbiED7Y +0CzfH6uRUEG3hBOb4zqrMpselBYplrdCm9TK28UH8DyRbjsiP8uTDOeJDQkIZS4OQD4 SLKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vR+LNwDd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs1si6373918edb.76.2020.07.27.07.14.13; Mon, 27 Jul 2020 07:14:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vR+LNwDd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729936AbgG0OKy (ORCPT + 99 others); Mon, 27 Jul 2020 10:10:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:34116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729929AbgG0OKx (ORCPT ); Mon, 27 Jul 2020 10:10:53 -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 B74DF22CA0; Mon, 27 Jul 2020 14:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859053; bh=vAEoZ85+j6pam3fLDbRAWsZD+MUoF/EcWnplnwzUiPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vR+LNwDdbKjE5UsT0qJ212OQqYdCJJghebU6kcr2mgB1UF1F9gylsnQoqzCgO1MoD w1DrETyqnHPCiz63P+KNGpY/1+0FTnKu9RssbtjPdju9xoNlqRFwIycOXgtzLNAjZp jGIPrGbCxft4cZrnPTOhkftUWeXZbCuYHClkQFO0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , Mans Rullgard , Maxime Ripard , Sasha Levin Subject: [PATCH 4.19 31/86] drm: sun4i: hdmi: Fix inverted HPD result Date: Mon, 27 Jul 2020 16:04:05 +0200 Message-Id: <20200727134916.001493607@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134914.312934924@linuxfoundation.org> References: <20200727134914.312934924@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 From: Chen-Yu Tsai [ Upstream commit baa1841eb797eadce6c907bdaed7cd6f01815404 ] When the extra HPD polling in sun4i_hdmi was removed, the result of HPD was accidentally inverted. Fix this by inverting the check. Fixes: bda8eaa6dee7 ("drm: sun4i: hdmi: Remove extra HPD polling") Signed-off-by: Chen-Yu Tsai Tested-by: Mans Rullgard Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20200711011030.21997-1-wens@kernel.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c index 7e7fa8cef2ade..8ba19a8ca40f1 100644 --- a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c +++ b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c @@ -243,7 +243,7 @@ sun4i_hdmi_connector_detect(struct drm_connector *connector, bool force) unsigned long reg; reg = readl(hdmi->base + SUN4I_HDMI_HPD_REG); - if (reg & SUN4I_HDMI_HPD_HIGH) { + if (!(reg & SUN4I_HDMI_HPD_HIGH)) { cec_phys_addr_invalidate(hdmi->cec_adap); return connector_status_disconnected; } -- 2.25.1