[PATCH v2 09/14] perf report: properly handle branch count in match_chain

2017-08-06 Thread Milian Wolff
Some of the code paths I introduced before returned too early without running the code to handle a node's branch count. By refactoring match_chain to only have one exit point, this can be remedied. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim

[PATCH v2 03/14] perf report: create real callchain entries for inlined frames

2017-08-06 Thread Milian Wolff
The inlined frames use a fake symbol that is tracked in a special map inside the dso, which is always sorted by name. All other entries of the symbol beside the function name are unused for inline frames. The advantage of this approach is that all existing users of the callchain API can now

[PATCH v2 12/14] perf report: use srcline from callchain for hist entries

2017-08-06 Thread Milian Wolff
This also removes the symbol name from the srcline column, more on this below. This ensures we use the correct srcline, which could originate from a potentially inlined function. The hist entries used to query for the srcline based purely on the IP, which leads to wrong results for inlined

[PATCH v2 11/14] perf report: cache srclines for callchain nodes

2017-08-06 Thread Milian Wolff
On one hand this ensures that the memory is properly freed when the DSO gets freed. On the other hand this significantly speeds up the processing of the callchain nodes when lots of srclines are requested. For one of my data files e.g.: Before: Performance counter stats for 'perf report -s

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Willem de Bruijn
>> > +#ifdef __KERNEL__ >> > +#include >> > +#else >> > +#include >> > +#endif /* __KERNEL__ */ >> >> This will break applications that include manually. >> I previously sent a patch to use libc-compat to make compilation succeed >> when both are included in the case where is included after >>

[PATCH v2 08/14] perf report: compare symbol name for inlined frames when sorting

2017-08-06 Thread Milian Wolff
Similar to the callstack frame matching, we also have to compare the symbol name when sorting hist entries. The reason is twofold: On one hand, multiple inlined functions will use the same symbol start/end values of the parent, non-inlined symbol. As such, all of these symbols often end up missing

Re: Revert "[media] et8ek8: Export OF device ID as module aliases"

2017-08-06 Thread Stefan Agner
Hi Mauro, Just hit this issue too. This seems not to have made it into v4.13 as of today yet, any chance to get it still in? -- Stefan On 2017-06-08 02:01, Arnd Bergmann wrote: > This one got applied twice, causing a build error with clang: > > drivers/media/i2c/et8ek8/et8ek8_driver.c:1499:1:

Re: [PATCH 1/2] kbuild: Add macros cc-option-3 and __cc-option-3

2017-08-06 Thread Masahiro Yamada
Hi Matthias, Sorry for my late reply. 2017-08-03 1:46 GMT+09:00 Matthias Kaehlcke : > El Fri, Jul 21, 2017 at 02:56:56PM -0700 Matthias Kaehlcke ha dit: > >> The macro cc-option receives two parameters (the second may be empty). It >> returns the first parameter if it is a

Re: [PATCH 21/29] scsi: nsp32: constify pci_device_id.

2017-08-06 Thread Masanori Goto
2017-07-30 17:43 GMT+09:00 Arvind Yadav : > > pci_device_id are not supposed to change at runtime. All functions > working with pci_device_id provided by work with > const pci_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav

[PATCH v2 4/5] input: Add MediaTek PMIC keys support

2017-08-06 Thread Chen Zhong
This patch add support to handle MediaTek PMIC MT6397/MT6323 key interrupts including pwrkey and homekey, also add setting for long press key shutdown behavior. Signed-off-by: Chen Zhong --- drivers/input/keyboard/Kconfig |9 +

[PATCH v2 5/5] mfd: mt6397: Add PMIC keys support to MT6397 driver

2017-08-06 Thread Chen Zhong
This patch adds compatible strings and interrupts for pmic keys which serves as child device of MFD. Signed-off-by: Chen Zhong --- drivers/mfd/mt6397-core.c | 36 +++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git

[PATCH v2 1/5] mfd: mt6397: create irq mappings in mfd core driver

2017-08-06 Thread Chen Zhong
The core driver should create and manage irq mappings instead of leaf drivers. This patch change to pass irq domain to devm_mfd_add_devices() and it will create mapping for irq resources automatically. And remove irq mapping in rtc driver since this has been done in core driver. Signed-off-by:

[PATCH v2 3/5] dt-bindings: mfd: Add bindings for the keys as subnode of PMIC

2017-08-06 Thread Chen Zhong
This patch adds documentation for device tree bindings for keys support as the subnode of MT6397/MT6323 PMIC. Signed-off-by: Chen Zhong --- Documentation/devicetree/bindings/mfd/mt6397.txt |6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v2 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys

2017-08-06 Thread Chen Zhong
This patch adds the device tree binding documentation for the MediaTek pmic keys found on PMIC MT6397/MT6323. Signed-off-by: Chen Zhong --- .../devicetree/bindings/input/mtk-pmic-keys.txt| 36 1 file changed, 36 insertions(+) create mode

Re: [PATCH] loop: fix to a race condition due to the early registration of device

2017-08-06 Thread Ming Lei
On Thu, Aug 3, 2017 at 11:01 PM, Anton Volkov wrote: > The early device registration made possible a race leading to allocations > of disks with wrong minors. > > This patch moves the device registration further down the loop_init > function to make the race infeasible. > >

[PATCH] tpm/tpm_crb: Access locality for only CRB_START method

2017-08-06 Thread Jiandi An
For ARM64, the locality is handled by Trust Zone in FW. The layout does not have crb_regs_head. It is hitting the following line. dev_warn(dev, FW_BUG "Bad ACPI memory layout"); Current code excludes CRB_FL_ACPI_START and when CRB_FL_CRB_SMC_START is added around the same time locality support

[PATCH v5 07/12] Input: wm97xx: add new AC97 bus support

2017-08-06 Thread Robert Jarzmik
This adds support for the new AC97 bus code, which discovers the devices rather than uses platform data. As part of this discovery, it enables a multi-function device wm97xx, which supports touchscreen, battery, ADC and an audio codec. This patch adds the code to bind the touchscreen "cell" as

[PATCH v5 01/12] ALSA: ac97: split out the generic ac97 registers

2017-08-06 Thread Robert Jarzmik
Split out from the ac97_codec.h the ac97 generic registers, which can be used by a codec, typically a generic ac97 codec, and by the ac97 bus, to scan an ac97 AC-Link. This split encompasses all the AC97 standard registers, but not the codec specific ones. In order to have a clean split between

[PATCH v5 04/12] ASoC: arm: make pxa2xx-ac97-lib ac97 codec agnostic

2017-08-06 Thread Robert Jarzmik
All pxa library functions don't use the input parameters for nothing but slot number. This simplifies their prototypes, and makes them usable by both the legacy ac97 bus and the new ac97 bus. Signed-off-by: Robert Jarzmik --- include/sound/pxa2xx-lib.h | 15

[PATCH v5 11/12] ASoC: wm9705: add ac97 new bus support

2017-08-06 Thread Robert Jarzmik
Add support for the new ac97 bus model, where devices are automatically discovered on AC-Links. Signed-off-by: Robert Jarzmik Acked-by: Charles Keepax --- Since v4: - added #ifdef spotted by Charles - tentatively kept Charles's ack

[PATCH v5 05/12] Input: wm97xx: split out touchscreen registering

2017-08-06 Thread Robert Jarzmik
wm97xx-core does several things in it initialization : - touchscreen input device setup - battery device creation As the wm97xx is actually a multi-function device handling an audio codec, a touchscreen, a gpio block and an ADC, reshape the probing to isolate what is truly input/touchscreen

[PATCH v5 09/12] ASoC: wm9712: add ac97 new bus support

2017-08-06 Thread Robert Jarzmik
Add support for the new ac97 bus model, where devices are automatically discovered on AC-Links. Signed-off-by: Robert Jarzmik --- Since v4: - added #ifdef spotted by Charles --- sound/soc/codecs/Kconfig | 3 ++- sound/soc/codecs/wm9712.c | 39

[PATCH] i40e: Fix a potential NULL pointer dereference

2017-08-06 Thread Christophe JAILLET
If 'kzalloc()' fails, a NULL pointer will be dereferenced. Return an error code (-ENOMEM) instead. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v5 12/12] ASoC: pxa: switch to new ac97 bus support

2017-08-06 Thread Robert Jarzmik
Switch to the new ac97 bus support in sound/ac97 instead of the legacy snd_ac97 one. Signed-off-by: Robert Jarzmik --- Since v1: split into 2 patches, the former being XXX ac97 codec agnostic Since v2: fix driver unregistration Since v3: added platform driver data for

[PATCH v5 10/12] ASoC: wm9705: add private structure

2017-08-06 Thread Robert Jarzmik
Add a private data structure. This is a preparation for a codec which would need an another data on top of snd_ac97, which will be the case when an MFD wm97xx device will probe wm9705. Signed-off-by: Robert Jarzmik Acked-by: Charles Keepax

Re: [PATCH] intel-vbtn: match power button on press rather than release

2017-08-06 Thread Rafael J. Wysocki
On Mon, Aug 7, 2017 at 1:24 AM, Darren Hart wrote: > On Sun, Aug 06, 2017 at 12:20:22AM +0200, Rafael Wysocki wrote: >> On Saturday, August 5, 2017 10:57:53 PM CEST Darren Hart wrote: >> > On Sat, Aug 05, 2017 at 01:30:20AM +0200, Rafael Wysocki wrote: >> > > On Friday,

Re: [PATCH v2 4/5] usb: gadget: udc: Replace the deprecated extcon API

2017-08-06 Thread Chanwoo Choi
Dear Felipe, Could you please review this patch? I hope to remove the deprecated extcon API. Regards, Chanwoo Choi On 2017년 08월 03일 17:20, Chanwoo Choi wrote: > This patch replaces the deprecated extcon API as following: > - extcon_get_cable_state_() -> extcon_get_state() > > Cc: Felipe Balbi

Re: Linux 4.9.41

2017-08-06 Thread Greg KH
diff --git a/Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt b/Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt index 3e5b9793341f..8682ab6d4a50 100644 --- a/Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt +++

Re: [PATCH] RM: dts: rockchip: rk322x: add spi node and spi pinctrl

2017-08-06 Thread Kever Yang
Hi Huibing, Does this patch suppose to be V3? and there is a typo in subject. Thanks, - Kever On 08/07/2017 09:45 AM, Huibin Hong wrote: Add spi node and spi pinctrl for rk322x Signed-off-by: Huibin Hong --- arch/arm/boot/dts/rk322x.dtsi | 50

[PATCH] workqueue: fix path to documentation

2017-08-06 Thread Benjamin Peterson
Signed-off-by: Benjamin Peterson --- kernel/workqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index ca937b0c3a96..ca5dc98d5e94 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -21,7 +21,7 @@ *

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Mikko Rapeli
On Sun, Aug 06, 2017 at 05:24:20PM -0400, Willem de Bruijn wrote: > >> > +#ifdef __KERNEL__ > >> > +#include > >> > +#else > >> > +#include > >> > +#endif /* __KERNEL__ */ > >> > >> This will break applications that include manually. > >> I previously sent a patch to use libc-compat to make

[PATCH v5 02/12] ALSA: ac97: add an ac97 bus

2017-08-06 Thread Robert Jarzmik
AC97 is a bus for sound usage. It enables for a AC97 AC-Link to link one controller to 0 to 4 AC97 codecs. The goal of this new implementation is to implement a device/driver model for AC97, with an automatic scan of the bus and automatic discovery of AC97 codec devices. Signed-off-by: Robert

[PATCH v5 00/12] AC97 device/driver model revamp

2017-08-06 Thread Robert Jarzmik
Hi Lars, Mark, Charles, Lee, This is a minor revision after v4, mainly reviews from Takashi, Charles. I extracted the diff from the v3 of sound/ac97 which is in [1] for easier spotting of what has globally changed. I tentatively kept your Ack Charles for patch 11/12, please shout if you disagree

[PATCH v5 03/12] ASoC: add new ac97 bus support

2017-08-06 Thread Robert Jarzmik
Add the new ac97 bus support, with ac97 bus automatic probing. Signed-off-by: Robert Jarzmik Acked-by: Charles Keepax --- sound/Kconfig | 2 ++ sound/Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/sound/Kconfig

[PATCH] qed: Fix a memory allocation failure test in 'qed_mcp_cmd_init()'

2017-08-06 Thread Christophe JAILLET
We allocate 'p_info->mfw_mb_cur' and 'p_info->mfw_mb_shadow' but we check 'p_info->mfw_mb_addr' instead of 'p_info->mfw_mb_cur'. 'p_info->mfw_mb_addr' is never 0, because it is initiliazed a few lines above in 'qed_load_mcp_offsets()'. Update the test and check the result of the 2 'kzalloc()'

Re: [PATCH v06 04/36] uapi scsi/scsi_netlink_fc.h: use __u16, __u32 and __u64 from linux/types.h

2017-08-06 Thread James Bottomley
On Sun, 2017-08-06 at 23:42 +0300, Mikko Rapeli wrote: > Hi, > > On Sun, Aug 06, 2017 at 11:22:53AM -0700, James Bottomley wrote: > > > > On Sun, 2017-08-06 at 18:43 +0200, Mikko Rapeli wrote: > > > > > > Fixes userspace compilation errors like: > > > > > > scsi/scsi_netlink_fc.h:60:2: error:

[PATCH] RM: dts: rockchip: rk322x: add spi node and spi pinctrl

2017-08-06 Thread Huibin Hong
Add spi node and spi pinctrl for rk322x Signed-off-by: Huibin Hong --- arch/arm/boot/dts/rk322x.dtsi | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index

linux-next: manual merge of the net-next tree with the net tree

2017-08-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/ipv4/tcp_output.c between commit: a2815817ffa6 ("tcp: enable xmit timer fix by having TLP use time when RTO should fire") from the net tree and commit: bb4d991a28cc ("tcp: adjust tail loss probe timeout")

Re: linux-next: manual merge of the net-next tree with the net tree

2017-08-06 Thread Neal Cardwell
On Sun, Aug 6, 2017 at 10:01 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > net/ipv4/tcp_output.c > > between commit: > > a2815817ffa6 ("tcp: enable xmit timer fix by having TLP use time when RTO > should

Linux 4.4.80

2017-08-06 Thread Greg KH
I'm announcing the release of the 4.4.80 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

[PATCH v5 08/12] ASoC: wm9713: add ac97 new bus support

2017-08-06 Thread Robert Jarzmik
Add support for the new ac97 bus model, where devices are automatically discovered on AC-Links. Signed-off-by: Robert Jarzmik Acked-by: Charles Keepax --- sound/soc/codecs/Kconfig | 3 ++- sound/soc/codecs/wm9713.c | 39

[PATCH v5 06/12] mfd: wm97xx-core: core support for wm97xx Codec

2017-08-06 Thread Robert Jarzmik
The WM9705, WM9712 and WM9713 are highly integrated codecs, with an audio codec, DAC and ADC, GPIO unit and a touchscreen interface. Historically the support was spread across drivers/input/touchscreen and sound/soc/codecs. The sharing was done through ac97 bus sharing. This model will not

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Willem de Bruijn
On Sun, Aug 6, 2017 at 5:52 PM, Mikko Rapeli wrote: > On Sun, Aug 06, 2017 at 05:42:13PM -0400, Willem de Bruijn wrote: >> On Sun, Aug 6, 2017 at 5:33 PM, Mikko Rapeli wrote: >> > On Sun, Aug 06, 2017 at 05:24:20PM -0400, Willem de Bruijn wrote: >> >> >>

[PATCH] mm: vmstat: get slab statistics always from node counters

2017-08-06 Thread Stefan Agner
After the move of slab statistics from zone to node counters some users still try to get the counters from the zone counters. This has been caught while compiling with clang printing a warning like: implicit conversion from enumeration type 'enum node_stat_item' to different enumeration type

Re: [PATCH v2 2/3] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2017-08-06 Thread Yong
On Thu, 3 Aug 2017 14:14:15 -0500 Rob Herring wrote: > On Thu, Jul 27, 2017 at 01:01:36PM +0800, Yong Deng wrote: > > Add binding documentation for Allwinner V3s CSI. > > > > Signed-off-by: Yong Deng > > --- > >

Re: [PATCH] intel-vbtn: match power button on press rather than release

2017-08-06 Thread AceLan Kao
Looks like I'm one hour late to ack the patch. Thanks any way for the quick response. 2017-08-07 8:38 GMT+08:00 Rafael J. Wysocki : > On Mon, Aug 7, 2017 at 1:24 AM, Darren Hart wrote: >> On Sun, Aug 06, 2017 at 12:20:22AM +0200, Rafael Wysocki wrote: >>>

[PATCH v2 0/5] Add MediaTek PMIC keys support

2017-08-06 Thread Chen Zhong
MediaTek PMIC are multi-function devices that can handle key interrupts, typically there are two keys attached to PMIC, which called pwrkey and homekey. PWRKEY usually used to wake up system from sleep. Homekey can used as volume down key due to board design. Long press keys can shutdown PMIC, the

Re: [PATCH V3] get_maintainer: Prepare for separate MAINTAINERS files

2017-08-06 Thread Frank Rowand
On 08/04/17 21:45, Joe Perches wrote: > Allow for MAINTAINERS to become a directory and if it is, > read all the files in the directory for maintained sections. > > Optionally look for all files named MAINTAINERS in directories > excluding the .git directory by using --find-maintainer-files. > >

Re: [PATCH 05/12] [media] vcodec: mediatek: constify v4l2_m2m_ops structures

2017-08-06 Thread Rick Chang
On Sun, 2017-08-06 at 10:25 +0200, Julia Lawall wrote: > The v4l2_m2m_ops structures are only passed as the only > argument to v4l2_m2m_init, which is declared as const. > Thus the v4l2_m2m_ops structures themselves can be const. > > Done with the help of Coccinelle. > > // > @r disable

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls [v2]

2017-08-06 Thread Michel Dänzer
On 06/08/17 12:42 PM, Keith Packard wrote: > Michel Dänzer writes: > >> [...] >> >>> +#define DRM_CRTC_SEQUENCE_NEXT_ON_MISS 0x0002 /* Use >>> next sequence if we've missed */ >> >> Do you have userspace making use of DRM_CRTC_SEQUENCE_NEXT_ON_MISS? If

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls [v2]

2017-08-06 Thread Michel Dänzer
On 06/08/17 12:32 PM, Keith Packard wrote: > Daniel Vetter writes: > >>> +#define DRM_CRTC_SEQUENCE_FIRST_PIXEL_OUT 0x0004 /* Signal when >>> first pixel is displayed */ >> >> Note that right now vblank events are defined as: >> - The even will be delivered "somewhen"

Re: [PATCH v2] mmc: mmci_qcom_dml: include mmci_qcom_dml.h and fix #ifdef

2017-08-06 Thread Arnd Bergmann
On Sun, Aug 6, 2017 at 12:26 PM, Srinivas Kandagatla wrote: > > > On 04/08/17 23:10, Arnd Bergmann wrote: >> >> How about linking the DML code into the mmci module and making that >> Kconfig option a 'bool'? > > > > Yes, I think making this bool and exporting the

[PATCH v2 06/14] perf script: mark inlined frames and do not print DSO for them

2017-08-06 Thread Milian Wolff
Instead of showing the (repeated) DSO name of the non-inlined frame, we now show the "(inlined)" suffix instead. Before: 214f7 __hypot_finite (/usr/lib/libm-2.25.so) ace3 hypot (/usr/lib/libm-2.25.so) a4a std::__complex_abs

[PATCH v2 07/14] perf report: compare symbol name for inlined frames when matching

2017-08-06 Thread Milian Wolff
The fake symbols we create for inlined frames will represent different functions but can use the symbol start address. This leads to issues when different inline branches all lead to the same function. Before: ~ $ perf report -s sym -i perf.inlining.data --inline --stdio -g function ...

[PATCH v2 04/14] perf report: fall-back to function name comparison for -g srcline

2017-08-06 Thread Milian Wolff
When a callchain entry has no srcline available, we ended up comparing the instruction pointer. I consider this to be not too useful. Rather, I think we should group the entries by function name, which this patch adds. For people who want to split the data on the IP boundary, using `-g address` is

[PATCH v2 00/14] generate full callchain cursor entries for inlined frames

2017-08-06 Thread Milian Wolff
This series of patches completely reworks the way inline frames are handled. Instead of querying for the inline nodes on-demand in the individual tools, we now create proper callchain nodes for inlined frames. The advantages this approach brings are numerous: - less duplicated code in the

[PATCH v2 02/14] perf util: take elf_name as const string in dso__demangle_sym

2017-08-06 Thread Milian Wolff
The input string is not modified and thus can be passed in as a pointer to const data. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Willem de Bruijn
On Sun, Aug 6, 2017 at 5:33 PM, Mikko Rapeli wrote: > On Sun, Aug 06, 2017 at 05:24:20PM -0400, Willem de Bruijn wrote: >> >> > +#ifdef __KERNEL__ >> >> > +#include >> >> > +#else >> >> > +#include >> >> > +#endif /* __KERNEL__ */ >> >> >> >> This will break applications

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Mikko Rapeli
On Sun, Aug 06, 2017 at 05:42:13PM -0400, Willem de Bruijn wrote: > On Sun, Aug 6, 2017 at 5:33 PM, Mikko Rapeli wrote: > > On Sun, Aug 06, 2017 at 05:24:20PM -0400, Willem de Bruijn wrote: > >> >> > +#ifdef __KERNEL__ > >> >> > +#include > >> >> > +#else > >> >> > +#include

[PATCH 2/3] power: supply: charger-manager: Fix a comment

2017-08-06 Thread Christophe JAILLET
Update a comment which is no more up to date since commit 2ed9e9b653095. Signed-off-by: Christophe JAILLET --- drivers/power/supply/charger-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/charger-manager.c

[PATCH 1/3] power: supply: charger-manager: Fix a NULL pointer dereference in 'charger_manager_probe()'

2017-08-06 Thread Christophe JAILLET
'devm_kzalloc()' can return NULL. Return -ENOMEM in this case in order to avoid a NULL pointer dereference later on. Signed-off-by: Christophe JAILLET --- drivers/power/supply/charger-manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 3/3] power: supply: charger-manager: Slighly simplify code

2017-08-06 Thread Christophe JAILLET
Use 'sizeof(*var)' instead of the equivalent 'sizeof(data structure type)' because it is less verbose. Signed-off-by: Christophe JAILLET --- drivers/power/supply/charger-manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH] scsi: mpt3sas: Fix memory allocation failure test in 'mpt3sas_base_attach()'

2017-08-06 Thread Christophe JAILLET
In the lines above this test, 8 'kzalloc' are performed, but only 7 results are tested. Add the missing one (i.e. '!ioc->port_enable_cmds.reply'). Signed-off-by: Christophe JAILLET --- drivers/scsi/mpt3sas/mpt3sas_base.c | 8 1 file changed, 4

linux-next: manual merge of the rockchip tree with Linus' tree

2017-08-06 Thread Stephen Rothwell
Hi Heiko, Today's linux-next merge of the rockchip tree got a conflict in: arch/arm/boot/dts/rk3288.dtsi between commit: ca12437303f3 ("ARM: dts: rockchip: fix mali gpu node on rk3288") from Linus' tree and commits: 79db45be2b8b ("ARM: dts: rockchip: convert rk3288 device tree files to

[PATCH 1/2 v2] arm64: dts: ls1088a: add cpu idle support

2017-08-06 Thread andy.tang
From: Yuantian Tang ls1088a supports another cpu idle state which is ph20 which saves more power when cpu is idle. It was implemented through psci firmware. Signed-off-by: Tang Yuantian --- v2: -- no change

[PATCH 2/2 v2] arm64: dts: ls208xa: add cpu idle support

2017-08-06 Thread andy.tang
From: Yuantian Tang ls208xa supports another cpu idle state which is pw20 which saves more power when cpu is idle. It was implemented through psci firmware. Signed-off-by: Tang Yuantian --- v2: - add ls2080a support and update the commit message

[PATCH][resend] media: ti-vpe: cal: use of_graph_get_remote_endpoint()

2017-08-06 Thread Kuninori Morimoto
From: Kuninori Morimoto Now, we can use of_graph_get_remote_endpoint(). Let's use it. Signed-off-by: Kuninori Morimoto --- drivers/media/platform/ti-vpe/cal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH V8 1/2] PCI: handle CRS returned by device after FLR

2017-08-06 Thread Sinan Kaya
An endpoint is allowed to issue Configuration Request Retry Status (CRS) following a Function Level Reset (FLR) request to indicate that it is not ready to accept new requests. CRS is defined in PCIe r3.1, sec 2.3.1. Request Handling Rules and CRS usage in FLR context is mentioned in PCIe r3.1,

[PATCH V8 2/2] PCI: display not responding message while device is unreachable

2017-08-06 Thread Sinan Kaya
Adding a print statement into pci_bus_read_dev_vendor_id() so that user observes the progress of device polling instead of silently waiting for timeout to be reached. Signed-off-by: Sinan Kaya --- drivers/pci/probe.c | 8 +++- 1 file changed, 7 insertions(+), 1

[PATCH][resend] drm: dw-hdmi-i2s: add missing company name on Copyright

2017-08-06 Thread Kuninori Morimoto
From: Kuninori Morimoto This driver's Copyright is under Renesas Solutions Corp Signed-off-by: Kuninori Morimoto --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

Re: [PATCH V8 1/2] PCI: handle CRS returned by device after FLR

2017-08-06 Thread Sinan Kaya
On 8/6/2017 10:09 PM, Sinan Kaya wrote: > + pcie_capability_read_word(dev, PCI_EXP_RTCAP, _cap); > + if (root_cap & PCI_EXP_RTCAP_CRSVIS) { > + /* don't touch the HW before waiting 100ms */ > + msleep(100); This is obviously broken. I should have checked the

Re: [PATCH 2/2] mtd: spi-nor: Altera ASMI Parallel II IP Core

2017-08-06 Thread Marek Vasut
On 08/06/2017 08:24 PM, matthew.gerl...@linux.intel.com wrote: > From: Matthew Gerlach Thanks for the descriptive commit message. Could you explain what this patch is all about ? > Signed-off-by: Matthew Gerlach [...] > diff

Re: kvm_intel fails to load on Conroe CPUs running Linux 4.12

2017-08-06 Thread Paolo Bonzini
On 05/08/2017 21:26, Sebastian Rachuj wrote: > Dear linux developers, > > since my upgrade from linux 4.11 to linux 4.12 the "kvm_intel" module > does not load correctly anymore. "Modprobing" the kernel module gives an > Input/Output error. It seems to be related to the CPU architecture and > (to

[PATCH v2 05/14] perf report: mark inlined frames in output by " (inlined)" suffix

2017-08-06 Thread Milian Wolff
The original patch that introduced inline frame output in the various browsers used this suffix already. The new centralized approach that uses fake symbols for inlined frames was missing this approach so far. Instead of changing the symbol name itself, we only print the suffix where needed. This

[PATCH v2 01/14] perf report: remove code to handle inline frames from browsers

2017-08-06 Thread Milian Wolff
The follow-up commits will make inline frames first-class citizens in the callchain, thereby obsoleting all of this special code. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra

[PATCH v2 13/14] perf util: do not consider empty files as valid srclines

2017-08-06 Thread Milian Wolff
Sometimes we get a non-null, but empty, string for the filename from bfd. This then results in srclines of the form ":0", which is different from the canonical SRCLINE_UNKNOWN in the form "??:0". Set the file to NULL if it is empty to fix this. Cc: Arnaldo Carvalho de Melo Cc:

[PATCH v2 10/14] perf report: cache failed lookups of inlined frames

2017-08-06 Thread Milian Wolff
When no inlined frames could be found for a given address, we did not store this information anywhere. That means we potentially do the costly inliner lookup repeatedly for cases where we know it can never succeed. This patch makes dso__parse_addr_inlines always return a valid inline_node. It

[PATCH v2 14/14] perf util: enable handling of inlined frames by default

2017-08-06 Thread Milian Wolff
Now that we have caches in place to speed up the process of finding inlined frames and srcline information repeatedly, we can enable this useful option by default. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter

Re: kvm_intel fails to load on Conroe CPUs running Linux 4.12

2017-08-06 Thread Sebastian Rachuj
On 06.08.2017 23:10, Paolo Bonzini wrote: On 05/08/2017 21:26, Sebastian Rachuj wrote: Dear linux developers, since my upgrade from linux 4.11 to linux 4.12 the "kvm_intel" module does not load correctly anymore. "Modprobing" the kernel module gives an Input/Output error. It seems to be

[PATCH] iscsi-target: Fix iscsi_np reset hung task during parallel delete

2017-08-06 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch fixes a bug associated with iscsit_reset_np_thread() that can occur during parallel configfs rmdir of a single iscsi_np used across multiple iscsi-target instances, that would result in hung task(s) similar to below where configfs rmdir

Re: [PATCH v2 1/5] fs, xfs: introduce S_IOMAP_IMMUTABLE

2017-08-06 Thread Dave Chinner
On Sat, Aug 05, 2017 at 11:47:08AM +0200, Christoph Hellwig wrote: > NAK^4. > > We should not allow users to create immutable files. We have > proper ways to synchronize I/O, and this is just an invitation > for horrible abuses that should not be allowed, and which we've > always people told not

linux-next: manual merge of the pm tree with the dmi tree

2017-08-06 Thread Stephen Rothwell
Hi Rafael, Today's linux-next merge of the pm tree got a conflict in: drivers/acpi/sbs.c between commit: f996c4155d0d ("dmi: Mark all struct dmi_system_id instances const") from the dmi tree and commit: 630b3aff8a51 ("treewide: Consolidate Apple DMI checks") from the pm tree. I fixed

Linux 4.13-rc4

2017-08-06 Thread Linus Torvalds
So rc3 was smaller than usual, and now rc4 is a bit bigger than usual. However, it's not outrageously so, and the reason for it all is fairly clear: the networking pull just missed rc3, so it's all in rc4 instead. That, along with the media pull, accounts for the bulk of the changes (the

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Willem de Bruijn
On Sun, Aug 6, 2017 at 4:23 PM, Willem de Bruijn wrote: > On Sun, Aug 6, 2017 at 12:44 PM, Mikko Rapeli wrote: >> linux/time.h conflicts with user space header time.h. Try to be compatible >> with both. >> >> Fixes userspace compilation

Re: [PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Willem de Bruijn
On Sun, Aug 6, 2017 at 12:44 PM, Mikko Rapeli wrote: > linux/time.h conflicts with user space header time.h. Try to be compatible > with both. > > Fixes userspace compilation error: > > error: array type has incomplete element type > struct timespec ts[3]; > > Signed-off-by:

Re: [PATCH v06 04/36] uapi scsi/scsi_netlink_fc.h: use __u16, __u32 and __u64 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Hi, On Sun, Aug 06, 2017 at 11:22:53AM -0700, James Bottomley wrote: > On Sun, 2017-08-06 at 18:43 +0200, Mikko Rapeli wrote: > > Fixes userspace compilation errors like: > > > > scsi/scsi_netlink_fc.h:60:2: error: expected specifier-qualifier-list > > before ‘uint64_t’ > > Rather than

[GIT PULL] platform-drivers-x86 for 4.13-4

2017-08-06 Thread Darren Hart
Hi Linus, The following changes since commit 51391caf99e34d2d75ffc428845062d93aa739c6: platform/x86: dell-wmi: Fix driver interface version query (2017-08-01 15:41:43 -0700) are available in the git repository at: git://git.infradead.org/linux-platform-drivers-x86.git

[PATCH 3/3] EDAC: add support for reduced-width Armada-XP SDRAM

2017-08-06 Thread Chris Packham
Some integrated Armada XP SoCs use a reduced pin count so the width of the SDRAM interface is smaller than the traditional discrete SoCs. This means that the definition of "full" and "half" width is further reduced. Signed-off-by: Chris Packham ---

[PATCH 2/3] ARM: dts: mvebu: set reduced-width property for SDRAM on 98dx3236

2017-08-06 Thread Chris Packham
Because the 98dx3236 and similar SoCs are switch chips with integrated CPUs they use a reduced pin count for the SDRAM interface. As such "full" with is 32-bits and "half" width is 16-bits (as opposed to 64/32 on the discrete SoC). Set the reduced-width property on the sdramc node to indicate

[PATCH 1/3] dt-bindings: add "reduced-width" property for Armada XP SDRAM controller

2017-08-06 Thread Chris Packham
Some SoC implementations that use this controller have a reduced pin count so the meaning of "full" and "half" with change. Signed-off-by: Chris Packham --- .../bindings/memory-controllers/mvebu-sdram-controller.txt | 6 ++ 1 file changed, 6

[PATCH 0/3] power: supply: charger-manager: 1 fix and 2 minor clean-ups

2017-08-06 Thread Christophe JAILLET
This patch series improves 'charger_manager_probe()'. The first patch is about a missing memory allocation failure test. The 2 others are just things spotted in this function: - a comment that is no more up to date - a style issue (which saves 1 line) Christophe JAILLET (3): power:

Re: Resizeable PCI BAR support V5

2017-08-06 Thread Dieter Nützel
Hello Christian, after (long ;-)) vacation, injured wife (bad lumbago/luckily NO disc prolapse) on 2cond day @ our target, our daughter's 12th birthday, school start for both kids and mostly dad work I'm back... Do you have a V6 handy. Will do my fingers dirty if no Intel guy beats me at it.

HELLO,

2017-08-06 Thread infob...@ono.com
Liebste, Wie gehts Ihnen heute, ich hoffe, dass meine Post Sie in gutem Zustand der Gesundheit erfüllt? Sehr geehrte Damen und Herren, ich habe mich entschlossen, mit Ihnen in Kontakt zu treten, wenn ich bedenkt habe, dass wir uns noch nicht getroffen haben, aber wegen eines Umstandes, der

[PATCH v1] selftests: Enhance kselftest_harness.h to print which assert failed

2017-08-06 Thread Mickaël Salaün
When a test process is not able to write to TH_LOG_STREAM, this step mechanism enable to print the assert number which triggered the failure. This can be enabled by setting _metadata->no_print to true at the beginning of the test sequence. Update the seccomp-bpf test to return 0 if a test

Re: [PATCH] intel-vbtn: match power button on press rather than release

2017-08-06 Thread Darren Hart
On Sun, Aug 06, 2017 at 12:20:22AM +0200, Rafael Wysocki wrote: > On Saturday, August 5, 2017 10:57:53 PM CEST Darren Hart wrote: > > On Sat, Aug 05, 2017 at 01:30:20AM +0200, Rafael Wysocki wrote: > > > On Friday, August 4, 2017 7:29:53 PM CEST Darren Hart wrote: > > > > On Fri, Aug 04, 2017 at

Re: [PATCH v4 net-next 01/13] bpf/verifier: rework value tracking

2017-08-06 Thread Daniel Borkmann
On 08/03/2017 06:11 PM, Edward Cree wrote: Unifies adjusted and unadjusted register value types (e.g. FRAME_POINTER is now just a PTR_TO_STACK with zero offset). Tracks value alignment by means of tracking known & unknown bits. This also replaces the 'reg->imm' (leading zero bits)

[PATCH] staging: fbtft: removed commas from parameter-list

2017-08-06 Thread frozsak
From: a Signed-off-by: Frank Jozsa --- drivers/staging/fbtft/fbtft-bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c index a80b5d115ff8..6711415b4fb8

Re: linux-next: build failure in the staging tree (Was: kisskb: FAILED linux-next/s390-allmodconfig/s390x Mon Jul 31, 17:24)

2017-08-06 Thread Stephen Rothwell
Hi all, On Tue, 1 Aug 2017 08:29:31 + Laurentiu Tudor wrote: > > On 07/31/2017 06:58 PM, Greg KH wrote: > > On Mon, Jul 31, 2017 at 09:55:14AM +, Laurentiu Tudor wrote: > >> Hi Stephen, > >> > >> That's because the fsl-mc driver selects GENERIC_MSI_IRQ_DOMAIN

Re: [PATCH] staging: fbtft: removed commas from parameter-list

2017-08-06 Thread kbuild test robot
Hi, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.13-rc3 next-20170804] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[RESEND PATCH 2/4] dt-bindings: add "reduced-width" property for Armada XP SDRAM controller

2017-08-06 Thread Chris Packham
Some SoC implementations that use this controller have a reduced pin count so the meaning of "full" and "half" with change. Signed-off-by: Chris Packham --- .../bindings/memory-controllers/mvebu-sdram-controller.txt | 6 ++ 1 file changed, 6

<    1   2   3   4   5   6   7   8   >