ret = clk_prepare_enable(cclk);if(ret) { dev_err(dev,"cannot enable core clock\n");returnret; } ret = clk_prepare_enable(iclk);if(ret) {clk_disable_unprepare(cclk); dev_err(dev,"cannot enable iface clock\n");returnret; } master = spi_alloc_master(dev,sizeof(struct spi_qup)...
一是告诉底层的CLOCK Driver,需把可能引起睡眠的操作,放到Prepare()/Unprepare()中实现,一定不能放到Enable()/Disable()中; 二是提醒上层使用CLOCK的Driver,调用Prepare/Unprepare 接口时可能会睡眠,千万不能在Atomic上下文(例如内部包含Mutex 锁、中断关闭、Spinlock 锁保护的区域)调用,而调用Enable()/Disable()接口则...
int __must_check clk_bulk_prepare(int num_clks, const struct clk_bulk_data *clks); #else static inline int clk_prepare(struct clk *clk) { might_sleep(); return 0; } static inline int __must_check clk_bulk_prepare(int num_clks, const struct clk_bulk_data *clks) ...
dev_err(dev,"ssusb vreg enable failed\n");gotodisable_ss_vdd; } phy->ldo_clk =devm_clk_get(dev,"ldo_clk");if(!IS_ERR(phy->ldo_clk)) clk_prepare_enable(phy->ldo_clk); platform_set_drvdata(pdev, phy);if(of_property_read_bool(dev->of_node,"qcom,vbus-valid-override")) phy...
Development version of the Upstream MultiPath TCP Linux kernel 🐧 - Merge branches 'clk-kunit', 'clk-mediatek', 'clk-cleanup' and 'clk-bi… · multipath-tcp/mptcp_net-next@a2b8802
/ include / linux / clk.h v6 v6.13 v6.13.1 v6.13 v6.13-rc7 v6.13-rc6 v6.13-rc5 v6.13-rc4 v6.13-rc3 v6.13-rc2 v6.13-rc1 v6.12 v6.11 v6.10 v6.9 v6.8 v6.7 v6.6 v6.5 v6.4 v6.3 v6.2 v6.1 v6.0 v5 v4
Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} tim-seoss / u-boot-at91 Public forked from south-coast-science/u-boot-at91 Notifications You must be signed in to change notification settings Fork 0 ...
int clk_prepare(struct clk *clk); int __must_check clk_bulk_prepare(int num_clks, const struct clk_bulk_data *clks); #else static inline int clk_prepare(struct clk *clk) { might_sleep(); return 0; } static inline int __must_check clk_bulk_prepare(int...