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新增 ...
Sometimes friends don't get along well. That doesn't mean that they no longer like each other. Most of the time, they will make up and go on being friends. Sometimes friends move away. Then we feel very sad. We miss them very much. But we call them and write t...
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...
//参数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...
```javascript this.context = input.context; this.node = this.context.createScriptProcessor(4096, 2, 2); this.node.onaudioprocess = function(e){ worker.postMessage({ command: 'record', buffer: [ e.inputBuffer.getChannelData(0), e.inputBuffer.getChannelData(1) ] }); } ``` ```...