summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2014-02-15 12:40:08 +0000
committerjsg <jsg@openbsd.org>2014-02-15 12:40:08 +0000
commit487c6c525b6a41d080c9ba65a9d6dee30392bd88 (patch)
treec7b2606c45cc54ca0cc811985fffbaa7b59f6c40
parentdrm/mm: fix dump table BUG (diff)
downloadwireguard-openbsd-487c6c525b6a41d080c9ba65a9d6dee30392bd88.tar.xz
wireguard-openbsd-487c6c525b6a41d080c9ba65a9d6dee30392bd88.zip
drm/radeon: warn users when hw_i2c is enabled (v2)
From Alex Deucher 4e5bd6f0c144ee55733bbbcfce7aad822d992417 in ubuntu 3.8 d195178297de9a91246519dbfa98952b70f9a9b6 in mainline linux
-rw-r--r--sys/dev/pci/drm/radeon/radeon_i2c.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_i2c.c b/sys/dev/pci/drm/radeon/radeon_i2c.c
index a24e1b4f171..fad85fb4781 100644
--- a/sys/dev/pci/drm/radeon/radeon_i2c.c
+++ b/sys/dev/pci/drm/radeon/radeon_i2c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radeon_i2c.c,v 1.2 2014/02/09 11:03:31 jsg Exp $ */
+/* $OpenBSD: radeon_i2c.c,v 1.3 2014/02/15 12:40:08 jsg Exp $ */
/*
* Copyright 2007-8 Advanced Micro Devices, Inc.
* Copyright 2008 Red Hat Inc.
@@ -1148,6 +1148,9 @@ void radeon_i2c_destroy(struct radeon_i2c_chan *i2c)
/* Add the default buses */
void radeon_i2c_init(struct radeon_device *rdev)
{
+ if (radeon_hw_i2c)
+ DRM_INFO("hw_i2c forced on, you may experience display detection problems!\n");
+
if (rdev->is_atom_bios)
radeon_atombios_i2c_init(rdev);
else