Re: Disable xhci_hcd USB 3.0 module

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 02:50:32PM -0200, Gustavo Duarte wrote: Hi Greg, The Notebook has physically 2 port USB 2.0 and one port USB 3.0. The manufacturer specs says that and the output of the command lsusb says the same: $ lsusb Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB

Re: Disable xhci_hcd USB 3.0 module

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 06:47:21PM -0200, Gustavo Duarte wrote: 00:14.0 USB controller: Intel Corporation ValleyView USB xHCI Host Controller (rev 0e) Subsystem: CLEVO/KAPOK Computer Device 5471 Kernel driver in use: xhci_hcd One host controller. Seems like here is happening you are

Re: Disable xhci_hcd USB 3.0 module

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 07:32:52PM -0200, Gustavo Duarte wrote: Greg, Thanks for confirm my thought. I tried with a kernel 3.16 builded by Ubuntu guys, http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16-utopic/linux-image-3.16.0-031600-generic_3.16.0-031600.201408031935_amd64.deb

Re: [PATCH v2 2/2] ATM: HE: Cleanup coding style (struct braces)

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 06:26:41PM -0600, Jonathan Jin wrote: Address checkpatch.pl complaints regarding proper struct brace placement Minor nit, why the extra spaces at the front of the line? And properly wrap your lines at 72 columns, like git should have told you to in the editor. thanks,

Re: [PATCH v2 0/2] ATM: HE: Cleanup coding style

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 06:26:39PM -0600, Jonathan Jin wrote: At Greg KH's advice, I've revised my previous formatting patch by splicing it into two separate patches in the same sequence. If I could get additional feedback, I'd very much appreciate it. This patch sequence cleans up the

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-14 Thread Greg KH
On Sun, Dec 14, 2014 at 09:18:54AM -0800, Mandeep Sandhu wrote: Have you asked the original author about this? There has to be some reason the patch was not accepted, right? Try asking them what happened No, because the email address recorded in the patch is no longer valid. If that's

Re: [PATCH] ATM: HE: Cleanup coding style

2014-12-14 Thread Greg KH
On Mon, Dec 15, 2014 at 04:23:18AM +, karthik nayak wrote: On Mon, Dec 15, 2014, 7:31 AM Greg KH g...@kroah.com wrote: On Sun, Dec 14, 2014 at 07:36:23PM -0600, Jonathan Jin wrote: This patch cleans up the following coding style issues that are detected by checkpatch

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-13 Thread Greg KH
On Fri, Dec 12, 2014 at 10:36:00PM -0800, Mandeep Sandhu wrote: On Fri, Dec 12, 2014 at 8:02 PM, Greg KH g...@kroah.com wrote: On Fri, Dec 12, 2014 at 02:29:22PM -0800, Mandeep Sandhu wrote: Thanks Greg! One more thing. Should the 'Tested-by:' tag be added in every commit manually

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-12 Thread Greg KH
On Fri, Dec 12, 2014 at 02:05:50PM -0800, Mandeep Sandhu wrote: How does one send this kind of summary email? Is it generated manually or through some git format-patch/send-email foo magic? I have 4 patches that I have to submit. I'd like to send a summary email (0/4) explaining the changes.

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-12 Thread Greg KH
On Fri, Dec 12, 2014 at 02:29:22PM -0800, Mandeep Sandhu wrote: Thanks Greg! One more thing. Should the 'Tested-by:' tag be added in every commit manually, or only one of them is enough (the last patch really implements the functionality and the rest are 'preparatory' commits)? Tested-by is

Re: module for particular device

2014-12-11 Thread Greg KH
On Thu, Dec 11, 2014 at 09:52:06PM +0530, p.rameshb...@globaledgesoft.com wrote: For Example, I have a device, I inserted it and it is working fine after I inserted, but I don't know what are all the modules are inserted for that particular device. So how can I check that one? The book,

Re: scheduler help

2014-12-08 Thread Greg KH
On Mon, Dec 08, 2014 at 03:12:24PM -0800, Anish Kumar wrote: I am sure you can get help in Linux mailing list as kernel newbies list would not be be able to answer this.I think there is specific scheduler mailing list. People do not answer other people's homework questions on public mailing

Re: Huge difference in build sizes

2014-12-02 Thread Greg KH
On Tue, Dec 02, 2014 at 02:38:27PM +0530, Raghavendra wrote: Hello all, I am using Ubuntu-12.04 which came with 3.2 kernel. Parallel to this, I've compiled and installed 3.12.1 kernel using the Ubuntu-3.2's configuration, and the compiler which came with the distro. I've noticed that

Re: Huge difference in build sizes

2014-12-02 Thread Greg KH
On Wed, Dec 03, 2014 at 09:26:34AM +0530, Raghavendra wrote: Hello Greg, Thank you for the reply. On Tuesday 02 December 2014 11:46 PM, Greg KH wrote: On Tue, Dec 02, 2014 at 02:38:27PM +0530, Raghavendra wrote: Hello all, I am using Ubuntu-12.04 which came with 3.2 kernel. Parallel

Re: The limit of kernel memory in 64bit system

2014-11-29 Thread Greg KH
On Sat, Nov 29, 2014 at 12:25:43AM +0900, J.Hwan Kim wrote: Hi, everyone As far as I know, the kernel memory limit is 1GB in 32bit system. Is it also applicable to 64bit system? What's the limit of kernel memory in 64bit system? There is no limit :) What do you really want to know this

Re: Userspace agent crash and kernel module

2014-11-21 Thread Greg KH
On Fri, Nov 21, 2014 at 12:55:46PM +0200, Kevin Wilson wrote: The thing is that crash of the daemon sometimes occur, from this reason or other. The question is how the kernel module will be aware of such userspace agent crash, in order to reset its state ? Sounds like a horrible design, and I

Re: from WHERE platform driver's probe is called?

2014-11-21 Thread Greg KH
On Fri, Nov 21, 2014 at 01:16:21PM +, Sunil Shahu wrote: Hello, I am looking into platform driver and devices and understood HOW platform driver's probe is called from kernel doc and following forum. http://comments.gmane.org/gmane.linux.kernel.kernelnewbies/37050 For further

Re: Devres

2014-11-21 Thread Greg KH
On Fri, Nov 21, 2014 at 03:21:57PM -0200, Raphael Philipe wrote: I have a device driver that requests a lot o memory regions with ioremap and request_mem_region. Today I came across devres. I would like to known your oppinion regarding it? If you don't know it, take a look here. 

Re: VLAN tagged packets received by application are corrupted

2014-11-21 Thread Greg KH
On Fri, Nov 21, 2014 at 06:20:01PM +0530, Amit Agarwal wrote: On 14-11-21 12:51:29, Anupam Kapoor wrote: most likely you offload enabled on your card, try disabling that to see if tcpdump does the right thing for you ethtool -k intf - does not show anything for vlan. More information:

Re: Why each time of kernel compilation must be done completely?

2014-11-19 Thread Greg KH
On Thu, Nov 20, 2014 at 10:05:04AM +0800, 秦弋戈 wrote: Hi, This problem has puzzled me for a long time. A normal C make file could parse the reliance and just regenerate the modified source file. But each time when I modified the kernel and recompile it, it does a complete compilation, no

Re: /drivers/staging/TODO doc and kernel tasks question

2014-10-22 Thread Greg KH
On Wed, Oct 22, 2014 at 10:05:30PM -0500, Jaime Arrocha wrote: Good day, The TODO document has the addresses of where to send a patch, but if you run get_maintainer.pl it gives me a different person to address it, gregkh for example. if you don't cc: me, the patch will not get merged, it's

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Greg KH
On Wed, Oct 08, 2014 at 04:39:17PM +0900, manty kuma wrote: Hi, I want a user process to be notified on device wakeup so that I can print some related information. Really? My device can wakeup thousands of times a second, what are you going to do with that type of information? Which

Re: Implementing a driver that listen to a GPIO

2014-10-02 Thread Greg KH
On Thu, Oct 02, 2014 at 10:03:15AM +0200, Luca Ellero wrote: Hi, I'm working on an ARM platform running Linux kernel 2.6.35. Wow, you do realize just how old and obsolete that is, right? Please upgrade to a new kernel version, you can not get any help from anyone in the community for something

Re: Why built-in modules slow down kernel boot?

2014-09-30 Thread Greg KH
On Tue, Sep 30, 2014 at 12:27:12PM +0200, Michele Curti wrote: Hi all, it's just a curiosity. Since the use of an initramfs doubles the kernel boot time I decided to play a little compiling as built-in the modules required to mount root (starting from a localmodconfig). Everything ok,

Re: console fonts

2014-09-20 Thread Greg KH
On Sat, Sep 20, 2014 at 09:47:10AM -0400, John de la Garza wrote: On Fri, Sep 19, 2014 at 08:12:23PM -0700, Greg KH wrote: the kernel EFI framebuffer driver is odd, and probably can not support your console fonts. I know mine can not, sorry. When the machine first starts loading

Re: console fonts

2014-09-19 Thread Greg KH
On Fri, Sep 19, 2014 at 10:16:52PM -0400, John de la Garza wrote: When I boot up I see the 12x22 fonts for a while then it switches to the tiny fonts default font about half way throught the boot process. My goal is to have the system running with the 12x22 fonts. I do not plan to run X.

Re: PCI error handlers in Linux

2014-09-16 Thread Greg KH
On Wed, Sep 17, 2014 at 02:04:04AM +0800, Alvin Abitria wrote: Hello, In my pci driver for a certain pci device, I implemented the pci error handler functions (error_detected, slot_reset methods, etc). I want to trigger a pci error for me to exercise those handlers and observe its

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-16 Thread Greg KH
On Tue, Sep 16, 2014 at 08:25:51PM -0400, Valdis Kletnieks wrote: In general, stand-alone patches to fix checkpatch whining are a Bad Idea(TM). snip And here's why checkpatch patches are a Good Idea(TM): - it teaches you how to set up your email client properly - it teaches you how to

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-16 Thread Greg KH
On Tue, Sep 16, 2014 at 11:42:18PM -0400, valdis.kletni...@vt.edu wrote: (And this sort of analysis is exactly *why* people need to apply their brains when looking at checkpatch output) No one has ever said that they shouldn't. Remember, I know _lots_ of kernel developers who started with

Re: any hint?

2014-09-15 Thread Greg KH
On Tue, Sep 16, 2014 at 10:04:27AM +0900, hdarwin wrote: Hi there. I'm playing kernel module development challenge. I read http://lxr.free-electrons.com/source/Documentation/CodingStyle and learn how to write right code. I am sure that there's no coding style error in following files.

Re: Can block driver kthread slow down blkid and other processes?

2014-09-14 Thread Greg KH
On Sun, Sep 14, 2014 at 09:53:03PM +0800, Alvin Abitria wrote: Hello Gurus, Try posting your code to the linux-fsde...@vger.kernel.org mailing list. The developers there should be able to help you out with these questions. thanks, greg k-h ___

Re: Makefile for a single source file

2014-09-13 Thread Greg KH
On Sat, Sep 13, 2014 at 05:34:11PM +0300, Kevin Wilson wrote: Hi, I have a single source file which I wrote, implementing a kernel module: helloworld.c In order to built it, I prepared the following Makefile: obj-m += helloworld.o all: make -C /lib/modules/$(shell uname -r)/build

Re: Page fault in kernel code

2014-09-09 Thread Greg KH
On Tue, Sep 09, 2014 at 06:53:55PM +0530, Manavendra Nath Manav wrote: While reading the book Essential Linux device drivers it says user mode code is allowed to page fault, however, whereas kernel mode code isn't. Why is it so? Why can't kernel mode code handle the page fault and reload the

Re: How to understand using interfaces layered over USB in this article?

2014-09-08 Thread Greg KH
On Mon, Sep 08, 2014 at 11:31:32AM +0800, lx wrote: hi all:       I read this article, but I can't understand this  section: Most USB device drivers should pass these tables to the USB subsystem as well as to the module management

Re: Better testing when patching divers/staging/ - howto?

2014-09-05 Thread Greg KH
On Fri, Sep 05, 2014 at 06:42:41PM +0200, Matthias Beyer wrote: Hi, I do big (cleanup) changes in drivers/staging/bcm/ Recently, I managed to piss off greg-kh by sending in a patch that broke the build[0]. After some time off, I want to re-start doing patches in this driver

Re: Better testing when patching divers/staging/ - howto?

2014-09-05 Thread Greg KH
On Fri, Sep 05, 2014 at 01:02:17PM -0700, Mandeep Sandhu wrote: Also do a faster make, with the -j option. Pass in 2x the number of CPU cores you have, so if you have 2 cores do: make -j4 to get a _much_ faster build. Isn't the usual wisdom to run as many jobs as the

Re: kbuild: kselftest error

2014-08-30 Thread Greg KH
On Sat, Aug 30, 2014 at 04:18:21AM -0500, Drew Fustini wrote: Hi - I noticed the kselftest target in the kernel Makefile and decided to try it out of curiosity: afustini@lappy486:~/dev/linux/lappy486/git/kernels/mainline$ sudo make kselftest Has anyone run kselftest successfully? Try

Re: quick help - linux Industrial IO Hardware Triggers

2014-08-20 Thread Greg KH
On Wed, Aug 20, 2014 at 11:33:26PM +0530, Sricharan Chalasani wrote: Hi List, Thanks in advance. In the existing IIO drivers (linux-3.16), my understanding is that Hardware Triggers are just used to copy sampled data from the ADC to the Kernel buffer. I think none of the hardware triggers

Re: fd type from number

2014-08-19 Thread Greg KH
On Tue, Aug 19, 2014 at 08:38:24AM -0700, Loris Degioanni wrote: (resending making sure this is not part of another thread) I'm looking for an efficient way to determine the type of an fd (file, socket...) given its number, from a kernel module. You don't have a number from within the

Re: Linux PCI driver.

2014-08-18 Thread Greg KH
On Mon, Aug 18, 2014 at 09:50:44AM +0200, testlaster wrote: Hey Guys Im writing a PCI driver in Linux ( Lubuntu ). Now its not an entire driver its really just a little program that will latch onto a space of ram and dump the entire content of the ram into a file. I have done this before

Re: Linux PCI driver.

2014-08-18 Thread Greg KH
On Mon, Aug 18, 2014 at 02:30:33PM +0200, testlaster wrote: Hi Greg Yes I have read the book and some of it does make sense to me. What doesnt make sense though is that my pci.h file that I have found /include/linux only has like 30 lines max? $ wc include/linux/pci.h 1832 7982 65670

Re: How to find the device address inside kernel

2014-08-15 Thread Greg KH
On Fri, Aug 15, 2014 at 05:54:19PM +0530, Ulka Vaze wrote: Hi, I want to find the device address of scsi generic /dev/sg2 inside kernel. Is there any way to find that ? Any pointers are appreciated. What exactly do you mean by device address? And from where are you trying to find this, and

Re: Strategies for accessing driver data from file operations!?

2014-08-13 Thread Greg KH
On Wed, Aug 13, 2014 at 09:46:51AM -0300, Daniel Hilst Selli wrote: One last question, supposing I need to create multiple /dev nodes, do I need to allocate one struct cdev for each major:minor pair (cdev_alloc(), cdev_init(), cdev_add())? No, you can allocate multiple minor numbers with a

Re: How to add x32 ABI support to PCI driver

2014-08-12 Thread Greg KH
On Mon, Aug 11, 2014 at 11:07:32PM -0700, Omkar Houddin wrote: Hello Greg, I working on a char device driver. It is mostly based on the the scull device driver in the LDD book. It controls a HBA sitting on the PCIe BUS. What type of Host Bus Adapter needs to be a char driver? What

Re: Strategies for accessing driver data from file operations!?

2014-08-12 Thread Greg KH
On Tue, Aug 12, 2014 at 10:47:20AM -0300, Daniel Hilst Selli wrote: I was writing an spi driver, and taking a look into spidev.c, I see the the author allocates a linked list to hold driver data instances. From open it iterates over the list comparing two dev_t fields, one from current

Re: Assorted newb questions

2014-08-12 Thread Greg KH
On Tue, Aug 12, 2014 at 02:13:13PM -0500, Jaret Flores wrote: 1) It seems like most of the material (outside of the kernel itself) corresponds to version 2.6. Why is this? Has nothing significant changed with the core structure of the kernel since then? Or is it just that no one has

Re: How to add x32 ABI support to PCI driver

2014-08-11 Thread Greg KH
On Mon, Aug 11, 2014 at 09:55:15PM -0700, Omkar Houddin wrote: Im trying to port the  PCI driver(supports only 32 bit) from 2.6.31 )o the latest kernel version using openSuse. Im doing it version by version. I was able to port it till 3.1 kernel version.  In the kernel 3.4 there is feature

Re: Linux filesystem configuration infrastructure

2014-08-04 Thread Greg KH
On Mon, Aug 04, 2014 at 10:20:35AM +0530, Sankar P wrote: Hi, I have a simple filesystem that I did for learning purpose https://github.com/psankar/simplefs Now, I would like to add a few settings to my filesystem (such as the number of blocks that should be allocated in an extent by

Re: /sys documentation

2014-07-31 Thread Greg KH
On Thu, Jul 31, 2014 at 01:59:54PM +0300, David kiarie wrote: Hi there, Is it possible I could get documentation for the information in /sys somewhere?I understand libudev reads from /sys and would like to have some good knowledge about /sys before I use libudev in an application. Look in

Re: question about kref API

2014-07-23 Thread 'Greg KH'
On Wed, Jul 23, 2014 at 05:33:19PM +, Jeff Haran wrote: Clearly there are potential performance benefits in not needing to take locks or mutexes when they are not necessary. Of course there are. But trust me, you need to use a lock here, as the document tries to explain, otherwise your

Re: question about kref API

2014-07-23 Thread 'Greg KH'
On Wed, Jul 23, 2014 at 05:55:50PM +, Jeff Haran wrote: -Original Message- From: 'Greg KH' [mailto:g...@kroah.com] Sent: Wednesday, July 23, 2014 10:48 AM To: Jeff Haran Cc: kernelnewbies@kernelnewbies.org Subject: Re: question about kref API On Wed, Jul 23, 2014 at 05

Re: printk or pr_level?

2014-07-23 Thread Greg KH
On Wed, Jul 23, 2014 at 02:45:05PM -0700, Arlie Stephens wrote: On Jul 23 2014, Kristofer Hallin wrote: 1. No. Depending on what subsystem your are printing logs from you should use different functions for logging. In the networking subsystem netdev_dbg is suitable and so on. Otherwise

Re: printk or pr_level?

2014-07-23 Thread Greg KH
On Wed, Jul 23, 2014 at 04:00:04PM -0700, Greg KH wrote: On Wed, Jul 23, 2014 at 02:45:05PM -0700, Arlie Stephens wrote: On Jul 23 2014, Kristofer Hallin wrote: 1. No. Depending on what subsystem your are printing logs from you should use different functions for logging

Re: Doubt Regarding Floating Point Arithmetic

2014-07-23 Thread Greg KH
On Thu, Jul 24, 2014 at 08:09:31AM +0530, me storage wrote: Can you please explain me one scenario that lets suppose  take calculator application in lower level it should interact with kernel code So here who is take care of Floating point calculations? The userspace program does the floating

Re: question about kref API

2014-07-22 Thread Greg KH
On Tue, Jul 22, 2014 at 05:25:03PM +, Jeff Haran wrote: -Original Message- From: Greg KH [mailto:g...@kroah.com] Sent: Monday, July 21, 2014 7:18 PM To: Jeff Haran Cc: kernelnewbies@kernelnewbies.org Subject: Re: question about kref API On Tue, Jul 22, 2014 at 12:27

Re: Doubt Regarding Floating Point Arithmetic

2014-07-22 Thread Greg KH
On Wed, Jul 23, 2014 at 08:45:54AM +0530, me storage wrote: Hi I am reading LDD .In that i didn't understand one point .In Chapter 2(Building and Running Modules) they mentioned that   Kernel code cannot do floating point arithmetic .My doubt is which code is used for floating point

Re: usb serial programming

2014-07-21 Thread Greg KH
On Mon, Jul 21, 2014 at 03:19:00AM +, Amadeus W.M. wrote: Not sure if this is the right venue for this question, please direct me to the right place if it's not. I have a C program that opens the serial port /dev/ttyS0 and sends commands (as strings) back and forth to a pan-tilt-zoom

Re: How to prevent a module from unloading when in used

2014-07-21 Thread Greg KH
On Mon, Jul 21, 2014 at 10:20:48AM +0530, Chetan Nanda wrote: On Mon, Jul 21, 2014 at 9:52 AM, Greg KH g...@kroah.com wrote: On Mon, Jul 21, 2014 at 09:09:02AM +0530, Chetan Nanda wrote: I try to debug the hang when unloading of driver. I am using kernel v3.10 and it hangs

Re: usb serial programming

2014-07-21 Thread Greg KH
On Mon, Jul 21, 2014 at 06:55:43PM +, Amadeus W.M. wrote: On Mon, 21 Jul 2014 11:18:28 -0700, Greg KH wrote: On Mon, Jul 21, 2014 at 03:19:00AM +, Amadeus W.M. wrote: Not sure if this is the right venue for this question, please direct me to the right place if it's not. I

Re: usb serial programming

2014-07-21 Thread Greg KH
On Mon, Jul 21, 2014 at 07:25:24PM +, Amadeus W.M. wrote: What is the: Bus 004 Device 008: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS device? That's my backup power supply. Should /dev/ttyUSB0 pop up when I plug the adapter into the usb port, even

Re: question about kref API

2014-07-21 Thread Greg KH
On Tue, Jul 22, 2014 at 12:27:20AM +, Jeff Haran wrote: Hi, I've been reading Documentation/kref.txt in order to understand the usage of this API. There is part of this documentation that I am having difficulty understanding and was hoping somebody on this list could clarify this. One

Re: How to prevent a module from unloading when in used

2014-07-17 Thread Greg KH
On Fri, Jul 18, 2014 at 09:43:48AM +0530, Chetan Nanda wrote: On Wed, Jul 16, 2014 at 9:51 PM, Greg KH g...@kroah.com wrote: On Wed, Jul 16, 2014 at 08:57:38PM +0530, Chetan Nanda wrote: On Wed, Jul 16, 2014 at 8:49 PM, Chetan Nanda chetanna...@gmail.com

Re: How to prevent a module from unloading when in used

2014-07-16 Thread Greg KH
On Wed, Jul 16, 2014 at 08:57:38PM +0530, Chetan Nanda wrote: On Wed, Jul 16, 2014 at 8:49 PM, Chetan Nanda chetanna...@gmail.com wrote: On Wed, Jul 16, 2014 at 6:39 PM, John de la Garza j...@jjdev.com wrote: On Wed, Jul 16, 2014 at 04:00:18PM +0530, Chetan Nanda

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Greg KH
On Fri, Jul 11, 2014 at 06:57:24PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:53 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. [] Anyway, try running this script

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Greg KH
On Sat, Jul 12, 2014 at 11:29:37AM -0700, Joe Perches wrote: On Sat, 2014-07-12 at 10:55 -0700, Greg KH wrote: Yes, the warnings are all due to line-length, but Joe, you shouldn't add a patch that causes more checkpatch warnings than before :) Yeah, that was intentional though

Re: linux-header files.

2014-07-12 Thread Greg KH
On Sat, Jul 12, 2014 at 09:59:09PM -0700, Anand Moon wrote: Hi All, I would like to know a procedure to extract linux-headers from linux src tree. make headers_install ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:46:52PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:39 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. ] drivers/staging/lustre/include/linux

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 07:01:14PM -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:46:52PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:39 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:57:24PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:53 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. [] Anyway, try running this script

Re: [PATCH] checkpatch: Remove unnecessary + after {8,8}

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 07:09:30PM -0700, Joe Perches wrote: There's a useless + use that needs to be removed as perl 5.20 emits a Useless use of greediness modifier '+' message each time it's hit. Reported-by: Greg KH gre...@linuxfoundation.org Signed-off-by: Joe Perches j...@perches.com

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:40:16PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:34 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily

Re: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64

2014-07-09 Thread Greg KH
On Wed, Jul 09, 2014 at 05:53:29PM +0530, Amit Agarwal wrote: Hi All, We are running a 32 bit application on RHEL6.3-64 bit OS with kernel version 2.6.32-279.el6.x86_64. Great. So ask them for support for this as you are paying for it, nothing that we can do about it here, in a community

Re: USB forceful removal

2014-07-08 Thread Greg KH
On Wed, Jul 09, 2014 at 12:13:28AM +0530, AYAN KUMAR HALDER wrote: Hi All, When a usb mass-storage is attached for the first time, it gets a device (/dev/sda). When it is mounted and the device is manually removed and then when it is attached again, it gets a different name ie /dev/sdb.

Re: USB file mmap

2014-07-07 Thread Greg KH
On Mon, Jul 07, 2014 at 07:30:07PM +0530, Jeshwanth Kumar N K wrote: Hello List, I am trying to understand mmap on files residing in USB flash, so can you please give a pointer from where I can start to understand this? I mean how it works, and which part in kernel takes care of it. That's a

Re: DMA over USB

2014-07-02 Thread Greg KH
On Wed, Jul 02, 2014 at 11:32:47AM +0530, Raghavendra wrote: On Wednesday 02 July 2014 11:02 AM, Greg KH wrote: On Tue, Jul 01, 2014 at 10:29:39PM -0700, Greg KH wrote: On Wed, Jul 02, 2014 at 10:40:21AM +0530, Raghavendra wrote: Hello, I have a query regarding DMA(Direct Memory Access

Re: DMA over USB

2014-07-02 Thread Greg KH
On Wed, Jul 02, 2014 at 11:39:36AM +0530, Raghavendra wrote: On Wednesday 02 July 2014 11:42 AM, Greg KH wrote: On Wed, Jul 02, 2014 at 11:32:47AM +0530, Raghavendra wrote: On Wednesday 02 July 2014 11:02 AM, Greg KH wrote: On Tue, Jul 01, 2014 at 10:29:39PM -0700, Greg KH wrote: On Wed, Jul

Re: DMA over USB

2014-07-01 Thread Greg KH
On Wed, Jul 02, 2014 at 10:40:21AM +0530, Raghavendra wrote: Hello, I have a query regarding DMA(Direct Memory Access) for the usb devices. The understanding of DMA actions over PCI is straight forward. PCI devices support bus mastering capability, such that the PCI devices could take

Re: DMA over USB

2014-07-01 Thread Greg KH
On Tue, Jul 01, 2014 at 10:29:39PM -0700, Greg KH wrote: On Wed, Jul 02, 2014 at 10:40:21AM +0530, Raghavendra wrote: Hello, I have a query regarding DMA(Direct Memory Access) for the usb devices. The understanding of DMA actions over PCI is straight forward. PCI devices support

Re: Usb block driver to store file

2014-06-25 Thread Greg KH
On Wed, Jun 25, 2014 at 12:12:57PM +0530, ravi ranjan Mishra wrote: HI, i want to transfer a file and store in flash of usb from my driver. Then use the built-in kernel driver that dos this. i have already done usb driver register with char but i want to store file from my driver. how

Re: issues dealing with kobjects

2014-06-20 Thread Greg KH
On Fri, Jun 20, 2014 at 11:31:03AM +0530, Raghavendra wrote: Hello all, I am facing a small issue dealing with kobjects. I am writing a simple i2c driver for which I would like to export a few sysfs attributes(files). Please don't, unless these attributes are something that all other i2c

Re: Unsuccessful transactions during usb enumeration

2014-06-18 Thread Greg KH
On Wed, Jun 18, 2014 at 06:26:23AM +, Ranjith T. C. wrote: Thanks for the reply. What exactly do you mean by this? What I meant is whether it could be could be an of the USB controller driver or the hardware? It could be both. Or a bad cable, or bad connection. Try putting some

Re: Unsuccessful transactions during usb enumeration

2014-06-18 Thread Greg KH
On Wed, Jun 18, 2014 at 12:22:33PM +0530, sanjeev sharma wrote: Hi Greg, In one of my imx6 based Board when I connect USB Disk first time everything work's ok and I can read/write content from USB Flash Driver but when I do eject and connect again I could see below continuous messages from

Re: Unsuccessful transactions during usb enumeration

2014-06-17 Thread Greg KH
On Wed, Jun 18, 2014 at 05:27:35AM +, Ranjith T. C. wrote: Hi, I am using a device with Marvel USB controller in device mode with Linux 2.6.22 running on it. You do realize just how old and obsolete that kernel version is, right? You are pretty much on your own here, unless you

Re: Fwd: Question about USB hotplug

2014-06-14 Thread Greg KH
On Sat, Jun 14, 2014 at 10:58:53AM +0800, Simon Guo wrote: Forward to USB mail alias for the USB question. Original post Subject: Question about USB hotplug Date: Sat, 14 Jun 2014 09:59:45 +0800 Sender: Simon Guo wei.guo.si...@gmail.com Receiver:

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: non-static init in a basic kernel module

2014-06-11 Thread Greg KH
On Mon, Jun 09, 2014 at 12:28:13AM -0700, Warren Turkal wrote: Hey, I was writing a basic hello world module. I am using Ubuntu, so I installed linux-headers package that corresponded to my kernel. It's strange because all of the examples that I saw (including from modules in the kernel

Re: spi_board_info and module automatic load

2014-06-10 Thread Greg KH
On Tue, Jun 10, 2014 at 03:57:27PM -0300, Daniel Hilst Selli wrote: I register a spi_board_info on my board-*.c file as this http://pastebin.com/nUGuvt71 Then create my module named mydevice.ko Is this enought to get the module loaded automatically or I'm missing something? I'm

Re: Patch submission issue

2014-06-10 Thread Greg KH
On Wed, Jun 11, 2014 at 07:23:08AM +0530, Raghavendra wrote: Hello, I am new to the kernel development community and I started off by fixing small coding style errors in the drivers/staging directory. I've created a patch for the same and sent it to the maintainer. The maintainer replied

Re: Adding a syscall to specific kernel version

2014-06-05 Thread Greg KH
On Thu, Jun 05, 2014 at 06:10:06PM +0530, Dipanjan Das wrote: Hi, I am trying to add a new syscall to kernel 3.4. So far I have tried at least four different tutorials from Internet. To my utter frustration, whatever source files they have referred in the tutorials, at least one of those

Re: How to test a syscall prior to compiling the kernel

2014-06-04 Thread Greg KH
On Wed, Jun 04, 2014 at 02:33:41PM -0400, Andev wrote: On Wed, Jun 4, 2014 at 1:56 PM, valdis.kletni...@vt.edu wrote: The trick to remember is that you probably don't want to use the ramdisk as the permanent host, so... 1) Setup your git tree on permanent storage 2) Set up your

Re: How to test a syscall prior to compiling the kernel

2014-06-04 Thread Greg KH
On Wed, Jun 04, 2014 at 03:02:02PM -0400, Andev wrote: On Wed, Jun 4, 2014 at 2:33 PM, Andev debian...@gmail.com wrote: On Wed, Jun 4, 2014 at 1:56 PM, valdis.kletni...@vt.edu wrote: The trick to remember is that you probably don't want to use the ramdisk as the permanent host, so...

Re: Information regarding Device Tree

2014-06-02 Thread Greg KH
On Tue, Jun 03, 2014 at 09:10:54AM +0530, JAYESH TANK wrote: Hi All,   I would like to write script to get Windows Device Manager like functionality to check all the devices present on my Linux machine. What all are the ways to get about this, is iterating sysfs is the way? Or is there any

Re: EXPORT_SYMBOL and rebinding functions

2014-06-02 Thread Greg KH
On Mon, Jun 02, 2014 at 08:29:16PM -0700, Peter Tosh wrote: Hey guys, I have a module which defines a specific print function, and another module that uses said function. From the first module I have used EXPORT_SYMBOL(function_1). From within the second module I would like to rebind that

Re: EXPORT_SYMBOL and rebinding functions

2014-06-02 Thread Greg KH
On Mon, Jun 02, 2014 at 09:19:41PM -0700, Peter Tosh wrote: Is this just a horrible idea in general? Can you give some kind of general explanation? Messing with symbol address is a horrible idea in general. Step back, what problem are you trying to solve that ended up with this type of

Re: How to call syscalls - SYSCALL or 0x80 interrupt

2014-06-02 Thread Greg KH
On Tue, Jun 03, 2014 at 09:45:33AM +0530, Dipanjan Das wrote: Hi, I came across this discussion in StackExchange. Does anyone have any idea on this? Yes, the code looks correct, the question asked is incorrect :) ___ Kernelnewbies mailing list

<    5   6   7   8   9   10   11   12   >