]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
exynos: i2c: Tidy up the driver model code
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2015 00:15:47 +0000 (18:15 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:13 +0000 (08:17 +0200)
commit55255661c5de4c0ac05a646b635af9a1280068f2
tree2415b9fd8e7a484c5a6444a38e785cc253fd16e4
parent6f52ee3e520079012888839eb2efbd6eb4905032
exynos: i2c: Tidy up the driver model code

The existing driver model implementation uses the old non-driver-model code
to operate, but has become impossibly tangled as a result. The actual
algorithm is quite simple.

Also the normal-speed and high-speed buses are quite different and it
doesn't seem that useful to put them in the same driver.

Finally, there is a bug which breaks communication with the Maxim sound
codec and may cause problems with other device.

Rewrite the driver model code for normal-speed operation so that it is
easier to understand, and fix the bug. Add a TODO to split the drivers.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/s3c24x0_i2c.c