Re: [PATCH v3 1/2] iio:light: Add Dyna-Image AP3223 ambient light and proximity driver

2015-10-03 Thread Jonathan Cameron
On 30/09/15 02:36, Suresh Rajashekara wrote: > Minimal implementation with support for raw light and proximity reading. > > This is based on the driver provided by the vendor > (which was an input driver). Authors of the > driver from the vendor included > * John Huang > * Templeton Tsai > *

Re: Linux 4.2.3

2015-10-03 Thread Greg KH
diff --git a/Documentation/devicetree/bindings/net/ethernet.txt b/Documentation/devicetree/bindings/net/ethernet.txt index 41b3f3f864e8..5d88f37480b6 100644 --- a/Documentation/devicetree/bindings/net/ethernet.txt +++ b/Documentation/devicetree/bindings/net/ethernet.txt @@ -25,7 +25,11 @@ The

Linux 4.2.3

2015-10-03 Thread Greg KH
I'm announcing the release of the 4.2.3 kernel. All users of the 4.2 kernel series must upgrade. The updated 4.2.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.2.y and can be browsed at the normal kernel.org git web browser:

Linux 4.1.10

2015-10-03 Thread Greg KH
I'm announcing the release of the 4.1.10 kernel. All users of the 4.1 kernel series must upgrade. The updated 4.1.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.1.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.1.10

2015-10-03 Thread Greg KH
diff --git a/Documentation/devicetree/bindings/net/ethernet.txt b/Documentation/devicetree/bindings/net/ethernet.txt index 41b3f3f864e8..5d88f37480b6 100644 --- a/Documentation/devicetree/bindings/net/ethernet.txt +++ b/Documentation/devicetree/bindings/net/ethernet.txt @@ -25,7 +25,11 @@ The

Re: 4.2.2: NR_CPUS effectively being 1 bug

2015-10-03 Thread Mike Galbraith
On Sat, 2015-10-03 at 10:52 +0200, Ingo Molnar wrote: > * Mike Galbraith wrote: > > > On Sat, 2015-10-03 at 10:18 +0200, Ingo Molnar wrote: > > > * Mike Galbraith wrote: > > > > > > > On Sat, 2015-10-03 at 09:38 +0200, Ingo Molnar wrote: > > > > > * Peter Zijlstra wrote: > > > > > > > > > >

Re: [PATCH] ver_linux: module-init-tools.patch

2015-10-03 Thread Alexander Kapshuk
On Sat, Oct 3, 2015 at 2:14 AM, Jim Davis wrote: > On Fri, Oct 2, 2015 at 1:57 PM, Alexander Kapshuk > wrote: >> On Fri, Oct 2, 2015 at 11:22 PM, Alexander Kapshuk >> wrote: >>> On Fri, Oct 2, 2015 at 10:45 PM, Jim Davis wrote: On Fri, Oct 2, 2015 at 12:35 PM, Jim Davis wrote: > On

Re: 4.2.2: NR_CPUS effectively being 1 bug

2015-10-03 Thread Alexey Dobriyan
On Sat, Oct 03, 2015 at 10:15:48AM +0200, Mike Galbraith wrote: > On Sat, 2015-10-03 at 09:38 +0200, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > > > On Fri, Oct 02, 2015 at 02:00:33PM -0700, Andrew Morton wrote: > > > > On Fri, 2 Oct 2015 23:46:59 +0300 Alexey Dobriyan > > > > wrote:

Re: [PATCH v4 01/26] ARM: pxa: magician: Fix indentation in machine files

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:09 +0200 schrieb Petr Cvek: > This patch fixes the indentation for the HTC Magician machine > definition. > > Signed-off-by: Petr Cvek Acked-by: Philipp Zabel I still think these are a lot of arbitrary changes, maybe the description should better say

Re: [PATCH v4 02/26] ARM: pxa: magician: Change comments to be more informative

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:10 +0200 schrieb Petr Cvek: > This patch changes the comments in the HTC Magician machine source > code > to better describe used devices and interfaces. > > Signed-off-by: Petr Cvek This is mostly fine, some comments below. [...] > static struct resource

Re: 4.2.2: NR_CPUS effectively being 1 bug

2015-10-03 Thread Mike Galbraith
On Sat, 2015-10-03 at 15:14 +0300, Alexey Dobriyan wrote: > On Sat, Oct 03, 2015 at 10:15:48AM +0200, Mike Galbraith wrote: > > On Sat, 2015-10-03 at 09:38 +0200, Ingo Molnar wrote: > > > * Peter Zijlstra wrote: > > > > > > > On Fri, Oct 02, 2015 at 02:00:33PM -0700, Andrew Morton wrote: > > > >

Re: [PATCH v4 03/26] ARM: pxa: magician: Print more specific error message for global GPIOs

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:10 +0200 schrieb Petr Cvek: > Print more specific error message for global GPIOs. > > Signed-off-by: Petr Cvek Acked-by: Philipp Zabel > --- > arch/arm/mach-pxa/magician.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH v4 05/26] ARM: pxa: magician: Change description of LCD power GPIO

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:11 +0200 schrieb Petr Cvek: > This patch changes the description of the LCD power GPIO to be more > specific. > > Signed-off-by: Petr Cvek Acked-by: Philipp Zabel regards Philipp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH v4 04/26] ARM: pxa: magician: Optimize debug messages for LCD power

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:11 +0200 schrieb Petr Cvek: > Optimize the debug messages for the LCD power. > > Signed-off-by: Petr Cvek Acked-by: Philipp Zabel regards Philipp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v4 06/26] ARM: pxa: magician: Add new discovered EGPIO pins

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:15 +0200 schrieb Petr Cvek: > This patch adds EGPIO pins: Infra transceiver power, NiCD charging > and > inserted charger cable. > > Signed-off-by: Petr Cvek Acked-by: Philipp Zabel Do you have more details how NiCD charging works? regards Philipp -- To

Re: [PATCH v4 07/26] ARM: pxa: magician: Fix HTC Magician pin mux definitions

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:15 +0200 schrieb Petr Cvek: > This patch fixes a pin mux for the HTC Magician machine. Wrong and > missing > definitions caused a bad LCD operation and an unavailability of > several > peripherals. > > Signed-off-by: Petr Cvek NAK on this one. Until this patch I

Re: [PATCH v4 08/26] ARM: pxa: magician: Rename abstract LCD GPIOs

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:15 +0200 schrieb Petr Cvek: > This patch renames GPIOs, which are used to control the power lines > to > the LCD screen. New names correspond to a real functionality, which > was > measured on the HTC Magician board_id 0x3a. > > Signed-off-by: Petr Cvek Acked-by:

Re: 4.2.2: NR_CPUS effectively being 1 bug

2015-10-03 Thread Frederic Weisbecker
On Sat, Oct 03, 2015 at 02:04:44PM +0200, Mike Galbraith wrote: > On Sat, 2015-10-03 at 10:52 +0200, Ingo Molnar wrote: > > Ok, looks like a patch with good intentions but bad effects. Mind sending a > > revert > > patch, changelogged, signed off? > > No. They know. The reason for this patch

Re: [PATCH v4 09/26] ARM: pxa: magician: Optimize powerup delays for Samsung LCD

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:16 +0200 schrieb Petr Cvek: > Delays for the Samsung LCD are greater than needed. These values were > extracted from a datasheet. > > Signed-off-by: Petr Cvek Acked-by: Philipp Zabel regards Philipp -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v4 10/26] ARM: pxa: magician: Optimize Samsung LCD refresh to 50Hz

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:32 +0200 schrieb Petr Cvek: > Change the default Samsung LCD refresh from an unrealistic 117Hz to > 50Hz > as no video applications on the HTC Magician can work that fast. > > The optimalization lowers the RAM latency at least by 3%. > > Signed-off-by: Petr Cvek

Re: [PATCH v4 11/26] ARM: pxa: magician: Optimize EGPIO initial values

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:32 +0200 schrieb Petr Cvek: > This patch optimizes initial values of the EGPIO chip driver. > > GSM and sound should be powered off during boot. A weak accumulator > and > a powered GSM sometimes cause a system reboot. A charging current > should be > as high as

Re: [PATCH v4 12/26] ARM: pxa: magician: Rename charger cable detection EGPIOs

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:32 +0200 schrieb Petr Cvek: > This patch renames EGPIOs, which are used for the charging cable > presence > and type detection. Old names did not correspond with an observed > functionality (on board_id 0x3a). The behavior is not: > > - AC charger > - USB charger > -

Re: [PATCH 1/3] net: dsa: Use devm_ prefixed allocations

2015-10-03 Thread Felix Fietkau
On 2015-10-02 15:30, Neil Armstrong wrote: > On 10/02/2015 03:29 PM, Sergei Shtylyov wrote: >> On 10/2/2015 1:48 PM, Neil Armstrong wrote: >> >>> To simplify and prevent memory leakage when unbinding, use >>> the devm_ memory allocation calls. >>> >>> Tested-by: Andrew Lunn >>> Tested-by:

Re: [PATCH v3 1/2] Fixed ds1390_get_reg returned value

2015-10-03 Thread Alexandre Belloni
On 18/09/2015 at 17:22:38 +0200, Ivan Grimaldi wrote : > spi_write_then_read puts in rx_buf the received data starting from > the first byte of the rx_buf > > Signed-off-by: Ivan Grimaldi > --- > drivers/rtc/rtc-ds1390.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied,

Re: [PATCH v4 14/26] ARM: pxa: magician: Fix platform data for both PXA27x I2C controllers

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:33 +0200 schrieb Petr Cvek: > This patch changes fast_mode settings for the normal and power I2C > controller on the HTC Magician machine. > > Connected device on the Power I2C: > - MAX1587A: working in the fast mode > > Connected devices on the Normal I2C: > -

Re: [PATCH v4 17/26] ARM: pxa: magician: Fix wrongly enabled USB host ports

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:38 +0200 schrieb Petr Cvek: > USB host ports on the HTC Magician are wrongly enabled. Port 1 is for > bluetooth and port 2 is for OTG (mux in the charger connector). > > Signed-off-by: Petr Cvek > --- > arch/arm/mach-pxa/magician.c | 4 +++- > 1 file changed, 3

Re: 4.2.2: NR_CPUS effectively being 1 bug

2015-10-03 Thread Mike Galbraith
On Sat, 2015-10-03 at 14:31 +0200, Frederic Weisbecker wrote: > On Sat, Oct 03, 2015 at 02:04:44PM +0200, Mike Galbraith wrote: > > On Sat, 2015-10-03 at 10:52 +0200, Ingo Molnar wrote: > > > Ok, looks like a patch with good intentions but bad effects. Mind sending > > > a revert > > > patch,

Re: [PATCH v4 18/26] ARM: pxa: magician: Add support for ADS7846

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:38 +0200 schrieb Petr Cvek: > Add support for an ADS7846 touchscreen. It's actually a TSC2045. > Signed-off-by: Petr Cvek > --- > arch/arm/mach-pxa/magician.c | 86 > > 1 file changed, 86 insertions(+) > > diff --git

Re: [PATCH v4 19/26] ARM: pxa: magician: Add support for Omnivision OV9640 camera

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:38 +0200 schrieb Petr Cvek: > This patch adds support for an OV9640 camera to the HTC Magician > machine. > > Signed-off-by: Petr Cvek Still untested, but looks good to me. regards Philipp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

[PATCH 1/24] ver_linux: echo.patch

2015-10-03 Thread Alexander Kapshuk
While not a problem in itself, I was not sure why 'echo space' was used. Not being aware of any immediate benefits to this, I thought using 'echo' by itself would suffice in printing a newline, which I believe is the desired behaviour. Signed-off-by: Alexander Kapshuk --- ---

New helper to free highmem pages in larger chunks

2015-10-03 Thread Vineet Gupta
Hi, I noticed increased boot time when enabling highmem for ARC. Turns out that freeing highmem pages into buddy allocator is done page at a time, while it is batched for low mem pages. Below is call flow. I'm thinking of writing free_highmem_pages() which takes start and end pfn and want to

Re: [PATCH v4 21/26] ARM: pxa: magician: Add support for PXA27x UDC

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:39 +0200 schrieb Petr Cvek: > A PXA27x SoC supports USB device mode, this patch adds support for > that. > > Signed-off-by: Petr Cvek > --- > arch/arm/mach-pxa/magician.c | 22 ++ > 1 file changed, 22 insertions(+) > > diff --git

Re: [PATCH v4 20/26] ARM: pxa: magician: Add support for MAX1587A Vcore regulator

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:39 +0200 schrieb Petr Cvek: > HTC Magician contains a MAX1587A voltage regulator for a Vcore > supply. > The Vcore regulation is required for a CPU speed switching. This > patch adds > declaration for the max1586 driver. > > Notice: > > - MAX1587A version does not

Re: [PATCH v4 22/26] ARM: pxa: magician: Remove pdata for pasic3-leds

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:39 +0200 schrieb Petr Cvek: > The pasic3-leds driver was never in vanilla kernel. Actual > configuration > data for a hypothetical driver does not describe hardware completely, > so > remove them. > > This patch prepare HTC Magician machine code to pasic3-leds driver

Re: [PATCH v4 25/26] ARM: pxa: magician: Add missing regulator for PWM backlight

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:40 +0200 schrieb Petr Cvek: > Add a fake regulator, which is required for the correct > initialization > of the PWM backlight driver. Fixed, not fake. Even though we can't control it, the backlight does have a supply. > Signed-off-by: Petr Cvek Acked-by: Philipp

Re: [PATCH] tools/thermal: tmon: use pkg-config also for CFLAGS

2015-10-03 Thread Jacob Pan
On Fri, 2 Oct 2015 09:50:45 + Olaf Hering wrote: > The header might be in /usr/include/ncursesw, which is not > part of the standard include path. This fixes compile on openSUSE. > Acked:by: Jacob Pan thanks > Signed-off-by: Olaf Hering > --- > tools/thermal/tmon/Makefile | 3 +++ >

[PATCH 2/24] path2bin_test.patch

2015-10-03 Thread Alexander Kapshuk
As suggested by Jim Davis , via this mailing list, this patch checks for binaries in the user's $PATH first by calling 'which name-of-binary'. If the binary is not found there, an attempt is made to find it elsewhere on the system. 'whereis name-of-binary' is used to that end. Below is Jim's

Re: [PATCH v4 26/26] ARM: pxa: magician: Move platform_add_devices() to the end of magician_init()

2015-10-03 Thread Philipp Zabel
Am Montag, den 28.09.2015, 23:42 +0200 schrieb Petr Cvek: > This patch moves platform_add_devices() (standard declaration of > devices) > outside of the platform specific device declarations. Moving to the > end > of the magician_init() clarifies the source code (standard and > specific >

Re: [PATCH v3 2/2] Added trickle charger device tree binding

2015-10-03 Thread Alexandre Belloni
On 18/09/2015 at 17:22:39 +0200, Ivan Grimaldi wrote : > Introduce a device tree binding for specifying the trickle charger > configuration for ds1339. > > Signed-off-by: Ivan Grimaldi > --- > .../devicetree/bindings/rtc/dallas,ds1390.txt | 18 +++ > drivers/rtc/rtc-ds1390.c

[PATCH 3/24] ver_linux: gcc.patch

2015-10-03 Thread Alexander Kapshuk
Using 'awk' here is a bit of an overkill. Should the output of 'gcc -dumpversion' vary on another disto, or change overtime, it may no longer be available at field 1, as relied on by the current implementation. I believe 'sed' offers greater flexibility here in terms of processing varying output

Re: [PATCH 24/38] rtc: opal: fix type of token

2015-10-03 Thread Alexandre Belloni
On 21/09/2015 at 15:33:56 +0200, Andrzej Hajda wrote : > The variable can take signed values. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 > >

Re: [PATCH v7 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-03 Thread Marc Zyngier
On Fri, 2 Oct 2015 23:56:37 +0200 Arnd Bergmann wrote: > On Friday 02 October 2015 15:53:44 Ley Foon Tan wrote: > > > Strictly speaking, if you have undocumented bindings downstream that > > > is your problem and we don't have to accept them as-is upstream. I'm > > > not going to worry about

[PATCH 2/24] ver_linux: path2bin_test.patch

2015-10-03 Thread Alexander Kapshuk
As suggested by Jim Davis , this patch checks for binaries in the user's $PATH first by calling 'which name-of-binary'. If the binary is not found there, an attempt is made to find it elsewhere on the system. 'whereis name-of-binary' is used to that end. Below is Jim's reasoning behind the

[PATCH 4/24] ver_linux: make.patch

2015-10-03 Thread Alexander Kapshuk
Calling 'awk' more then once is redundant. The output of 'make --version' already has the data we are after, why not utilise it. The proposed implementation uses 'sed' to utilise the data output modifying the white space formatting only. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server

[PATCH 5/24] ver_linux: binutils.patch

2015-10-03 Thread Alexander Kapshuk
Fix broken output. Current implementation output on Gentoo Linux: binutils 2.25.1 1.1 2.25.1 Proposed implementation: binutils2.25.1 Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- ---

[PATCH 6/24] ver_linux: util-linux_mount.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation relies on 'fdformat' to output the version of 'util-linux'. This does not seem to be reliable, as 'fdformat' is not available across all ditros these days. The proposed implementation uses 'mount' to output both the version of 'util-linux' and 'mount' proper. It also

[PATCH 7/24] ver_linux: module-init-tools.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation relies on 'depmod' to be available in the PATH. It also expects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation locates 'depmod', and uses

[PATCH 8/24] ver_linux: e2fsprogs.patch

2015-10-03 Thread Alexander Kapshuk
'tune2fs' is located in varying places depending on the distro. Current implementation output on distros where 'tune2fs' is found at a location that is not available in the PATH for the regular user, e.g. '/sbin', will have nothing to display. While running 'ver_linux' as user 'root' should be OK.

[PATCH 7/24] ver_linux: module-init-tools.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation relies on 'depmod' to be available in the PATH. It also expects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation locates 'depmod', and uses

Re: [PATCH 1/1] irqchip/GICv2m: Add workaround for APM X-Gene GICv2m erratum

2015-10-03 Thread Marc Zyngier
On Fri, 2 Oct 2015 15:16:49 -0700 Duc Dang wrote: Hi Duc, > APM X-Gene GICv2m implementation has an erratum where the > MSI data needs to be the offset from the spi_start in order to > trigger the correct MSI interrupt. This is different from the > standard GICv2m implementation where the MSI

[PATCH 9/24] ver_linux: jfsutils.patch

2015-10-03 Thread Alexander Kapshuk
Not to be critical of anyone, I believe that using 'grep' along with 'sed', and 'awk' in this kind of context as a one-off quick solution to be run on the command line may very well be justified. However, in a script, 'awk' or 'sed' are more than capable of doing most of the things we may be

[PATCH 10/24] ver_linux: reiserfsprogs.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH 11/24] ver_linux: xfsprogs.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be allright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH 12/24] ver_linux: pcmciautils.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH 13/24] ver_linux: quota-tools.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH 14/24] ver_linux: ppp.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH 15/24] ver_linux: libc.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation has been found not to work across all distros. The proposed implementation relies on 'sed' to both output the string 'Linux C Library' as well as to open '/proc/self/maps' without having to use output redirection. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux

[PATCH 16/24] ver_linux: ldd.patch

2015-10-03 Thread Alexander Kapshuk
Neither 'libg++.so', nor 'libstdc++.so' were found where the current implementation expects them to be found in the distros below. Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 The proposed implementation relies on 'ldconfig' to locate the libraries in question. 'Sed' is used to

[PATCH 17/24] ver_linux: libcpp.patch

2015-10-03 Thread Alexander Kapshuk
Neither 'libg++.so', nor 'libstdc++.so' were found where the current implementation expects them to be found in the distros below. Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 The proposed implementation relies on 'ldconfig' to locate the libraries in question. 'Sed' is used to

[PATCH 18/24] ver_linux: procps.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH 19/24] ver_linux: net-tools.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation relies on 'ifconfig' to be available in the PATH. It also uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current

[PATCH 20/24] ver_linux: kbd_console-tools.patch

2015-10-03 Thread Alexander Kapshuk
'loadkeys -h' no longer prints the version number across all distros, despite the claim to do so in the manpage, which I found to be the case on a Debian Linux system. The proposed implementation utilises the output of 'loadkeys -V' to acquire the version of both 'Kbd' and 'Console-tools'.

[PATCH 21/24] ver_linux: sh-utils.patch

2015-10-03 Thread Alexander Kapshuk
Using 'awk' here is a bit of an overkill. Should the output of 'expr --v' vary on another disto, or change overtime, it may no longer be available in the last field, as relied on by the current implementation. I believe 'sed' offers greater flexibility here in terms of processing varying output as

[PATCH 22/24] ver_linux: udev.patch

2015-10-03 Thread Alexander Kapshuk
'udevinfo' no longer seems to be available across various distros. 'udevadm' seems to be the currently valid way to look up the 'udev' version. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig

[PATCH 23/24] ver_linux: wireless-tools.patch

2015-10-03 Thread Alexander Kapshuk
Using 'awk' here is a bit of an overkill. Should the output of 'iwconfig --version' vary on another disto, or change overtime, it may no longer be available in field 4, as relied on by the current implementation. I believe 'sed' offers greater flexibility here in terms of processing varying

[PATCH 24/24] ver_linux: proc-modules.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation used a combination of both 'cat' and 'sed' to generate an unsorted list of kernel modules separated by while space. The proposed implementation uses 'sort' and 'sed' to generate a sort list of kernel modules separated by while space. Tested on: Gentoo Linux Debian

Re: [PATCH 1/3] net: dsa: Use devm_ prefixed allocations

2015-10-03 Thread Neil Armstrong
On 10/03/2015 02:39 PM, Felix Fietkau wrote: > On 2015-10-02 15:30, Neil Armstrong wrote: >> On 10/02/2015 03:29 PM, Sergei Shtylyov wrote: >>> On 10/2/2015 1:48 PM, Neil Armstrong wrote: >>> To simplify and prevent memory leakage when unbinding, use the devm_ memory allocation calls.

[PATCH 7/24] scripts/ver_linux: module-init-tools.patch

2015-10-03 Thread Alexander Kapshuk
The current implementation relies on 'depmod' to be available in the PATH. It also expects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation locates 'depmod', and uses

[PATCH] staging: wlan-ng: prism2sta: replace memcmp with ether_addr_equal

2015-10-03 Thread Maciek Borzecki
Replace memcmp() with ether_addr_equal(). In every location where the replacement was done, the addresses accessed are __aligned(2). Structures accessed either stack or heap allocated, no direct memory casts to possibly unaligned structs are used. Involved structures: typedef struct

Re: [PATCH] kselftest: replace $(RM) with rm -f command

2015-10-03 Thread Mathieu Desnoyers
- On Oct 3, 2015, at 12:38 AM, dvhart dvh...@infradead.org wrote: > On Mon, Sep 28, 2015 at 03:16:53AM +, Mathieu Desnoyers wrote: >> - On Sep 27, 2015, at 10:10 PM, Wang Long long.wangl...@huawei.com wrote: >> >> > Some test's Makefile using "$(RM)" while the other's >> > using "rm

[PATCH 2/2] clocksource: mmio: add devicetree support

2015-10-03 Thread Mans Rullgard
This implements the "clocksource-mmio" devicetree binding. It is useful for devices that have a free-running counter requiring no setup. Signed-off-by: Mans Rullgard --- drivers/clocksource/mmio.c | 83 ++ 1 file changed, 83 insertions(+) diff --git

[PATCH v2 0/5] net: dsa: complete and fix the dsa unbinding

2015-10-03 Thread Neil Armstrong
In order to cleanly unbind the dsa core, either as a module removal, or a platform device unbind, switch the allocation the their devm_ counterparts and complete the destroy functions. First, the missing kfree were added, the remove function were completed then kfree were removed in favor to

[PATCH 1/2] devicetree: add binding for generic mmio clocksource

2015-10-03 Thread Mans Rullgard
This adds a DT binding for a generic mmio clocksource as implemented by clocksource_mmio_init(). Signed-off-by: Mans Rullgard --- .../devicetree/bindings/timer/clocksource-mmio.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644

[PATCH v2 5/5] net: dsa: exit probe if no switch were found

2015-10-03 Thread Neil Armstrong
If no switch were found in dsa_setup_dst, return -ENODEV and exit the dsa_probe cleanly. Tested-by: Andrew Lunn Tested-by: Florian Fainelli Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/net/dsa/dsa.c

[PATCH v2 1/5] net: dsa: add missing kfree on remove

2015-10-03 Thread Neil Armstrong
To prevent memory leakage on unbinding, add missing kfree calls. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index c59fa5d..12cec40 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -914,8

[PATCH v2 4/5] net: dsa: switch to devm_ calls and remove kfree calls

2015-10-03 Thread Neil Armstrong
Now the kfree calls exists in the the remove functions, remove them in all places except the of_probe functions and replace allocation calls with their devm_ counterparts. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-)

[PATCH v2 2/5] net: dsa: add missing dsa_switch mdiobus remove

2015-10-03 Thread Neil Armstrong
To prevent memory leakage on unbinding, add missing mdiobus unregister and free calls. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 12cec40..91918a3 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@

[PATCH v2 3/5] net: dsa: complete dsa_switch_destroy

2015-10-03 Thread Neil Armstrong
When unbinding dsa, complete the dsa_switch_destroy to unregister the fixed link phy then cleanly unregister and destroy the net devices. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 36 1 file changed, 36 insertions(+) diff --git a/net/dsa/dsa.c

Re: [PATCH v2 1/5] net: dsa: add missing kfree on remove

2015-10-03 Thread Sergei Shtylyov
Hello. On 10/3/2015 5:25 PM, Neil Armstrong wrote: To prevent memory leakage on unbinding, add missing kfree calls. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index c59fa5d..12cec40

Linux 3.18.22

2015-10-03 Thread Sasha Levin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm announcing the release of the 3.18.22 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be

Re: [PATCH 4.2 00/30] 4.2.3-stable review

2015-10-03 Thread Guenter Roeck
On 10/03/2015 04:37 AM, Greg Kroah-Hartman wrote: On Thu, Oct 01, 2015 at 06:27:58PM -0700, Guenter Roeck wrote: On Thu, Oct 01, 2015 at 11:21:22AM +0200, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.2.3 release. There are 30 patches in this series, all will

Re: [PATCH net-next v3 2/2] net: Microchip encx24j600 driver

2015-10-03 Thread kbuild test robot
Hi Jon, [auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore] config: mn10300-allmodconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x

Re: [PATCH 3/24] ver_linux: gcc.patch

2015-10-03 Thread Richard Weinberger
On Sat, Oct 3, 2015 at 3:07 PM, Alexander Kapshuk wrote: > Using 'awk' here is a bit of an overkill. Should the output of 'gcc > -dumpversion' vary on another disto, or change overtime, it may no longer > be available at field 1, as relied on by the current implementation. > I believe 'sed'

Re: [PATCH 01/17] rtc: pl031: remove misuse of IRQF_NO_SUSPEND flag

2015-10-03 Thread Alexandre Belloni
On 21/09/2015 at 16:46:57 +0100, Sudeep Holla wrote : > The IRQF_NO_SUSPEND flag is used to identify the interrupts that should > be left enabled so as to allow them to work as expected during the > suspend-resume cycle, but doesn't guarantee that it will wake the system > from a suspended state,

Re: [PATCH v2 1/5] net: dsa: add missing kfree on remove

2015-10-03 Thread Neil Armstrong
On 10/03/2015 04:33 PM, Sergei Shtylyov wrote: > Hello. > > On 10/3/2015 5:25 PM, Neil Armstrong wrote: > >> To prevent memory leakage on unbinding, add missing kfree calls. >> >> Signed-off-by: Neil Armstrong >> --- >> net/dsa/dsa.c | 5 - >> 1 file changed, 4 insertions(+), 1

Re: [PATCH 02/17] rtc: ab8500: remove misuse of IRQF_NO_SUSPEND flag

2015-10-03 Thread Alexandre Belloni
On 21/09/2015 at 16:46:58 +0100, Sudeep Holla wrote : > The IRQF_NO_SUSPEND flag is used to identify the interrupts that should > be left enabled so as to allow them to work as expected during the > suspend-resume cycle, but doesn't guarantee that it will wake the system > from a suspended state,

Re: [PATCH 06/17] rtc: ds1343: remove misuse of IRQF_NO_SUSPEND flag

2015-10-03 Thread Alexandre Belloni
On 21/09/2015 at 16:47:02 +0100, Sudeep Holla wrote : > The IRQF_NO_SUSPEND flag is used to identify the interrupts that should > be left enabled so as to allow them to work as expected during the > suspend-resume cycle, but doesn't guarantee that it will wake the system > from a suspended state,

[PATCH 01/11] staging: dgnc: remove unused variables

2015-10-03 Thread Sudip Mukherjee
These variables were only assigned some values but were never used. Signed-off-by: Sudip Mukherjee --- drivers/staging/dgnc/dgnc_cls.c | 4 +--- drivers/staging/dgnc/dgnc_tty.c | 11 ++- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_cls.c

remove dma_supported and pci_dma_supported as public APIs

2015-10-03 Thread Christoph Hellwig
All driver should be using dma_set_mask / pci_set_dma_mask to try to set the dma mask instead of just querying it. Without that some iommu implementations may not work. pci_dma_supported is removed entirely, but dma_supported stays for dma_ops implementations for now. -- To unsubscribe from

[PATCH 08/11] staging: dgnc: remove NULL test

2015-10-03 Thread Sudip Mukherjee
This NULL test is not required as iounmap will validate the argument. Signed-off-by: Sudip Mukherjee --- drivers/staging/dgnc/dgnc_cls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c index d62b745..75040da

[PATCH 07/11] staging: dgnc: alignment style

2015-10-03 Thread Sudip Mukherjee
checkpatch was warning us that the alignment should match the open parenthesis. Signed-off-by: Sudip Mukherjee --- drivers/staging/dgnc/dgnc_cls.c| 14 +++--- drivers/staging/dgnc/dgnc_driver.c | 2 +- drivers/staging/dgnc/dgnc_neo.c| 2 +- drivers/staging/dgnc/dgnc_tty.c|

[PATCH 02/11] staging: dgnc: remove multiple blank lines

2015-10-03 Thread Sudip Mukherjee
checkpatch warns us about multiple blank lines which are not needed. Remove them. Signed-off-by: Sudip Mukherjee --- drivers/staging/dgnc/dgnc_driver.c | 10 drivers/staging/dgnc/dgnc_mgmt.c | 5 drivers/staging/dgnc/dgnc_neo.c| 37 ---

[PATCH 11/11] staging: dgnc: remove dgnc_init_globals function

2015-10-03 Thread Sudip Mukherjee
The dgnc_init_globals() function is only initializing the timer so initialize it directly and remove dgnc_init_globals() and change the comment appropriately. Signed-off-by: Sudip Mukherjee --- drivers/staging/dgnc/dgnc_driver.c | 18 ++ 1 file changed, 2 insertions(+), 16

[PATCH 14/15] pci: remove pci_dma_supported

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/parisc/ccio-dma.c| 2 -- include/asm-generic/pci-dma-compat.h | 6 -- 2 files changed, 8 deletions(-) diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c index 957b421..8e11fb2 100644 --- a/drivers/parisc/ccio-dma.c +++

[PATCH 07/15] cx23885: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/media/pci/cx23885/cx23885-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/cx23885/cx23885-core.c

[PATCH 13/15] usbnet: remove ifdefed out call to dma_supported

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/net/usb/usbnet.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index b4cf107..9497d51 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -1661,12 +1661,6 @@

[PATCH 09/15] mpsc: use dma_set_mask insted of dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/tty/serial/mpsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/mpsc.c b/drivers/tty/serial/mpsc.c index

[PATCH 15/15] dma: remove external references to dma_supported

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- Documentation/DMA-API.txt | 13 - drivers/usb/host/ehci-hcd.c | 2 +- drivers/usb/host/fotg210-hcd.c | 2 +- drivers/usb/host/fusbh200-hcd.c | 2 +- drivers/usb/host/oxu210hp-hcd.c | 2 +- 5 files changed, 4 insertions(+), 17

[PATCH 12/15] kaweth: remove ifdefed out call to dma_supported

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/net/usb/kaweth.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index 1e9cdca..f64b25c 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c @@ -1177,12 +1177,6 @@ err_fw:

[PATCH 10/15] nouveau: don't call pci_dma_supported

2015-10-03 Thread Christoph Hellwig
Just try to set a 64-bit DMA mask first and retry with the smaller dma_mask if dma_set_mask failed. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/nouveau/nouveau_ttm.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_ttm.c

<    1   2   3   4   5   6   7   >