cpu_ptr = dmam_alloc_coherent(m->dev->dev, size, &dma_handle, GFP_KERNEL); if (!cpu_ptr) return -ENOMEM;

platform_set_drvdata(pdev, m); return 0;

/* longer processing here; top half already acknowledged the IRQ */ mutex_lock(&m->lock); /* handle event, schedule work, update state */ mutex_unlock(&m->lock); return IRQ_HANDLED;

struct msm_dev *m; struct resource *res; int ret;

Updates, No Noise
Updates, No Noise
Updates, No Noise
Stay in the Loop
Updates, No Noise
Moments and insights — shared with care.

Discover more from Owrbit

Subscribe now to keep reading and get access to the full archive.

Continue reading