lkml.org 
[lkml]   [2013]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subject[Query] Using DMA API's with struct dev created from device_create
Hi,

In cases where the BUS interface is system fabric itself,
where no probing is required, so kernel doesn't provide the
"dev" pointer (unlike USB and PCI). The driver is a wireless
driver based on mac80211.

So we used device_create to device, which is passed to
set_wiphy_dev, it works fine.

But when we pass the same device to dma_map_single it
is causing a system panic and reboot (no call stack), instead
if i pass NULL it works just fine.

How do we deal with "struct dev" in such cases?

--
Thanks,
Regards,
Chaitanya T K.
P.S. Please CC me to the replies.


\
 
 \ /
  Last update: 2013-11-07 10:01    [W:0.053 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site