Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4876232pjb; Mon, 27 Jul 2020 07:23:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQiZkJYpx/dPllcVNjbxpx96ZQ5+D8MJ6rQ8RIJOU/WIdQwrhLuAKLcvwzikp4DBWeqcqF X-Received: by 2002:a17:906:280c:: with SMTP id r12mr21042726ejc.105.1595859783143; Mon, 27 Jul 2020 07:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859783; cv=none; d=google.com; s=arc-20160816; b=wuMYdlhdeSkV0H8EcgpZMddO4j+YNkpPHbhuM3Lkgml7gjnyJ7qV7C4IMXeh8nsuQ8 ZW9jTnAmqhEq1Yd7QYvYw8c8zE36eWZjxH6RIosXwPLCf2e8iIjAkIrXmHoH3buymuWI bsoQSm9i7H/TzmnbDYmd2w/4T7iam6oNZdNPoVKvPRwjVmXq3N+bYekEMz4JtxV9y77I YlUZLpKOfQFpO/1hPTkn2h/3wJU3vLO8XetUtMG/BEDS70/SaJvW88XJvMaoic0v1VF4 r6EOY4JE6e545quV8So4MLnh5UOYHZ2WuzynTgFVpuudDcgVfkZWVjulBMeNmQyQnev8 6InA== 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=QbhiiGeSNd0vSReJdOStjlVYtf1nZbBVDkMT7X1wM5Q=; b=XQzT9wRubRDeiMcl0a1r0tSbHoQ/brpZW9J5CABp/YaZPDzp4lVxthNwnkcMBRahph ICFM7SYM7LfyEjg7RDopsvxrDlHgoE8nEFzzyr3Dxyg6pcdHtGC1s3y7X1/tFIQC6/ZT lWpW7FSXuzgGgYsm44b3vlZE+MVfB5ahchzFAVas7N+72ff89XE75fVp/Kh/S0xRPtUK Rp9BCNB4+/LmLjw3uKRff2SpmwgfRAKTnhbwYIXkLHXyJgNJBq5Oda8klNLBUQ9IbLw1 vOeZEFjagMCZ/SeavNGX9l1Ps7tlNccLkFInLsE4QZCDiDvTt/cclta7I38L7KaFhgfl ZFNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u1Gfzg5Y; 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 pw2si5651850ejb.669.2020.07.27.07.22.40; Mon, 27 Jul 2020 07:23:03 -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=u1Gfzg5Y; 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 S1731680AbgG0OVM (ORCPT + 99 others); Mon, 27 Jul 2020 10:21:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:49704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731638AbgG0OVK (ORCPT ); Mon, 27 Jul 2020 10:21:10 -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 310492070B; Mon, 27 Jul 2020 14:21:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859669; bh=TecO03OPduOUqsycocBSfTknmGQEVs9nwM8nTt4HnO0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u1Gfzg5YoPpNOoKms/o9WqI6WXSUcLABU96sVFUr0SQOgVdZhHPvkoxFu3s1UPXqM xdOJxD7iY9fr/JG1k7sTh8gTSgbvcfMH5EolNsyfv5TNccdXw8KL4TID9aHnr9ap/y eTluKDLtHnPNwhnN5lImYz0lxHxmMP9awFXP6FA8= 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 5.7 060/179] drm: sun4i: hdmi: Fix inverted HPD result Date: Mon, 27 Jul 2020 16:03:55 +0200 Message-Id: <20200727134935.594677480@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@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 f07e0c32b93a2..4c5072a578bf2 100644 --- a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c +++ b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c @@ -263,7 +263,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