From: Jean Delvare Subject: Re: [PATCH] drm/radeon: Fix Asus M2A-VM HDMI EDID error flooding problem Date: Mon, 27 Jun 2011 14:14:04 +0200 Message-ID: <20110627141404.5031c528@endymion.delvare> References: <1308705639-4215-1-git-send-email-reimth@gmail.com> <1308866743-8066-1-git-send-email-reimth@gmail.com> <1308888133.3185.36.camel@Mark-Aurel.gas.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from services.gcu-squad.org (zone0.gcu-squad.org [212.85.147.21]) by gabe.freedesktop.org (Postfix) with ESMTP id B452B9E709 for ; Mon, 27 Jun 2011 05:14:19 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Alex Deucher Cc: Whitehead , Thomas Reim , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, reimth@googlemail.com, Thomas Reim , Mario Kleiner , Jason Wessel , Dave Airlie , Tyson@freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Fri, 24 Jun 2011 09:36:56 -0400, Alex Deucher wrote: > On Fri, Jun 24, 2011 at 12:02 AM, Thomas Reim wr= ote: > >> > diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/r= adeon/radeon_i2c.c > >> > index 781196d..7e93cf9 100644 > >> > --- a/drivers/gpu/drm/radeon/radeon_i2c.c > >> > +++ b/drivers/gpu/drm/radeon/radeon_i2c.c > >> > @@ -34,7 +34,7 @@ > >> > =A0*/ > >> > =A0bool radeon_ddc_probe(struct radeon_connector *radeon_connector) > >> > =A0{ > >> > - =A0 =A0 =A0 u8 out_buf[] =3D { 0x0, 0x0}; > >> > + =A0 =A0 =A0 u8 out =3D 0x0; > >> > =A0 =A0 =A0 =A0u8 buf[2]; > >> > =A0 =A0 =A0 =A0int ret; > >> > =A0 =A0 =A0 =A0struct i2c_msg msgs[] =3D { > >> > @@ -42,7 +42,7 @@ bool radeon_ddc_probe(struct radeon_connector *rad= eon_connector) > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.addr =3D 0x50, > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.flags =3D 0, > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.len =3D 1, > >> > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .buf =3D out_buf, > >> > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .buf =3D &out, > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}, > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{ > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.addr =3D 0x50, > >> > >> > >> The change above doesn't seem to be related. > > > > This was a comment from Jean who complained about the ineffective usage > > of the i2c bus. But I can also restore the old code. What's your > > preference? > = > Ah, I missed that. Let's make that a separate patch, or fix it when > you add support for the extended edid check. > = > Thanks for fixing this up. I'll send a patch for that one, as I found it. It is indeed unrelated to the problem, I mentioned it only to avoid the same mistake in a newly added function. It's a very minor cleanup / optimization, BTW. -- = Jean Delvare