Re: [PATCH] kernel 2.6.11.6 - I2C adaptor for ColdFire 5282 CPU

From: Greg KH
Date: Sun Apr 17 2005 - 18:48:01 EST


On Wed, Apr 13, 2005 at 09:12:53PM -0400, Derek Cheung wrote:
> OK, hope this patch can satisfy everyone :-)
>
> The following is the diffstat of the enclosed patch file:
>
> drivers/i2c/busses/Kconfig | 10
> drivers/i2c/busses/Makefile | 1
> drivers/i2c/busses/i2c-mcf5282.c | 414
> +++++++++++++++++++++++++++++++++++++++
> drivers/i2c/busses/i2c-mcf5282.h | 46 ++++
> include/asm-m68knommu/m528xsim.h | 42 +++
> 5 files changed, 513 insertions(+)
>
> I did:
>
> a) remove all trailing spaces in the files
> b) re-align the switch statement
> c) change a return statement
> d) change some white space intents to TABs
> e) insert a break for the I2C_SMBUS_PROC_CALL, thanks for spotting it
> f) fix the mcf5282lite wording in Kconfig
>
> I did not:
>
> g) use the ioremap. This is because Coldfire is a CPU without MMU and
> there is no difference between virtual and physical memory. In fact, the
> ioremap routine in the m68knommu is simply a stub routine that returns
> the input address argument for compatibility reason. Also, all other
> Coldfire CPU include files such as the m5307sim.h uses the volatile
> declaration method.
> So, I hope this is acceptable to the Linux kernel maintainers

No, do not do this. Even the i386 platform can get away with doing this
kind of io memory addressing, but drivers do not do that, as they are
not portable. The first time someone wants to use this kind of i2c
adapter on a non-coldfire chip, they will have to rewrite the driver,
not acceptable.

Also, you did not include a good Changelog entry, nor a Signed-off-by:
line, and you attached the file in a mime attachment.

Please fix these issues up.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/