disable:自动禁用时钟。在enable_lock持有情况下调用,该函数必须不能睡眠。 is_enabled:查询硬件以确定时钟是否开启。这个函数不能休眠。如果此操作不是设置,则enable计数将被使用,该函数可选。 disable_unused:自动禁用时钟。只从clk_disable_unused调用用于特殊需要的gate时钟。在enable_lock持有的情况下调用,这个函数...
We're using an i.MX8M Mini EVK based board with UART4(ttymxc3) as the console. However, the boot process gets stuck on the call to clk_disable_unused where the kernel tries to disable clocks set up by U-Boot that it deems unnecessary. With some printk debugging...
int (*is_prepared)(struct clk_hw *hw); void (*unprepare_unused)(struct clk_hw *hw); int (*enable)(struct clk_hw *hw); void (*disable)(struct clk_hw *hw); int (*is_enabled)(struct clk_hw *hw); void (*disable_unused)(struct clk_hw *hw); unsigned long (*recalc_rate)(stru...
void(*clk_deny_idle)(struct clk *clk); void(*clk_disable_unused)(struct clk *clk); #ifdef CONFIG_CPU_FREQ void(*clk_init_cpufreq_table)(struct cpufreq_frequency_table **); #endif };
My lilac typically fails to boot Android 10 due to a race condition between UFS initialization andclk_disable_unused(). This race causes one of the UFS clocks to get disabled halfway through waiting for the flash to come up, so none of the sda* block devices ever appear and the system ...
void (*disable)(struct clk_hw *hw); int (*is_enabled)(struct clk_hw *hw); void (*disable_unused)(struct clk_hw *hw); unsigned long (*recalc_rate)(struct clk_hw *hw, unsigned long parent_rate); long (*round_rate)(struct clk_hw *hw, ...
[ 1.967724] clk_disable_unused_subtree+0x2c/0xfc [ 1.972410] clk_disable_unused+0x64/0x148 [ 1.977097] do_one_initcall+0x6c/0x1fc [ 1.981088] kernel_init_freeable+0x204/0x2e4 [ 1.984823] kernel_init+0x28/0x1e0 [ 1.989336] ret_from_fork+0x10/0x�[ 2.000247] Freeing unused kernel...
(CLK_SWITCHMODE_AUTO, CLK_SOURCE_HSI, DISABLE, CLK_CURRENTCLOCKSTATE_DISABLE); 22 23 // Connect...LSI to COO pin , CLK_CCO--PE0 24 GPIO_Init(GPIOE, GPIO_...
P1DIR = 0xFF; // Unused pins as outputs P2OUT = 0; P2DIR = 0xFF; P2OUT |= BIT7; // DOCKING Enable,Port 2.7 P1OUT &= ~BIT0; // Reset RFID } void Setup_USI_Slave(void) { USICTL0 = USIPE6 + USIPE7 + USISWRST; // Port & USI mode setup ...
我不清楚的是,新API的clk_prepare/unprepare,的使用是对clk_enable/disable API的补充。另外,虽然API的clk_enable/disable可以从原子上下文中调用,但这并不适用于clk_prepare/unprepare (可以休眠)。为什么会有这种功能和行为的分离? 浏览0提问于2013-06-23得票数 5 回答已采纳...