Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5855138ybn; Sun, 29 Sep 2019 07:08:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwzj/QKp7LuNUywcrlbeyqsQg8ES66EvZ/AE5onGPz7jRIJ0Fs9l68uGPqNW8dRBLgIrgu X-Received: by 2002:a50:ed82:: with SMTP id h2mr14816607edr.206.1569766112049; Sun, 29 Sep 2019 07:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569766112; cv=none; d=google.com; s=arc-20160816; b=UpNKZP2qCHOU6u2St4JVvZ7BIAa+Z0UbL0kGGwBWOQlRJa3mikwJs0N0MOM3h3EjJa W/37jXl1p69FQaDZiL0VOEm2G+J31FSVB6VwEQUkZdLT0qE3JEXOgNVT+oeGYOJ+Gci1 IXOg9NjyYgqWHckYg7iRTg6hqZnhgRVAG+/aoNYJG5kAPgaUw4yfstrDKHtzsykHa79i AJPBHTifWZGk0GM/lZaErvnUdE8ePf0+tSPz52XdFsyQm68X1OYRKAKg1/HJK1hW7o7H RBE0/eCfueeUrDcXdzvo8NZ5lLqim7wmMhTr7zjGLVRoRgilrUjpwM8geSjA7Uprjn2p VpIA== 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=+nXAWsb/wIngZzIqcYGh6S/oPMTW4OajWR8riYvhnFc=; b=qv1cVOb9/zskYJyQkYy0A0dZkGQKT6Ggcou9N3o5asDXselJXfUHIVhtsD09lKycj+ fhJWxoLfGmuQ+v/fifvQwPEmL7oX4BF+Dbbjbu0zA3gAC3I9Ce6i37gqKasBGkPvQFAR K2Lcb90rYQ/CK6TxM7R7Mt5/NXhKOGwTud5VoKbS2U9tSVuzYmY+Mg7jKjbnFXOtDCa2 Cn0APYMTBByKrBmTbsoYnXB0cFzEmVI4CvJw5hZ4pGaR5TlxKWpEts3ypPJ/tT1c5oGy L0/atpmgZ0K83ZwEWO5izHAdD8kdfwdgbQaQmkFDi8meaL0QO4FXwFtl+w+R/XdBsdwM NzDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OtJLO1y+; 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 20si5621655ejv.342.2019.09.29.07.08.07; Sun, 29 Sep 2019 07:08: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=OtJLO1y+; 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 S1729570AbfI2OCN (ORCPT + 99 others); Sun, 29 Sep 2019 10:02:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:44712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729534AbfI2OCM (ORCPT ); Sun, 29 Sep 2019 10:02:12 -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 5C03D2086A; Sun, 29 Sep 2019 14:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765731; bh=WteolVlV8xZa6ogzKxdo9wnP8h81ZVK+QRa798z6MtE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OtJLO1y+U6my/hKETjqVV+nEJBtysQLhovBJF9Eby1LBpiBrSEw/Nq2rkU+PXdA+b h70I5YXrY/JlbJg1yzZd2ZhcFf73V7G84YkhXmlDmH4v7G19ttpsp8wzNotbUieRge 4VTLQ6wnj6aKbJZm3LKkLjKysCiwwzo8Yw6UmWeo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "David S." , Peteris Rudzusiks , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Sasha Levin , Jani Nikula Subject: [PATCH 5.2 35/45] drm/dp: Add DP_DPCD_QUIRK_NO_SINK_COUNT Date: Sun, 29 Sep 2019 15:56:03 +0200 Message-Id: <20190929135032.577766771@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190929135024.387033930@linuxfoundation.org> References: <20190929135024.387033930@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: Ville Syrjälä [ Upstream commit 7974033e527a5dd12d96126d09d4cff4f9b65c69 ] CH7511 eDP->LVDS bridge doesn't seem to set SINK_COUNT properly causing i915 to detect it as disconnected. Add a quirk to ignore SINK_COUNT on these devices. Cc: David S. Cc: Peteris Rudzusiks Tested-by: Peteris Rudzusiks Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105406 Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20190528140650.19230-1-ville.syrjala@linux.intel.com Acked-by: Jani Nikula #irc Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_dp_helper.c | 4 +++- include/drm/drm_dp_helper.h | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 54a6414c5d961..429c58ce56ced 100644 --- a/drivers/gpu/drm/drm_dp_helper.c +++ b/drivers/gpu/drm/drm_dp_helper.c @@ -1278,7 +1278,9 @@ static const struct dpcd_quirk dpcd_quirk_list[] = { /* LG LP140WF6-SPM1 eDP panel */ { OUI(0x00, 0x22, 0xb9), DEVICE_ID('s', 'i', 'v', 'a', 'r', 'T'), false, BIT(DP_DPCD_QUIRK_CONSTANT_N) }, /* Apple panels need some additional handling to support PSR */ - { OUI(0x00, 0x10, 0xfa), DEVICE_ID_ANY, false, BIT(DP_DPCD_QUIRK_NO_PSR) } + { OUI(0x00, 0x10, 0xfa), DEVICE_ID_ANY, false, BIT(DP_DPCD_QUIRK_NO_PSR) }, + /* CH7511 seems to leave SINK_COUNT zeroed */ + { OUI(0x00, 0x00, 0x00), DEVICE_ID('C', 'H', '7', '5', '1', '1'), false, BIT(DP_DPCD_QUIRK_NO_SINK_COUNT) }, }; #undef OUI diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 97ce790a5b5aa..d6c89cbe127a3 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -1401,6 +1401,13 @@ enum drm_dp_quirk { * driver still need to implement proper handling for such device. */ DP_DPCD_QUIRK_NO_PSR, + /** + * @DP_DPCD_QUIRK_NO_SINK_COUNT: + * + * The device does not set SINK_COUNT to a non-zero value. + * The driver should ignore SINK_COUNT during detection. + */ + DP_DPCD_QUIRK_NO_SINK_COUNT, }; /** -- 2.20.1