intextcon_set_state(structextcon_dev *edev, unsignedintid,boolstate);--设置状态但不sync。intextcon_set_state_sync(structextcon_dev *edev, unsignedintid,boolstate);--设置状态并sync。 extcon_set_state_sync()设置一个exton的状态,并通过uevent通知用户空间: extcon_set_state_sync ->is_extcon_chan...
/** * extcon_set_state_sync() - Set the state of an external connector with sync.* @edev: the extcon device * @id: the unique id indicating an external connector * @state: the new state of external connector.* the default semantics is true: attached / false: detached....
主要初始化和CPU紧密相关的内容,如时钟、复位、电源、extcon(用于USB模式切换),另一个在synopsys提供的驱动中初始化,位于drivers/usb/dwc3/core.c文件中,这部分和USB3.0控制器密切相关,如USB3.0控制器内部寄存器地址、USB3.0的PHY、中断等。
主要初始化和CPU紧密相关的内容,如时钟、复位、电源、extcon(用于USB模式切换),另一个在synopsys提供的驱动中初始化,位于drivers/usb/dwc3/core.c文件中,这部分和USB3.0控制器密切相关,如USB3.0控制器内部寄存器地址、USB3.0的PHY、中断等。
注册主机的extcon通知回调函数// 若存在extcon或dr_mode为USB_DR_MODE_OTG,则进行电源相关设置pm_runtime_set_autosuspend_delay// 设置autosuspend的延迟时间为500毫秒pm_runtime_allow// 开启动态电源管理pm_runtime_suspend// 进入suspend状态// 调度otg_work工作队列,执行函数为dwc3_rockchip_otg_extcon_evt_...
/ extcon.h Latest commit chanwoochoiand kishon extcon: Block the bit masking operation for cable state except for ex…Sep 10, 2016 84c48dc· Sep 10, 2016 HistoryHistory Breadcrumbs mptcp_net-next /include /linux / extcon.hTop File metadata and controls Code Blame 293 lin...
CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y # CONFIG_KCMP is not set # CONFIG_RSEQ is not set # CONFIG_CACHESTAT_SYSCALL is not set CONFIG_HAVE_PERF_EVENTS=y # CONFIG_PC104 is not set # # Kernel Performance Events And Counters # CONFIG_PERF_EVENTS=y # CONFIG_DEBUG_PERF_...
However, certain settings must be configured in therootfs’s boot-up framework to set default configuration after the boot or some of the core functionalities will not run as expected. For example: Thenv.shandnvfb.shboot-up scripts do some platform-specific configuration i...
_work_sync(&hba->clk_gating.gate_work); spin_lock_irqsave(hba->host->host_lock, flags); if (hba->clk_gating.state == CLKS_ON) { spin_unlock_irqrestore(hba->host->host_lock, flags); return; } spin_unlock_irqrestore(hba->host->host_lock, flags); ufshcd_hba_vreg_set_hpm(hba)...
However, certain settings must be configured in the rootfs’s boot-up framework to set default configuration after boot, or some of the core functionalities will not run as expected. For example: Thenv.shandnvfb.shboot-up scripts do some platform-specific configuration in...