mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Fix bpi-r64 on 6.1 kernel
This commit is contained in:
parent
34aa6d03cd
commit
48a664ff20
126 changed files with 17222 additions and 2387 deletions
|
|
@ -0,0 +1,18 @@
|
|||
--- a/drivers/spi/spi-mt65xx.c
|
||||
+++ b/drivers/spi/spi-mt65xx.c
|
||||
@@ -1225,8 +1225,15 @@ static int mtk_spi_probe(struct platform
|
||||
if (ret < 0)
|
||||
return dev_err_probe(dev, ret, "failed to enable hclk\n");
|
||||
|
||||
+ ret = clk_prepare_enable(mdata->sel_clk);
|
||||
+ if (ret < 0) {
|
||||
+ clk_disable_unprepare(mdata->spi_hclk);
|
||||
+ return dev_err_probe(dev, ret, "failed to enable sel_clk\n");
|
||||
+ }
|
||||
+
|
||||
ret = clk_prepare_enable(mdata->spi_clk);
|
||||
if (ret < 0) {
|
||||
+ clk_disable_unprepare(mdata->sel_clk);
|
||||
clk_disable_unprepare(mdata->spi_hclk);
|
||||
return dev_err_probe(dev, ret, "failed to enable spi_clk\n");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue