[tip:timers/urgent] timekeeping: Avoid taking lock in NMI path with CONFIG_DEBUG_TIMEKEEPING

2016-08-24 Thread tip-bot for John Stultz
Commit-ID: 27727df240c7cc84f2ba6047c6f18d5addfd25ef Gitweb: http://git.kernel.org/tip/27727df240c7cc84f2ba6047c6f18d5addfd25ef Author: John Stultz AuthorDate: Tue, 23 Aug 2016 16:08:21 -0700 Committer: Thomas Gleixner CommitDate: Wed, 24 Aug 2016 09:34:31 +0200 timekeeping: Avoid takin

[PATCH v7 09/14] arm64/numa: support HAVE_SETUP_PER_CPU_AREA

2016-08-24 Thread Zhen Lei
To make each percpu area allocated from its local numa node. Without this patch, all percpu areas will be allocated from the node which cpu0 belongs to. Signed-off-by: Zhen Lei --- arch/arm64/Kconfig | 8 arch/arm64/mm/numa.c | 55

[PATCH v7 12/14] arm64/numa: remove the limitation that cpu0 must bind to node0

2016-08-24 Thread Zhen Lei
1. Currently only cpu0 set on cpu_possible_mask and percpu areas have not been initialized. 2. No reason to limit cpu0 must belongs to node0. Signed-off-by: Zhen Lei --- arch/arm64/mm/numa.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/arm64/mm/numa.c

[PATCH v7 05/14] arm64/numa: avoid inconsistent information to be printed

2016-08-24 Thread Zhen Lei
numa_init(of_numa_init) may returned error because of numa configuration error. So "No NUMA configuration found" is inaccurate. In fact, specific configuration error information should be immediately printed by the testing branch. Signed-off-by: Zhen Lei --- arch/arm64/mm/numa.c | 6 +++--- 1 fi

[PATCH v7 10/14] arm64/numa: define numa_distance as array to simplify code

2016-08-24 Thread Zhen Lei
1. MAX_NUMNODES is base on CONFIG_NODES_SHIFT, the default value of the latter is very small now. 2. Suppose the default value of MAX_NUMNODES is enlarged to 64, so the size of numa_distance is 4K, it's still acceptable if run the Image on other processors. 3. It will make function __node_

[PATCH v7 06/14] of_numa: Use of_get_next_parent to simplify code

2016-08-24 Thread Zhen Lei
From: Kefeng Wang Use of_get_next_parent() instead of open-code. Signed-off-by: Kefeng Wang Acked-by: Rob Herring --- drivers/of/of_numa.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index 8723f64..ed103e6 100644 --- a/d

[PATCH v7 07/14] of_numa: Use pr_fmt()

2016-08-24 Thread Zhen Lei
From: Kefeng Wang Use pr_fmt to prefix kernel output. Signed-off-by: Kefeng Wang Acked-by: Rob Herring --- drivers/of/of_numa.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index ed103e6..1234b4a 100644

[PATCH v7 08/14] arm64: numa: Use pr_fmt()

2016-08-24 Thread Zhen Lei
From: Kefeng Wang Use pr_fmt to prefix kernel output, and remove duplicated msg of NUMA turned off. Signed-off-by: Kefeng Wang --- arch/arm64/mm/numa.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/arm64/mm/numa.c b/arch/arm

[PATCH v7 13/14] of/numa: remove the constraint on the distances of node pairs

2016-08-24 Thread Zhen Lei
At present, the distances must equal in both direction for each node pairs. For example: the distance of node B->A must the same to A->B. But we really don't have to do this. End up fill default distances as below: 1. If both direction specified, keep no change. 2. If only one direction specified,

[PATCH v7 14/14] Documentation: remove the constraint on the distances of node pairs

2016-08-24 Thread Zhen Lei
Update documentation. This limit is unneccessary. Signed-off-by: Zhen Lei Acked-by: Rob Herring --- Documentation/devicetree/bindings/numa.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/numa.txt b/Documentation/devicetree/bindings/numa.txt index 21b350

[PATCH v7 01/14] of/numa: remove a duplicated pr_debug information

2016-08-24 Thread Zhen Lei
This information will be printed in the subfunction numa_add_memblk. They are not the same, but very similar. Signed-off-by: Zhen Lei Acked-by: Rob Herring --- drivers/of/of_numa.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index ed5a097..

[PATCH v7 03/14] arm64/numa: add nid check for memory block

2016-08-24 Thread Zhen Lei
Use the same tactic to cpu and numa-distance nodes. Signed-off-by: Zhen Lei --- drivers/of/of_numa.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index 7b3fbdc..afaeb9c 100644 --- a/drivers/of/of_numa.c +++ b/drivers/of/of_numa.c @@ -75,6 +

[PATCH v7 04/14] of/numa: remove a duplicated warning

2016-08-24 Thread Zhen Lei
This warning has been printed in of_numa_parse_cpu_nodes before. Signed-off-by: Zhen Lei Acked-by: Rob Herring --- drivers/of/of_numa.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index afaeb9c..8723f64 100644 --- a/dr

[PATCH v7 11/14] arm64/numa: support HAVE_MEMORYLESS_NODES

2016-08-24 Thread Zhen Lei
Some numa nodes may have no memory. For example: 1. cpu0 on node0 2. cpu1 on node1 3. device0 access the momory from node0 and node1 take the same time. So, we can not simply classify device0 to node0 or node1, but we can define a node2 which distances to node0 and node1 are the same. Signed-off-

[PATCH v7 02/14] of/numa: fix a memory@ node can only contains one memory block

2016-08-24 Thread Zhen Lei
For a normal memory@ devicetree node, its reg property can contains more memory blocks. Because we don't known how many memory blocks maybe contained, so we try from index=0, increase 1 until error returned(the end). Signed-off-by: Zhen Lei Acked-by: Rob Herring --- drivers/of/of_numa.c | 29 +

[PATCH v7 00/14] fix some type infos and bugs for arm64/of numa

2016-08-24 Thread Zhen Lei
v6 -> v7: Fix a bug for this patch series when "numa=off" was set in bootargs, this modification only impact patch 12. Please refer https://lkml.org/lkml/2016/8/23/249 for more details. @@ -119,13 +115,13 @@ static void __init setup_node_to_cpumask_map(void) */ void numa_store_cpu_info(unsigne

[tip:x86/urgent] x86/apic: Do not init irq remapping if ioapic is disabled

2016-08-24 Thread tip-bot for Wanpeng Li
Commit-ID: 2e63ad4bd5dd583871e6602f9d398b9322d358d9 Gitweb: http://git.kernel.org/tip/2e63ad4bd5dd583871e6602f9d398b9322d358d9 Author: Wanpeng Li AuthorDate: Tue, 23 Aug 2016 20:07:19 +0800 Committer: Thomas Gleixner CommitDate: Wed, 24 Aug 2016 09:45:40 +0200 x86/apic: Do not init irq

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Zhang Rui
On 五, 2016-08-19 at 19:35 +0800, Zhang Rui wrote: > On 二, 2016-07-19 at 10:01 +, Kuninori Morimoto wrote: > > > > From: Kuninori Morimoto > > > > rcar-thermal is supporting both thermal_zone_of_sensor_register() > > and > > thermal_zone_device_register(). But > > thermal_zone_of_sensor_regis

Re: [PATCH] treewide: replace config_enabled() with IS_ENABLED() (2nd round)

2016-08-24 Thread Peter Oberparleiter
On 23.08.2016 18:45, Masahiro Yamada wrote: > Commit 97f2645f358b ("tree-wide: replace config_enabled() with > IS_ENABLED()") mostly killed config_enabled(), but some new users > have appeared for v4.8-rc1. They are all used for a boolean option, > so can be replaced with IS_ENABLED() safely. > >

Re: linux-next: build warning after merge of the thermal tree

2016-08-24 Thread Zhang Rui
On 三, 2016-08-24 at 13:38 +1000, Stephen Rothwell wrote: > Hi Zhang, > > After merging the thermal tree, today's linux-next build (powerpc > allyesconfig) produced this warning: > > warning: (HISI_THERMAL) selects STUB_CLK_HI6220 which has unmet > direct dependencies (COMMON_CLK && COMMON_CLK_HI6

Re: [PATCH] raid6: fix the input of raid6 algorithm

2016-08-24 Thread liuzhengyuan
Oh, get_random_*() is really expensive. Thanks for your tips. The boot log on my aarch64 showed bellow told it taked about 0.6 second to fill with disk data. [0.172831] DMA: preallocated 256 KiB pool for atomic allocations [0.788664] raid6: int64x1 gen() 121 MB/s [0.856613

[PATCH v3 1/2] input: misc: Add generic input driver to read encoded GPIO lines

2016-08-24 Thread Vignesh R
Add a driver to read group of GPIO lines and provide its status as a numerical value as input event to the system. This will help in interfacing devices, that can be connected over GPIOs, that provide input to the system by driving GPIO lines connected to them like a rotary dial or a switch. For e

[PATCH v3 0/2] AM335x-ICE: Add support for rotary switch

2016-08-24 Thread Vignesh R
This series adds support for rotary-switch on AM335x-ICE that is connected to TI PCA9536 I2C GPIO expander. First patch adds new generic driver to read status of group of GPIO lines and report the value as an input event. The second patch adds DT entries for the same. v2: https://lkml.org/lkml/201

[PATCH v3 2/2] ARM: dts: am335x-icev2: Add nodes for gpio-decoder

2016-08-24 Thread Vignesh R
AM335x ICE board has a rotary-switch connected to PCA9536 I2C GPIO expander. The position of the rotary-switch is reflected by status of GPIO lines. Add gpio-decoder node to read these GPIO line status via gpio-decoder driver and report it as an input event to the system. Signed-off-by: Vignesh R

Re: [PATCH 2/2] i2c: move locking operations to their own struct

2016-08-24 Thread Peter Rosin
On 2016-08-23 23:16, Wolfram Sang wrote: > On Fri, Jul 29, 2016 at 10:17:57AM +0200, Peter Rosin wrote: >> This makes it trivial to constify them, so do that. >> >> Signed-off-by: Peter Rosin > > Looks good. Could you rebase to i2c/for-next? Right, no problem! Cheers, Peter The following chang

Re: [PATCH 2/2] dmi-id: add dmi/id/oem group for exporting oem strings to sysfs

2016-08-24 Thread Allen Hung
On 08/15/2016 05:55 PM, Allen Hung wrote: > On 08/03/2016 02:56 AM, Limonciello, Mario wrote: >>> -Original Message- >>> From: Jean Delvare [mailto:jdelv...@suse.de] >>> Sent: Tuesday, August 2, 2016 8:43 AM >>> To: Limonciello, Mario >>> Cc: Hung, Allen ; linux-kernel@vger.kernel.org >>>

Re: what is the purpose of SLAB and SLUB (was: Re: [PATCH v3] mm/slab: Improve performance of gathering slabinfo) stats

2016-08-24 Thread Michal Hocko
On Wed 24-08-16 10:15:02, Joonsoo Kim wrote: > On Tue, Aug 23, 2016 at 05:38:08PM +0200, Michal Hocko wrote: > > On Tue 23-08-16 11:13:03, Joonsoo Kim wrote: > > > On Thu, Aug 18, 2016 at 01:52:19PM +0200, Michal Hocko wrote: > > [...] > > > > I am not opposing the patch (to be honest it is quite n

Re: [PATCH] Make __xfs_xattr_put_listen preperly report errors.

2016-08-24 Thread Artem Savkov
On Wed, Aug 24, 2016 at 11:55:51AM +1000, Dave Chinner wrote: > On Tue, Aug 23, 2016 at 05:54:13PM +0200, Artem Savkov wrote: > > Commit "xfs: only return -errno or success from attr ->put_listent" changes > > the > > Please quote commits in --oneline format in changelogs - it makes it > much eas

Re: [PATCH v2] kernel/fork: fix CLONE_CHILD_CLEARTID regression in nscd

2016-08-24 Thread Michal Hocko
On Tue 23-08-16 18:32:34, Oleg Nesterov wrote: > On 08/23, Michal Hocko wrote: > > > > --- a/kernel/fork.c > > +++ b/kernel/fork.c > > @@ -913,14 +913,11 @@ void mm_release(struct task_struct *tsk, struct > > mm_struct *mm) > > deactivate_mm(tsk, mm); > > > > /* > > -* If we're exiti

[PATCH 2/2] hwmon: (max6650) Add initial rpm target devicetree documentation

2016-08-24 Thread Mike Looijmans
Add devicetree property for early initialization of the fan controller to prevent overheating, for example when resetting the board while the fan was completely turned off. Signed-off-by: Mike Looijmans --- Documentation/devicetree/bindings/hwmon/max6650.txt | 5 + 1 file changed, 5 insertio

[PATCH 1/2] hwmon: (max6650) Allow fan shutdown and initial rpm target

2016-08-24 Thread Mike Looijmans
The fan can be stopped by writing "3" to pwm1_enable in sysfs. Add devicetree property for early initialization of the fan controller to prevent overheating, for example when resetting the board while the fan was completely turned off. Also improve error reporting, I2C failures were ignored while

[PATCH v2] gpu: ipu-v3: fix a possible NULL dereference

2016-08-24 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. For fixing this problem, we use of_device_get_match_data(), this will simplify the code a little by using a standard function for getting the match data. Testing the return value of of_device_get_match_data is also

Re: [RFC/PATCHSET 0/3] virtio: Implement virtio pstore device (v3)

2016-08-24 Thread Joel
Hi Namhyung, > On Aug 23, 2016, at 8:20 AM, Namhyung Kim wrote: > > Hi Joel, > > On Tue, Aug 23, 2016 at 7:25 PM, Joel Fernandes wrote: >> From: Namhyung Kim > >> >> Any thoughts on what you think about it? In your approach though, you >> wouldn't need a backing mem-path file which is the s

Re: [PATCH] staging: android: ion: ion.c fix parenthesis alignment

2016-08-24 Thread Sudip Mukherjee
On Wed, Aug 24, 2016 at 03:56:32AM +0700, Didik Setiawan wrote: > Fix checkpatch.pl warning about "Alignment should match open parenthesis". > --- you missed the Signed-off-by: line. regards sudip

Re: chipidea: udc: kernel panic in isr_setup_status_phase

2016-08-24 Thread Peter Chen
On Tue, Aug 23, 2016 at 02:36:30AM +0200, Clemens Gruber wrote: > Hi, > > I am using an i.MX6Q embedded board, acting as a (ethernet) gadget with > RNDIS function, connected over an USB OTG cable to a PC. > Most of the time it works fine, but in some mysterious circumstances, > a kernel panic occu

Re: [PATCH v2 1/2] kexec: Introduce "/sys/kernel/kexec_crash_low_size"

2016-08-24 Thread Dave Young
On 08/23/16 at 06:11pm, Yinghai Lu wrote: > On Wed, Aug 17, 2016 at 1:20 AM, Dave Young wrote: > > On 08/17/16 at 09:50am, Xunlei Pang wrote: > >> "/sys/kernel/kexec_crash_size" only handles crashk_res, it > >> is fine in most cases, but sometimes we have crashk_low_res. > >> For example, when "cr

Re: what is the purpose of SLAB and SLUB (was: Re: [PATCH v3] mm/slab: Improve performance of gathering slabinfo) stats

2016-08-24 Thread Mel Gorman
On Tue, Aug 23, 2016 at 05:38:08PM +0200, Michal Hocko wrote: > Do we have any documentation/study about which particular workloads > benefit from which allocator? It seems that most users will use whatever > the default or what their distribution uses. E.g. SLES kernel use SLAB > because this is w

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Kuninori Morimoto
Hi Zhang > > > From: Kuninori Morimoto > > > > > > rcar-thermal is supporting both thermal_zone_of_sensor_register() > > > and > > > thermal_zone_device_register(). But > > > thermal_zone_of_sensor_register() > > > doesn't enable hwmon as default. > > > This patch enables it to keep compatibili

Re: [PATCH v3 2/5] firmware: annotate thou shalt not request fw on init or probe

2016-08-24 Thread Gabriel Paubert
On Tue, Aug 23, 2016 at 05:45:04PM -0700, mcg...@kernel.org wrote: [snip] > --- > Documentation/firmware_class/README| 20 > drivers/base/Kconfig | 2 +- > .../request_firmware-avoid-init-probe-init.cocci | 130 > + > 3

Re: [PATCH v5 19/19] iommu/dma: Add support for mapping MSIs

2016-08-24 Thread Thomas Gleixner
On Tue, 23 Aug 2016, Robin Murphy wrote: > + cookie = domain->iova_cookie; > + iovad = &cookie->iovad; > + > + spin_lock(&cookie->msi_lock); > + list_for_each_entry(msi_page, &cookie->msi_page_list, list) > + if (msi_page->phys_hi == msg->address_hi && > +

[PATCH 40/41] staging: r8188eu: remove some structure definitions from rtw_event.h

2016-08-24 Thread Ivan Safonov
addba_event, event_node and c2hevent_queue structures are not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_event.h | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_event.h b/drivers/staging/rtl8188eu/inc

[PATCH 33/41] staging: r8188eu: remove some structure definitions from wlan_bssdef.h

2016-08-24 Thread Ivan Safonov
ndis_802_11_ai_reqfi, ndis_802_11_ai_resfi, ndis_802_11_assoc_info, ndis_802_11_remove_key, ndis_802_11_auth_req, ndis_802_11_status_ind, ndis_802_11_auth_evt, ndis_802_11_test, pmkid_candidate, ndis_802_11_pmkid_list, ndis_802_11_auth_encrypt and ndis_802_11_cap structures are not used. Signed-of

[PATCH 20/41] staging: r8188eu: change rtw_ieee80211_ht_cap type of structures members to ieee80211_ht_cap

2016-08-24 Thread Ivan Safonov
Also cap_info member of ieee80211_ht_cap wrapped by le16_to_cpu function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ap.c | 15 ++- drivers/staging/rtl8188eu/include/ieee80211.h | 4 ++-- drivers/staging/rtl8188eu/include/rtw_ht.h| 4 ++-- 3 files

[PATCH 27/41] staging: r8188eu: remove rx_ampdu_maxlen member of ht_priv

2016-08-24 Thread Ivan Safonov
rx_ampdu_maxlen used only once for assigning value. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 1 - drivers/staging/rtl8188eu/include/rtw_ht.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8

[PATCH] mm: memcontrol: avoid unused function warning

2016-08-24 Thread Arnd Bergmann
A bugfix in v4.8-rc2 introduced a harmless warning when CONFIG_MEMCG_SWAP is disabled but CONFIG_MEMCG is enabled: mm/memcontrol.c:4085:27: error: 'mem_cgroup_id_get_online' defined but not used [-Werror=unused-function] static struct mem_cgroup *mem_cgroup_id_get_online(struct mem_cgroup *memcg

[PATCH 05/41] staging: r8188eu: remove issue_action_spct_ch_switch function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 60 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 2 - 2 files changed, 62 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c

[PATCH 38/41] staging: r8188eu: remove some structure definitions from wlan_bssdef.h

2016-08-24 Thread Ivan Safonov
cmd_msg_parm, H2C_SS_RFOFF_PARAM, joinbssrpt_parm, P2P_PS_Offload_t and P2P_PS_CTWPeriod_t structures are not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtl8188e_cmd.h | 30 1 file changed, 30 deletions(-) diff --git a/drivers/staging/rtl818

[PATCH 02/41] staging: r8188eu: remove rtw_get_ie_ex function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 44 -- drivers/staging/rtl8188eu/include/ieee80211.h | 2 -- 2 files changed, 46 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c

[PATCH 06/41] staging: r8188eu: remove hal_ch_offset_to_secondary_ch_offset function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 12 drivers/staging/rtl8188eu/include/ieee80211.h | 1 - 2 files changed, 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/sta

[PATCH 35/41] staging: r8188eu: remove sha256_state structure

2016-08-24 Thread Ivan Safonov
This structure does not used in driver code. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_security.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_security.h b/drivers/staging/rtl8188eu/include/rtw_security.h index ca1247

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Zhang Rui
On 三, 2016-08-24 at 08:17 +, Kuninori Morimoto wrote: > Hi Zhang > > > > > > > > > > > > > > From: Kuninori Morimoto > > > > > > > > rcar-thermal is supporting both > > > > thermal_zone_of_sensor_register() > > > > and > > > > thermal_zone_device_register(). But > > > > thermal_zone_of_se

[PATCH 07/41] staging: r8188eu: remove rtw_set_ie_secondary_ch_offset function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 5 - drivers/staging/rtl8188eu/include/ieee80211.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/staging/rtl8

[PATCH 30/41] staging: r8188eu: remove some structure definitions from include/ieee80211.h

2016-08-24 Thread Ivan Safonov
ieee_ibss_seq, rtw_ieee80211_hdr_qos, eapol, ieee80211_rx_stats, ieee80211_frag_entry, ieee80211_stats, ieee80211_softmac_stats, ieee80211_security, ieee80211_header_data, ieee80211_info_element_hdr, ieee80211_info_element, ieee80211_authentication, ieee80211_probe_response, ieee80211_probe_request

[PATCH 24/41] staging: r8188eu: replace HT_caps_element with ieee80211_ht_cap structure

2016-08-24 Thread Ivan Safonov
HT_caps_element is reimplementation of ieee80211_ht_cap. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ap.c | 10 - drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 6 +++--- drivers/staging/rtl8188eu/core/rtw_mlme.c| 12 +-- drivers/stagi

[PATCH 15/41] staging: r8188eu: replace rtw_ieee80211_ht_cap with ieee80211_ht_cap type in rtw_check_beacon_data function

2016-08-24 Thread Ivan Safonov
rtw_ieee80211_ht_cap is reimplementation of the ieee80211_ht_cap. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/core/rtw_ap.c i

[PATCH 19/41] staging: r8188eu: change rtw_ieee80211_ht_cap type of local variables to ieee80211_ht_cap

2016-08-24 Thread Ivan Safonov
rtw_ieee80211_ht_cap is reimplementation of the ieee80211_ht_cap. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 9 drivers/staging/rtl8188eu/core/rtw_mlme.c | 31 +- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 7 +++-

[PATCH] fb: udl: fix build without CONFIG_FB_DEFERRED_IO

2016-08-24 Thread Arnd Bergmann
A cleanup in v4.8 dropped several dependencies, but caused the udl driver to fail building when CONFIG_FB_DEFERRED_IO is not set: drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_open': drivers/gpu/drm/udl/udl_fb.c:206:23: error: 'struct fb_info' has no member named 'fbdefio' if (fb_defio && (

[PATCH 12/41] staging: r8188eu: remove rtw_action_frame_parse function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 29 -- drivers/staging/rtl8188eu/include/ieee80211.h | 2 -- 2 files changed, 31 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c

[PATCH 09/41] staging: r8188eu: remove rtw_set_ie_ch_switch function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 11 --- drivers/staging/rtl8188eu/include/ieee80211.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/sta

[PATCH 37/41] staging: r8188eu: remove odm_sta_info structure

2016-08-24 Thread Ivan Safonov
odm_sta_info structure does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/odm.h | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/odm.h b/drivers/staging/rtl8188eu/include/odm.h index dbebf17..21fb4225 100644 ---

[PATCH 29/41] staging:r8188eu: remove unnecessary include from include/rtw_ht.h

2016-08-24 Thread Ivan Safonov
osdep_service.h does not required in include/rtw_ht.h. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_ht.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_ht.h b/drivers/staging/rtl8188eu/include/rtw_ht.h index 0ee11ef..d842ead 100

[PATCH 13/41] staging: r8188eu: remove action_public_str function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Also _action_public_str array removed. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 26 -- drivers/staging/rtl8188eu/include/ieee80211.h | 2 -- 2 files changed, 28 deletions(-) diff --git a/drivers

[PATCH] serial: 8250_dw: Check the data->pclk when get apb_pclk

2016-08-24 Thread Kefeng Wang
It should check the data->pclk, not data->clk when get apb_pclk. Fixes: c8ed99d4f6a8("serial: 8250_dw: Add support for deferred probing") Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8

Re: [REGRESSION] Select hang with zero sized UDP packets

2016-08-24 Thread Dan Akunis
When select wakes up on a UDP socket, user is expecting to get data. Getting 0 from recvfrom() or whatever read function she uses, is a wrong attitude. I agree with David. The unit test that expects select to wake up is wrong and should be changed. -Original Message- From: David Miller

Re: [PATCH v3 3/3] serial: 8250_dw: add ACPI support for uart on Hisilicon Hip05 soc

2016-08-24 Thread Kefeng Wang
On 2016/8/22 22:05, Heikki Krogerus wrote: > Hi, > > On Mon, Aug 22, 2016 at 02:24:14PM +0300, Andy Shevchenko wrote: >> On Fri, 2016-07-15 at 19:01 +0800, Kefeng Wang wrote: >>> Use built-in device properties to set device parameters for the >>> existing device probed by acpi. >> >> acpi -> ACP

[PATCH 21/41] staging: r8188eu: remove rtw_ieee80211_ht_cap structure

2016-08-24 Thread Ivan Safonov
rtw_ieee80211_ht_cap does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/wifi.h | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h index e7c5121..e049eed 100644 ---

[PATCH 17/41] staging: r8188eu: replace sizeof(struct rtw_ieee80211_ht_cap) with sizeof(struct ieee80211_ht_cap)

2016-08-24 Thread Ivan Safonov
Values of this expressions are equal, but ieee80211_ht_cap is library type. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 5 +++-- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 8 +--- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 6 -- 3 files ch

Re: [PATCH RFC RESEND] Perf: lookup dwarf unwind stack info in debug file pointed by .gnu_debuglink

2016-08-24 Thread Matija Glavinic Pecotic
On 24/08/16 09:30, Jiri Olsa wrote: > On Tue, Aug 23, 2016 at 06:18:10PM +0200, Matija Glavinic Pecotic wrote: >> -ret = filename__read_debuglink(filename, debuglink, >> - size - (debuglink - filename)); >> +ret = filename__read_debu

[PATCH 23/41] staging: r8188eu: simplify HT_caps_element structure

2016-08-24 Thread Ivan Safonov
Now HT_caps_element structure is similar to ieee80211_ht_caps. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ap.c| 6 +++--- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 6 +++--- drivers/staging/rtl8188eu/core/rtw_mlme.c | 8 drivers/staging/rtl

[PATCH 26/41] staging: r8188eu: remove unused members of ht_priv structure

2016-08-24 Thread Ivan Safonov
tx_amsdu_enable and tx_amdsu_maxlen are not used in driver code. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_ht.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_ht.h b/drivers/staging/rtl8188eu/include/rtw_ht.h index 7beb0b1.

[PATCH 18/41] staging: r8188eu: remove dead code from rtw_get_cur_max_rate function

2016-08-24 Thread Ivan Safonov
Values assugned to pht_capie and mcs_rate variables, but variables does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c b/drivers/staging/rtl8188eu/c

[PATCH 01/41] staging: r8188eu: remove rtw_ies_remove_ie function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 47 -- drivers/staging/rtl8188eu/include/ieee80211.h | 2 -- 2 files changed, 49 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c

[PATCH 08/41] staging: r8188eu: remove rtw_set_ie_mesh_ch_switch_parm function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 13 - drivers/staging/rtl8188eu/include/ieee80211.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/s

Re: [PATCH][RFC] printk: make pr_cont buffer per-cpu

2016-08-24 Thread Petr Mladek
On Wed 2016-08-24 10:14:20, Sergey Senozhatsky wrote: > Hello, > > On (08/23/16 13:47), Petr Mladek wrote: > [..] > > > if (!(lflags & LOG_NEWLINE)) { > > > + if (!this_cpu_read(cont_printing)) { > > > + if (system_state == SYSTEM_RUNNING) { > > > +

[PATCH 41/41] staging: r8188eu: remove some structures definitions from rtw_ioctl.h

2016-08-24 Thread Ivan Safonov
oid_funs_node and oid_obj_priv structures are not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_ioctl.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_ioctl.h b/drivers/staging/rtl8188eu/include/rtw_ioctl.h

[PATCH 31/41] staging: r8188eu: remove some structure definitions from Hal8188EPhyCfg.h

2016-08-24 Thread Ivan Safonov
ant_sel_ofdm and ant_sel_cck structures are not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h b/drivers/staging/rtl8188eu/include/

[PATCH 11/41] staging: r8188eu: remove dump_wps_ie function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 21 - drivers/staging/rtl8188eu/include/ieee80211.h | 2 -- 2 files changed, 23 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/d

[PATCH 14/41] staging: r8188eu: remove for_each_ie macro

2016-08-24 Thread Ivan Safonov
for_each_ie does not used in the driver code. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/ieee80211.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/ieee80211.h b/drivers/staging/rtl8188eu/include/ieee80211.h index ddb9db4.

[PATCH 34/41] staging: r8188eu: remove agg_pkt_info structure

2016-08-24 Thread Ivan Safonov
This structure does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_xmit.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_xmit.h b/drivers/staging/rtl8188eu/include/rtw_xmit.h index 7895008..cb49aca 100644 --- a/driv

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Kuninori Morimoto
Hi Zhang > > > > > From: Kuninori Morimoto > > > > > > > > > > rcar-thermal is supporting both > > > > > thermal_zone_of_sensor_register() > > > > > and > > > > > thermal_zone_device_register(). But > > > > > thermal_zone_of_sensor_register() > > > > > doesn't enable hwmon as default. > > > > >

[PATCH 03/41] staging: r8188eu: remove rtw_ap_inform_ch_switch function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ap.c| 34 -- drivers/staging/rtl8188eu/include/rtw_ap.h | 1 - 2 files changed, 35 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/

[PATCH 04/41] staging: r8188eu: remove secondary_ch_offset_to_hal_ch_offset function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 12 drivers/staging/rtl8188eu/include/ieee80211.h | 1 - 2 files changed, 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/sta

[PATCH 28/41] staging: r8188eu: remove dead code from rtw_update_ht_cap function

2016-08-24 Thread Ivan Safonov
This code affect only to local variables that does not used later. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c

[PATCH 25/41] staging: r8188eu: remove HT_caps_element structure

2016-08-24 Thread Ivan Safonov
This type does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/wifi.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h index 28e1dde..9e08e68 100644 --- a/drivers/staging/r

[PATCH 36/41] staging: r8188eu: remove smooth_rssi_data structure

2016-08-24 Thread Ivan Safonov
This structure does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index b0373b6..758cd16 100644 --- a/dr

[PATCH 10/41] staging: r8188eu: remove dump_ies function

2016-08-24 Thread Ivan Safonov
Driver does not use this function. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 16 drivers/staging/rtl8188eu/include/ieee80211.h | 1 - 2 files changed, 17 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers

[PATCH 16/41] staging: r8188eu: replace rtw_ieee80211_ht_cap with ieee80211_ht_cap type in translate_scan function

2016-08-24 Thread Ivan Safonov
rtw_ieee80211_ht_cap is reimplementation of the ieee80211_ht_cap. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl

Re: [PATCH 1/2] clk: samsung: exynos5260: Move struct samsung_cmu_info to init section

2016-08-24 Thread Chanwoo Choi
On 2016년 08월 24일 13:43, Stephen Boyd wrote: > On 08/23, Sylwester Nawrocki wrote: >> On 08/23/2016 04:35 AM, Chanwoo Choi wrote: >> I checked stripped object files and it seems with the patch there >> is some saving of the kernel image size. Exactly 784 bytes, which >> makes zImage smaller by 480 b

[PATCH 22/41] staging: r8188eu: remove HT_cap member of HT_caps_element structure

2016-08-24 Thread Ivan Safonov
This member used only once and can be replaced with address of HT_caps_element. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 3 ++- drivers/staging/rtl8188eu/include/wifi.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/sta

Re: [PATCH] sched: cpufreq: ignore SMT when determining max cpu capacity

2016-08-24 Thread Morten Rasmussen
On Fri, Aug 19, 2016 at 01:43:47PM -0700, Steve Muckle wrote: > PELT does not consider SMT when scaling its utilization values via > arch_scale_cpu_capacity(). The value in rq->cpu_capacity_orig does > take SMT into consideration though and therefore may be smaller than > the utilization reported b

Re: x86/PCI: Scan all functions during probing

2016-08-24 Thread Thomas Gleixner
On Thu, 18 Aug 2016, Bjorn Helgaas wrote: > I looked up the spec: PCI (not PCIe) r3.0, sec 3.2.2.3.4, says: > > A single-function device may optionally respond to all function > numbers as the same function or may ... respond only to function 0 > and not respond to the other function numbers

Re: [PATCH] mm: memcontrol: avoid unused function warning

2016-08-24 Thread Michal Hocko
On Wed 24-08-16 10:22:43, Arnd Bergmann wrote: > A bugfix in v4.8-rc2 introduced a harmless warning when CONFIG_MEMCG_SWAP > is disabled but CONFIG_MEMCG is enabled: > > mm/memcontrol.c:4085:27: error: 'mem_cgroup_id_get_online' defined but not > used [-Werror=unused-function] > static struct me

Re: [PATCH 3/3] clk: keystone: Add sci-clk driver support

2016-08-24 Thread Stephen Boyd
On 08/19, Nishanth Menon wrote: > THANKO'S RAREMONO AM/FM/SW RADIO RECEIVER USB DRIVER > M: Hans Verkuil > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > index e2d9bd760c84..d1724999be78 100644 > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > @@ -179,6 +179,19 @@ config COMM

[RESEND PATCH] [media] atmel-isc: remove the warning

2016-08-24 Thread Songjun Wu
Replace the 'IS_ERR_VALUE(irq)' with 'ret < 0' in function 'atmel_isc_probe'. Reported-by: Hans Verkuil Signed-off-by: Songjun Wu --- drivers/media/platform/atmel/atmel-isc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers

Re: setitimer() doesn't work properly starting with 4.8-rc1

2016-08-24 Thread Thomas Gleixner
On Wed, 17 Aug 2016, Andrei Vagin wrote: Cc'ing scheduler folks. > On Wed, Aug 17, 2016 at 12:01 PM, Andrei Vagin wrote: > > Hello, > > > > I found that setitimer() doesn't work properly on out test AMD fitlet. > > It works correctly in the 4.7 kernel and doesn't work in 4.8-rc1. > > > > A small

Re: [PATCH v2] x86/tsc: Set X86_FEATURE_TSC_RELIABLE to skip refined calibration

2016-08-24 Thread Thomas Gleixner
On Tue, 16 Aug 2016, Bin Gao wrote: > On some newer Intel x86 processors/SoCs the TSC frequency can be directly > calculated by factors read from specific MSR registers or from a cpuid > leaf (0x15). TSC frequency calculated by native msr/cpuid is absolutely > accurate so we should always skip cali

Re: [PATCH 2/2] ARM: dts: add TOPEET itop elite based board

2016-08-24 Thread Ayaka
從我的 iPad 傳送 > Rob Herring 於 2016年8月24日 上午6:38 寫道: > >> On Tue, Aug 23, 2016 at 1:36 PM, ayaka wrote: >> >>> On 08/24/2016 02:14 AM, Rob Herring wrote: >>> On Mon, Aug 22, 2016 at 10:18:09PM +0800, Randy Li wrote: The TOPEET itop exynos 4412 have three versions base board. Th

Re: [PATCH 1/2] clk: mvebu: set flags in CP110 gate clock

2016-08-24 Thread Marcin Wojtas
HI Andrew, 2016-08-23 16:16 GMT+02:00 Andrew Lunn : > On Tue, Aug 23, 2016 at 08:26:48AM +0200, Marcin Wojtas wrote: >> Armada CP110 system controller comprise its own routine responsble >> for registering gate clocks. Among others 'flags' field in >> struct clk_init_data was not set, using a rand

Re: [PATCH V5] clk: bcm: Add driver for BCM53573 ILP clock

2016-08-24 Thread Stephen Boyd
On 08/23, Rafał Miłecki wrote: > diff --git a/drivers/clk/bcm/clk-bcm53573-ilp.c > b/drivers/clk/bcm/clk-bcm53573-ilp.c > new file mode 100644 > index 000..b7ac0eb > --- /dev/null > +++ b/drivers/clk/bcm/clk-bcm53573-ilp.c > @@ -0,0 +1,146 @@ > +/* > + * Copyright (C) 2016 Rafał Miłecki > + *

[PATCH] Input: elants_i2c - get product id on recovery mode for FW update

2016-08-24 Thread Johnny Chuang
This CL takes the responsibility for getting product/hardware id on recovery mode. It will fix firmware update script could not find correspond firmware file name on recovery mode. BTW, firmware must need to support reading product/hardware id on boot code. Signed-off-by: Johnny Chuang --- drive

<    2   3   4   5   6   7   8   9   >