RE: [PATCH v10 0/5] Add Xilinx AMS Driver

From: Anand Ashok Dumbre
Date: Thu Nov 18 2021 - 10:03:50 EST


Hi Andy,

Thanks for the review.

> -----Original Message-----
> From: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
> Sent: Wednesday 17 November 2021 5:14 PM
> To: Anand Ashok Dumbre <ANANDASH@xxxxxxxxxx>
> Cc: Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>; Jonathan
> Cameron <jic23@xxxxxxxxxx>; Lars-Peter Clausen <lars@xxxxxxxxxx>; linux-
> iio <linux-iio@xxxxxxxxxxxxxxx>; git <git@xxxxxxxxxx>; Michal Simek
> <michals@xxxxxxxxxx>; Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>;
> Rafael J. Wysocki <rafael@xxxxxxxxxx>; ACPI Devel Maling List <linux-
> acpi@xxxxxxxxxxxxxxx>; Andy Shevchenko
> <andriy.shevchenko@xxxxxxxxxxxxxxx>; Krogerus, Heikki
> <heikki.krogerus@xxxxxxxxxxxxxxx>
> Subject: Re: [PATCH v10 0/5] Add Xilinx AMS Driver
>
> On Wed, Nov 17, 2021 at 6:46 PM Anand Ashok Dumbre
> <anand.ashok.dumbre@xxxxxxxxxx> wrote:
> >
> > Add Xilinx AMS driver which is used for Xilinx's ZynqMP AMS controller.
> > This AMS driver is used to report various interface voltages and
> > temperatures across the system.
> > This driver will be used by iio-hwmon to repport voltages and
> > temperatures across the system by using various channel interfaces.
> > This driver handles AMS module including PS-Sysmon & PL-Sysmon. The
> > binding documentation is added for understanding of AMS, PS, PL Sysmon
> Channels.
>
> Thanks and wait a bit, please. No need to send patches so often. We haven't
> settled down yet on v9. Here you effectively ignored my comment given
> again patch 5/5. Why?
>

Apologies for sending patch too soon. I sent the patch before I saw your response.

> ...
>
> > Changes in v10:
> > - Fixed licence in zynqmp.dtsi.
> > - Changed the macros to use BIT().
> > - Realign some code to fit within 100 chars.
> > - Modified readl_poll_timeout usage.
>
> > - Usage of array_size() instead of check_mul_overflow().
>
> Why? I have asked you why you haven't used kcalloc there as well.

Yes, I saw the implementation of kcalloc after reading your comment and
It does check_mul_overflow internally so this is not needed.

I will wait a couple of days before sending new patches.

>
> > - Usage of dev_err_probe() instead of dev_err().
> > - Usage of kcalloc instead of kzalloc()
>
> --
> With Best Regards,
> Andy Shevchenko

Thanks,
Anand