[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALHCpMjc5+rsNvTHyy3V-+0bJ3yez+ewnGwyk+k-hvmNaF6TsQ@mail.gmail.com>
Date: Sun, 4 Jun 2023 23:53:30 +0300
From: Maxim Kiselev <bigunclemax@...il.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: linux-iio@...r.kernel.org, Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Chen-Yu Tsai <wens@...e.org>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Samuel Holland <samuel@...lland.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Philipp Zabel <p.zabel@...gutronix.de>,
Cristian Ciocaltea <cristian.ciocaltea@...labora.com>,
Cosmin Tanislav <demonsingur@...il.com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
ChiaEn Wu <chiaen_wu@...htek.com>,
Arnd Bergmann <arnd@...db.de>,
Ramona Bolboaca <ramona.bolboaca@...log.com>,
Caleb Connolly <caleb.connolly@...aro.org>,
ChiYuan Huang <cy_huang@...htek.com>,
Ibrahim Tilki <Ibrahim.Tilki@...log.com>,
William Breathitt Gray <william.gray@...aro.org>,
Leonard Göhrs <l.goehrs@...gutronix.de>,
Haibo Chen <haibo.chen@....com>,
Hugo Villeneuve <hvilleneuve@...onoff.com>,
Mike Looijmans <mike.looijmans@...ic.nl>,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-sunxi@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Subject: Re: [PATCH v2 1/3] iio: adc: Add Allwinner D1/T113s/R329/T507 SoCs GPADC
пт, 2 июн. 2023 г. в 17:49, Andy Shevchenko <andriy.shevchenko@...ux.intel.com>:
...
> The locks should be explained (what are they for? what do they protect?).
I added the explanation comment in the next version.
...
> > +static const struct regmap_config sun20i_gpadc_regmap_config = {
> > + .reg_bits = 32,
> > + .val_bits = 32,
> > + .reg_stride = 4,
> > + .fast_io = true,
>
> I forgot if I asked about regmap lock do you need it?
I think we could drop the regmap altogether. As Andy suggested in
previous series.
...
> > + if (num_channels > SUN20I_GPADC_MAX_CHANNELS) {
> > + dev_err(dev, "num of channel children out of range");
> > + return -EINVAL;
> > + }
>
> Is it really critical error?
Yes, as Jonathan already noted, this may lead to out of range error.
вс, 4 июн. 2023 г. в 13:46, Jonathan Cameron <jic23@...nel.org>:
...
> We try to make this name identify the chip in question.
> If the driver name is sufficient for these platforms then fair enough.
> It should certainly be enough to distinguish this from other ADCs on the
> platform.
I believe the driver name should be enough. All listed SoCs have the
same GPADC register
layout and differ only in the number of channels.
Powered by blists - more mailing lists