Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'gpio-fixes-for-v6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull gpio fixes from Bartosz Golaszewski:

- fix clock handle leak in probe() error path in gpio-aspeed

- add a dummy register read to ensure the write actually completed

* tag 'gpio-fixes-for-v6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
gpio: aspeed: Use devm_clk api to manage clock source
gpio: aspeed: Add the flush write to ensure the write complete.

+3 -1
+3 -1
drivers/gpio/gpio-aspeed.c
··· 406 406 gpio->dcache[GPIO_BANK(offset)] = reg; 407 407 408 408 iowrite32(reg, addr); 409 + /* Flush write */ 410 + ioread32(addr); 409 411 } 410 412 411 413 static void aspeed_gpio_set(struct gpio_chip *gc, unsigned int offset, ··· 1193 1191 if (!gpio_id) 1194 1192 return -EINVAL; 1195 1193 1196 - gpio->clk = of_clk_get(pdev->dev.of_node, 0); 1194 + gpio->clk = devm_clk_get_enabled(&pdev->dev, NULL); 1197 1195 if (IS_ERR(gpio->clk)) { 1198 1196 dev_warn(&pdev->dev, 1199 1197 "Failed to get clock from devicetree, debouncing disabled\n");