[linux-yocto][PATCH v5.10/standard/base 1/1] gpio: gpio-altera: Add missing of_node_put() in altera_gpio_probe

2024-01-17 Thread jason.lau via lists.yoctoproject.org
Fix following error:

OF: ERROR: memory leak, expected refcount 1 instead of 2,
of_node_get()/of_node_put() unbalanced - destroy cset entry: attach
overlay node /soc/gpio@df020180

After finishing using device node got from of_mm_gpiochip_add_data(),
of_node_put() needs to be called. The refcount would be incremented in
of_mm_gpiochip_add_data.

Fixes: 5d07a692f9562 (gpio: gpiolib-of: Fix refcount bugs in 
of_mm_gpiochip_add_data())

Signed-off-by: Haitao Liu 
---
 drivers/gpio/gpio-altera.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpio/gpio-altera.c b/drivers/gpio/gpio-altera.c
index b7932ecc3b61..b78b05a18e61 100644
--- a/drivers/gpio/gpio-altera.c
+++ b/drivers/gpio/gpio-altera.c
@@ -308,6 +308,8 @@ static int altera_gpio_probe(struct platform_device *pdev)
return ret;
}
 
+   of_node_put(node);
+
platform_set_drvdata(pdev, altera_gc);
 
return 0;
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13493): 
https://lists.yoctoproject.org/g/linux-yocto/message/13493
Mute This Topic: https://lists.yoctoproject.org/mt/103804025/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] [yocto-kernel-cache][yocto-6.1][PATCH] bsp: xilinx-versal: enable USB_CONFIGFS option for USB device mode

2024-01-17 Thread quanyang.wang via lists.yoctoproject.org
From: Quanyang Wang 

These kernel options are enabled to test USB device mode for
VMK180/VCK190.

Signed-off-by: Quanyang Wang 
---
Hi Bruce,
Would you please help merge this patch to the branch:
yocto-6.1
Thanks,
Quanyang
---
 bsp/xilinx-versal/xilinx-versal.cfg | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bsp/xilinx-versal/xilinx-versal.cfg 
b/bsp/xilinx-versal/xilinx-versal.cfg
index 2b0473ae55..d329fc89fb 100644
--- a/bsp/xilinx-versal/xilinx-versal.cfg
+++ b/bsp/xilinx-versal/xilinx-versal.cfg
@@ -74,6 +74,8 @@ CONFIG_USB_OTG_FSM=m
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_XILINX=y
 CONFIG_USB_ULPI_BUS=y
+CONFIG_USB_CONFIGFS=y
+CONFIG_USB_CONFIGFS_MASS_STORAGE=y
 
 CONFIG_MMC=y
 CONFIG_MMC_BLOCK=y
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13492): 
https://lists.yoctoproject.org/g/linux-yocto/message/13492
Mute This Topic: https://lists.yoctoproject.org/mt/103801675/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-