Message ID | 20240605161851.13911-1-kabel@kernel.org |
---|---|
Headers | show |
Series | Turris Omnia MCU driver | expand |
On Wed, Jun 5, 2024 at 7:19 PM Marek Behún <kabel@kernel.org> wrote: > > Add the basic skeleton for a new platform driver for the microcontroller > found on the Turris Omnia board. ... I paid attention to this block because of ETH_ALEN, see below. > +#include <linux/array_size.h> > +#include <linux/bits.h> > +#include <linux/device.h> > +#include <linux/hex.h> > +#include <linux/i2c.h> > +#include <linux/module.h> > +#include <linux/turris-omnia-mcu-interface.h> This is part of the niche of the driver, I would move it > +#include <linux/types.h> t is followed by s :-) > +#include <linux/string.h> > +#include <linux/sysfs.h> ...here as a separate group. > +#include "turris-omnia-mcu.h" ... > + /* we can't use ether_addr_copy() because reply is not u16-aligned */ > + memcpy(mcu->board_first_mac, &reply[9], ETH_ALEN); The inclusion block misses the header for ETH_ALEN, but I realise that instead it's better to use sizeof() as it makes this rely to the real size of the buffer and header is not needed either. ... Other than above LGTM, FWIW, Reviewed-by: Andy Shevchenko <andy@kernel.org>
On Wed, Jun 5, 2024 at 7:19 PM Marek Behún <kabel@kernel.org> wrote: > > Hello Andy, Hans, Ilpo, Arnd, Gregory, and others, > > this is v11 of the series adding Turris Omnia MCU driver. Thank you! There are a few small issues here and there, but overall LGTM. The only one main question is what to do with gpiochip_get_desc(). I Cc'ed Bart for this.
On Wed, 5 Jun 2024 22:05:37 +0300 Andy Shevchenko <andy.shevchenko@gmail.com> wrote: > On Wed, Jun 5, 2024 at 7:19 PM Marek Behún <kabel@kernel.org> wrote: > > > > Hello Andy, Hans, Ilpo, Arnd, Gregory, and others, > > > > this is v11 of the series adding Turris Omnia MCU driver. > > Thank you! > There are a few small issues here and there, but overall LGTM. The > only one main question is what to do with gpiochip_get_desc(). I Cc'ed > Bart for this. Thank you for the review, I am going to apply the changes you requested and wait for Bart, and we'll see what to do with the gpiochip_get_desc(). Marek