Cannot use USB device after compiling new kernel.

2014-04-09 Thread HABI S RAVI
I am using 3.14.0 kernel version.

I compiled using localmodconfig.

I am using Ubuntu in my Lenovo U410 Ultrabook. I can use USB mouse,
keyboard, pendrives with the distro kernel 3.11.0-18-generic.

I can use USB mouse in distro kernel, but cannot use the same in compiled
kernel. I can plug in new pendrive in distro kernel and are automatically
mounted. But i cannot mount pendrive in new kernel. The same occurs for USB
keyboard. But i can mount Nexus 7 in both kernel.

Here is the output of dmesg and lsusb.

habisravi@U410:~$ dmesg tail
[  866.156540] audit: type=1400 audit(1397006611.192:33): apparmor=DENIED
operation=capable profile=/usr/sbin/cupsd pid=1113 comm=cupsd
capability=36  capname=block_suspend
[  869.326789] usb 3-2: new low-speed USB device number 13 using xhci_hcd
[  869.515935] usb 3-2: New USB device found, idVendor=1bcf, idProduct=0007
[  869.515949] usb 3-2: New USB device strings: Mfr=0, Product=2,
SerialNumber=0
[  869.515951] usb 3-2: Product: USB Optical Mouse
[  869.516121] usb 3-2: ep 0x81 - rounding interval to 64 microframes, ep
desc says 80 microframes
habisravi@U410:~$

habisravi@U410:~$ lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 013: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical
Mouse
Bus 003 Device 003: ID 04f2:b2e1 Chicony Electronics Co., Ltd
Bus 003 Device 004: ID 0cf3:3004 Atheros Communications, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
habisravi@U410:~$
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


USB device not mounting

2014-04-08 Thread HABI S RAVI
Hi,
I compiled Linux kernel from the source tree and booted from it. I used the
config from my distribution. After booting, I can mount only those USB
devices that i have mounted with the distribution kernel. I cannot mount
new USB devices.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Code Style issue

2014-04-04 Thread HABI S RAVI
Hi,
I am trying to fix a coding issue . I get the following warning when my
module is checked with checkpatch.pl.
How can i remove the warning. I see a lot of drivers using printk()
function.

$ perl ~/linux-stable/scripts/checkpatch.pl -f hello.c
WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then
pr_debug(...  to printk(KERN_DEBUG ...
#6: FILE: hello.c:6:
+   printk(KERN_DEBUG Hello World!\n);

WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then
pr_debug(...  to printk(KERN_DEBUG ...
#12: FILE: hello.c:12:
+   printk(KERN_DEBUG hello module unloaded\n);
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies