[OpenWrt-Devel] [PATCH 2/2] ath79: add support for Fritz!Box 4020

John Crispin john at phrozen.org
Mon Aug 13 02:23:31 EDT 2018


Hi

this following chunk need to be annotated and sent upstream. also using 
initvals might not be the best option. please also check if there is a 
binding doc and add this new property.

     John
> diff --git a/target/linux/ath79/patches-4.14/005-gpio-74x164-add-initvals.patch b/target/linux/ath79/patches-4.14/005-gpio-74x164-add-initvals.patch
> new file mode 100644
> index 0000000000..d437ada3e0
> --- /dev/null
> +++ b/target/linux/ath79/patches-4.14/005-gpio-74x164-add-initvals.patch
> @@ -0,0 +1,12 @@
> +--- a/drivers/gpio/gpio-74x164.c
> ++++ b/drivers/gpio/gpio-74x164.c
> +@@ -151,6 +151,9 @@ static int gen_74x164_probe(struct spi_d
> + 	chip->gpio_chip.parent = &spi->dev;
> + 	chip->gpio_chip.owner = THIS_MODULE;
> +
> ++	of_property_read_u8_array(spi->dev.of_node, "initvals", chip->buffer,
> ++				  chip->registers);
> ++
> + 	mutex_init(&chip->lock);
> +
> + 	ret = __gen_74x164_write_config(chip);


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list