[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM6PR11MB4316E9530309ACCEF55AD0D18D5CA@DM6PR11MB4316.namprd11.prod.outlook.com>
Date: Tue, 20 Jun 2023 06:47:11 +0000
From: "Wu, Wentong" <wentong.wu@...el.com>
To: Mark Brown <broonie@...nel.org>, "Ye, Xiang" <xiang.ye@...el.com>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Arnd Bergmann <arnd@...db.de>,
Matthias Kaehlcke <mka@...omium.org>,
Lee Jones <lee@...nel.org>, Wolfram Sang <wsa@...nel.org>,
Tyrone Ting <kfting@...oton.com>,
Linus Walleij <linus.walleij@...aro.org>,
Marc Zyngier <maz@...nel.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
"linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-spi@...r.kernel.org" <linux-spi@...r.kernel.org>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"Pandruvada, Srinivas" <srinivas.pandruvada@...el.com>,
"heikki.krogerus@...ux.intel.com" <heikki.krogerus@...ux.intel.com>,
"andriy.shevchenko@...ux.intel.com"
<andriy.shevchenko@...ux.intel.com>,
"sakari.ailus@...ux.intel.com" <sakari.ailus@...ux.intel.com>,
"Wang, Zhifeng" <zhifeng.wang@...el.com>,
"Zhang, Lixu" <lixu.zhang@...el.com>
Subject: RE: [PATCH v8 6/6] spi: Add support for Intel LJCA USB SPI driver
Hi Brown,
Thanks for your review
> -----Original Message-----
> From: Mark Brown <broonie@...nel.org>
> Sent: Friday, May 12, 2023 12:18 PM
>
> On Fri, May 12, 2023 at 01:58:44AM +0800, Ye Xiang wrote:
>
> > +++ b/drivers/spi/spi-ljca.c
> > @@ -0,0 +1,290 @@
> > +// SPDX-License-Identifier: GPL-2.0-only
> > +/*
> > + * Intel La Jolla Cove Adapter USB-SPI driver
>
> Please make the entire comment a C++ one so things look more intentional.
>
I see lots of drivers are commenting like current one.
But sorry, you mean the entire comment start with /* and end with */ ? Thanks
BR,
Wentong
> > +struct spi_init_packet {
> > + u8 index;
> > + u8 speed;
> > + u8 mode;
> > +} __packed;
> > +
> > +struct spi_xfer_packet {
>
> These should be namespaced, especially since they look likely to collide with
> other things. Otherwise this looks fine.
Ack, these two structs will be like below in next version, thanks
struct ljca_spi_init_packet {
u8 index;
u8 index;
u8 mode;
} __packed;
struct ljca_spi_xfer_packet {
u8 indicator;
s8 len;
u8 data[];
} __packed;
Powered by blists - more mailing lists