Re: [PATCH v2 06/17] Platform: OLPC: Add XO-1.75 EC driver
From: Andy Shevchenko <hidden>
Date: 2018-12-03 07:54:54
Also in:
linux-devicetree, linux-pm, linux-spi, lkml, platform-driver-x86
On Mon, Dec 3, 2018 at 1:13 AM Darren Hart [off-list ref] wrote:
On Fri, Nov 16, 2018 at 05:23:52PM +0100, Lubomir Rintel wrote:quoted
It's based off the driver from the OLPC kernel sources. Somewhat modernized and cleaned up, for better or worse. Modified to plug into the olpc-ec driver infrastructure (so that battery interface and debugfs could be reused) and the SPI slave framework.
quoted
- Count the terminating NUL in LOG_BUF_SIZE - Make olpc_xo175_ec_is_valid_cmd() return -EINVAL instead of -1 on error - Spell keyboard/touchpad in full for CHAN_KEYBOARD/TOUCHPAD messages - Use a #define for PM wakeup processing time - Log a message on unknown event - Escape logging payload with %*pE - Replace an open-coded min() - Correct an error code on short read - replaced PM callback #ifdefs with __maybe_unusedm SET_RUNTIME_PM_OPS and SET_NOIRQ_SYSTEM_SLEEP_PM_OPS - dev_get_drvdata() instead of a round-trip through platform device - s/unsigned char x/u8 x/ in olpc_xo175_ec_resume() - Use GENMASK() instead of 0xffff for the event mask - Replace cmd tx/resp rx buffers with structures - Turned suspend hint arguments into a struct, and tidied up the commentJust from these comments, each of these could be a separate patch. You can group related things together, or those that change the same line or function for example. Order them with cleanups / non-functional-changes first, followed by functional changes.quoted
Basically all of the above is based on the review by Andy Shevchenko.Andy, what was your intent for Lubomir here? From the above, this looks like it should be several patches to me.
This is a new module, I don't see why it can't be one patch. For the existing code I agree with you. -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel