13 changes: 4 additions & 9 deletions 13 drivers/of/irq.c Original file line numberDiff line numberDiff line change @@ -26,11 +26,6 @@ #include <linux/string.h> #include <linux/slab.h>/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ #ifndef ...
staticintmeson_uart_probe(struct platform_device *pdev){structresource*res_mem, *res_irq;structuart_port*port;structclk*clk;intret =0;if(pdev->dev.of_node) pdev->id =of_alias_get_id(pdev->dev.of_node,"serial");if(pdev->id <0|| pdev->id >= AML_UART_PORT_NUM)return-EINVAL...
staticinlineintmscan_get_config(unsignedlong*addr,unsignedint*irq){/* Use Open Firmware device tree */structdevice_node*np=NULL;unsignedinti;intret;for(i =0; i < RTCAN_MSCAN_DEVS; i++) {structresourcer[2] = {}; np = of_find_compatible_node(np,NULL,"fsl,mpc5200-mscan");if(np ...
of_property_read_bool 的用法 比如drivers\of\address.c中 的: bool of_dma_is_coherent(struct device_node *np) { struct device_node *node; if (IS_ENABLED(CONFIG_OF_DMA_DEFAULT_COHERENT)) return true; node = of_node_get(np); while (node) { if (of_property_read_bool(node, "dma-coh...
irq_force_manage 老版本社区内核默认是不允许用户态修改中断亲和性的,完全交给内核来管理,我们默认修改了该行为,使得用户态默认可以修改中断亲和性,当irq_force_manage添加时,回到内核默认行为,即不想允许用户态修改中断亲和性。 sysctl/proc新增&隔离 proc新增 ...
aHas been reported that erasing IRQ from RTC breaks sleep under snow leopard 10.6.0 and 10.6.1, on 10.6.2 doesn´t breaks sleep. 被报告删掉IRQ从RTC断裂睡觉在雪豹10.6.0和10.6.1之下,关于10.6.2 doesn´t断裂睡觉。[translate] aRefunel Refunnel[translate] ...
To fly a kite,stand so that your back is to the wind.Hold(抓住)the string(绳子)near the kite with one hand.Hold the kite over your head with the(3)②___hand.Then fly the kite into the air.Hold the string so that the kite can not get away.Then let...
根据He explained that a broken wing will get well by...可知受伤的翅膀能够自己康复,因此反身代词用itself代指翅膀。故选:B。(10)C。考查动词。A.prepare准备;B.look看;C.wait等待;D.ask询问。根据So I had to...for the moment that he can recover silently,可知句中包含...
//参数type用来表明需要哪个slot,driver能够使用的slot一般是KM_USER0和KM_USR1(如果是在user space的系统调用),以及KM_IRQ0和KM_IRQ1(interrupt handler)。//调用atomic的driver code必须是atomic的,不能sleep。void*kmap_atomic(structpage *page,enumkm_type type);voidkunmap_atomic(void*addr,enumkm_type ...
…probe() The platform_get_irq might be failed and return a negative result. So there should have an error handling code. Fixed this by adding an error handling code. Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com> Link: https://lore.kernel.org/r/tencent_8E383752B54E5BF860711...