drm/radeon/kms: take the pm mutex when using hw i2c
authorAlex Deucher <alexdeucher@gmail.com>
Sat, 6 Feb 2010 22:06:42 +0000 (17:06 -0500)
committerDave Airlie <airlied@redhat.com>
Mon, 8 Feb 2010 23:32:32 +0000 (09:32 +1000)
commit57fcab620d05c3eb32b4787ce7501565c4c3162d
treecaa3b6f9ce5b5f4ccaf059423d29c91b9bd9b6e4
parent6d7f2d8da106ecf794a5a3e98c4239f348119e3c
drm/radeon/kms: take the pm mutex when using hw i2c

we need a constant sclk for i2c prescale.  Also,
get the current sclk when calculating prescale rather
than using the default sclk.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_i2c.c