Disabling a BH : spin_lock_bh or local_bh_disable.

2014-06-13 Thread priyaranjan
Hi All, I was referring to Unreliable Guide To Locking by Paul Rusty Russell. Here is a quote below :- If a bottom half shares data with user context, you have two problems. Firstly, the current user context can be interrupted by a bottom half, and secondly, the critical region could be

Unable to access mounted sd card partition on resume from hibernate

2014-06-13 Thread AYAN KUMAR HALDER
Hi All, I am working on a ARM based custom platform which has a mmc controller (by Designware.) The mmc controller driver is dw-mmc.c. On kernel bootup, I insert the driver and then I mount the mmc device on /mnt. I am able to perform file-system operation(ls, cp, mv, rm) on /mnt. Then without

RE: why a static function is in kernel symbol table

2014-06-13 Thread Ji
Thank you very much for replying. I actually notice that there are many static functions in that file. However, some of them show up in symbol table, the rest do not. So what you are saying is that there is no connection between being a static function and showing up in kernel symbol table.

USB Device Driver

2014-06-13 Thread Vlad Ungureanu
Hello, During Google Summer of Code we are developing an USB Device Driver for an Android phone. Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*. I looked a bit over the Internet to find a recent example of USB Device Drivers but

Re: Eudyptula Challenge Task 01

2014-06-13 Thread Bjørn Mork
Jeff Haran jeff.ha...@citrix.com writes: Unless you happened to be consigned to using Outlook because your employer's IT is all MS, through which it is impossible to send a plain text email without it getting munged one way or another. emacs runs fine on Windows too, so using Gnus is always

Re: Disabling a BH : spin_lock_bh or local_bh_disable.

2014-06-13 Thread Pranay Srivastava
On Fri, Jun 13, 2014 at 12:27 PM, priyaranjan priyaranjan45...@gmail.com wrote: Hi All, I was referring to Unreliable Guide To Locking by Paul Rusty Russell. Here is a quote below :- If a bottom half shares data with user context, you have two problems. Firstly, the current user context

Re: USB Device Driver

2014-06-13 Thread AYAN KUMAR HALDER
On Fri, Jun 13, 2014 at 1:24 PM, Vlad Ungureanu v...@vdev.ro wrote: Hello, During Google Summer of Code we are developing an USB Device Driver for an Android phone. Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*. I looked a

Re: SOC: Zedboard: Driver question

2014-06-13 Thread Josh Cartwright
On Thu, Jun 12, 2014 at 04:39:25PM +0300, amit mehta wrote: We are working on a school project in which we are trying to develop a audio mixer on Zedboard (Development board from Digilent). We have developed the IP and have integrated it with the overall hardware using Programmable logic. This

Re: Unable to access mounted sd card partition on resume from hibernate

2014-06-13 Thread Valdis . Kletnieks
On Fri, 13 Jun 2014 12:37:18 +0530, AYAN KUMAR HALDER said: [ 201.509858] FAT-fs (mmcblk0): Directory bread(block 32768) failed That smells suspiciously like the driver failing to properly re-init the card when powering back up from a resume pgp6v0QjC8CWI.pgp Description: PGP signature

Re: USB Device Driver

2014-06-13 Thread Greg KH
On Fri, Jun 13, 2014 at 09:54:17AM +0200, Vlad Ungureanu wrote: Hello, During Google Summer of Code we are developing an USB Device Driver for an Android phone. That's great, which project is doing this? What type of USB driver are you needing to create? A gadget or a normal driver? What

Re: USB Device Driver

2014-06-13 Thread Vlad Ungureanu
Hello Greg, I was rushing into posting the mail here, just finished writing up a small driver that switches my phone into ADK mode. The project is http://blog.praveenkumar.co.in/2014/05/gsoc-14-proposal-for-beagleorg.html . The skel helped me in the end. We are trying to develop this driver for

Re: Unable to access mounted sd card partition on resume from hibernate

2014-06-13 Thread AYAN KUMAR HALDER
On Fri, Jun 13, 2014 at 7:22 PM, valdis.kletni...@vt.edu wrote: On Fri, 13 Jun 2014 12:37:18 +0530, AYAN KUMAR HALDER said: [ 201.509858] FAT-fs (mmcblk0): Directory bread(block 32768) failed That smells suspiciously like the driver failing to properly re-init the card when powering back

Question about USB hotplug

2014-06-13 Thread Simon Guo
Hi, dear list, I want to be clear about the USB hotplug procedure. I read Linux Device Driver and Documentation/usb/hotplug.txt, and google much. Per my understanding, the USB hotplug works as following: 1) Insertion of physical U-disk will trigger a hardware interrupt. And interrupt handler

Re: why a static function is in kernel symbol table

2014-06-13 Thread Ji Li
I think I found the cause. After GCC optimization, those static functions are not visible any more in the object file (not sure because of function inlining?). Thus, they don't show up in vmlinux or /proc/kallsyms. I tried changing it to -O0, they all show up. Thanks, Ji On Fri, Jun 13, 2014 at