<div>Hi Dave,</div>
<div> </div>
<div> </div>
<div>>Maybe try calling might_sleep() instead.</div>
<div>>> Dont know why, might_sleep() is not helping. i put might_sleep in between spin_lock & spin_unlock, it did not work. msleep worked.</div>
<div>>> i found the issue though, as you said they called preempt_disable and forgot to enable it.</div>
<div>>> Thanks for the response.<br><br></div>
<div class="gmail_quote">On Wed, Aug 31, 2011 at 10:53 AM, Dave Hylands <span dir="ltr"><<a href="mailto:dhylands@gmail.com">dhylands@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi sandeep,<br>
<div class="im"><br>On Tue, Aug 30, 2011 at 8:40 AM, sandeep kumar<br><<a href="mailto:coolsandyforyou@gmail.com">coolsandyforyou@gmail.com</a>> wrote:<br>> Hi Dave,<br>>>>Maybe the device that was added before this one entered the atomic<br>
>>>context and forgot to leave it.<br>>>>>>by this you mean to say that, the earlier device which was created, in<br>>>>>> its probe...<br>> it took some spin_lock and forgot to release the lock?<br>
><br>><br>>>>You said that you called in_atomic() from msm_bus_fabric_probe and<br>>>>that it returned zero. Did you do this immediately before the<br>>>>mutex_lock call that's complaining?<br>
>>>>> yes,i tested the in_atomic() just before the call of clk_get() which<br>>>>>> inturn<br>> calls clk_sys_get() which takes the mutex_lock().<br><br></div>Maybe try calling might_sleep() instead.<br>
<div class="im"><br>> My another qn is..<br>> The message"BUG: sleepin func called ....." is a warning message. it is not<br>> called by BUG handler.<br>> So can i neglect it? i mean it is coming only once while in the probe,<br>
> shall this<br>> lead to lock up s in future??<br><br></div>It's hard to say. It means that there is a bug somewhere. How<br>significant it is depends on exactly what the bug is.<br><font color="#888888"><br>
--<br></font>
<div>
<div></div>
<div class="h5">Dave Hylands<br>Shuswap, BC, Canada<br><a href="http://www.davehylands.com/" target="_blank">http://www.davehylands.com</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>With regards,<br>
Sandeep Kumar Anantapalli,<br><br>