[PATCH] drm/radeon: warn users when hw_i2c is enabled

Christian König deathsimple at vodafone.de
Tue Jan 7 07:16:00 PST 2014


Am 07.01.2014 16:14, schrieb Alex Deucher:
> The hw i2c engines are disabled by default as the
> current implementation is still experimental.  Print
> a warning when users enable it so that it's obvious
> when the option is enabled.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> Cc: stable at vger.kernel.org

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/radeon/radeon_i2c.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c
> index fc60b74..74bfbf8 100644
> --- a/drivers/gpu/drm/radeon/radeon_i2c.c
> +++ b/drivers/gpu/drm/radeon/radeon_i2c.c
> @@ -1020,6 +1020,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 == 1)
> +		DRM_INFO("hw_i2c forced on, you may experience display detection problems!\n");
> +
>   	if (rdev->is_atom_bios)
>   		radeon_atombios_i2c_init(rdev);
>   	else



More information about the dri-devel mailing list