Re: [PATCH v8 3/4] power: supply: Add charger driver for Rockchip RK817

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, Aug 08, 2022 at 12:38:08PM -0500, Chris Morgan wrote:
> From: Chris Morgan <macromorgan@xxxxxxxxxxx>
> 
> Add support for the Rockchip rk817 battery charger integrated into the
> rk817 PMIC.
> 
> Signed-off-by: Chris Morgan <macromorgan@xxxxxxxxxxx>
> Signed-off-by: Maya Matuszczyk <maccraft123mc@xxxxxxxxx>
> ---

Looks mostly good. Just three things:

> [...]
> --- /dev/null
> +++ b/drivers/power/supply/rk817_charger.c
> @@ -0,0 +1,1151 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/*
> + * Charger Driver for Rockchip rk817
> + *
> + * Copyright (c) 2021

The Copyright line is incomplete.

> + *
> + * Authors: Maya Matuszczyk <maccraft123mc@xxxxxxxxx>
> + *	    Chris Morgan <macromorgan@xxxxxxxxxxx>
> + */
> +
> +#include <linux/mfd/rk808.h>
> +#include <linux/irq.h>
> +#include <linux/of_gpio.h>
> [...]

Why are you including of_gpio.h? You are not using any.

> +	INIT_DELAYED_WORK(&charger->work, rk817_charging_monitor);
> +	/* Get and populate the first set of values. */
> +	schedule_delayed_work(&charger->work, 0);
> [...]

what happens with the delayed work when you remove the driver?
Check for devm_delayed_work_autocancel().


-- Sebastian

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux