Re: [PATCH] mtd: bcm47xxsflash: use uncached MMIO access for BCM53573

2016-11-07 Thread Brian Norris
Hi, On Mon, Aug 15, 2016 at 02:21:28PM +0200, Rafał Miłecki wrote: > From: Rafał Miłecki > > BCM53573 is a new series of Broadcom's SoCs. It's based on ARM and uses > this old ChipCommon-based flash access. Early tests resulted in flash > corruptions that were tracked down to using cached MMIO f

Re: [PATCH v2 00/12] Fix and update HOWTO Korean translation

2016-11-07 Thread SeongJae Park
On Tue, Nov 8, 2016 at 9:05 AM, Jonathan Corbet wrote: > On Tue, 1 Nov 2016 05:27:09 +0900 > SeongJae Park wrote: > >> This patchset applies ReST conversion effort for HOWTO document to its Korean >> translation. It also contains fixup of trivial nitpicks in the document and >> the translation.

Re: scripts/gcc-plugins/gcc-common.h:4:22: fatal error: bversion.h: No such file or directory

2016-11-07 Thread Fengguang Wu
Hi Emese, On Sun, Nov 06, 2016 at 09:19:05AM +0100, Emese Revfy wrote: On Sun, 6 Nov 2016 07:09:57 +0800 kbuild test robot wrote: Hi Emese, FYI, the error/warning still remains. ++(scripts/gcc-plugin.sh:12): main(): gcc-4.6 -E -x c++ - -o /dev/null -Iscripts/gcc-plugins -Iplugin/include

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

2016-11-07 Thread Stephen Rothwell
Hi Kees, FIXME: Add owner of second tree to To: Add author(s)/SOB of conflicting commits. Today's linux-next merge of the kspp tree got a conflict in: mm/page_alloc.c scripts/gcc-plugins/latent_entropy_plugin.c between commits: 38addce8b600 ("gcc-plugins: Add latent_entropy plugin

Re: [PATCH 1/2] arm64: hugetlb: remove the wrong pmd check in find_num_contig()

2016-11-07 Thread Huang Shijie
On Fri, Nov 04, 2016 at 09:48:14AM -0600, Catalin Marinas wrote: > On Fri, Nov 04, 2016 at 10:52:17AM +0800, Huang Shijie wrote: > > On Thu, Nov 03, 2016 at 06:16:16PM -0600, Catalin Marinas wrote: > > > On Thu, Nov 03, 2016 at 10:27:38AM +0800, Huang Shijie wrote: > > > > diff --git a/arch/arm64/m

Summary of LPC guest MSI discussion in Santa Fe (was: Re: [RFC 0/8] KVM PCIe/MSI passthrough on ARM/ARM64 (Alt II))

2016-11-07 Thread Will Deacon
Hi all, I figured this was a reasonable post to piggy-back on for the LPC minutes relating to guest MSIs on arm64. On Thu, Nov 03, 2016 at 10:02:05PM -0600, Alex Williamson wrote: > We can always have QEMU reject hot-adding the device if the reserved > region overlaps existing guest RAM, but I do

[PATCH v9 2/8] power: add power sequence library

2016-11-07 Thread Peter Chen
We have an well-known problem that the device needs to do some power sequence before it can be recognized by related host, the typical example like hard-wired mmc devices and usb devices. This power sequence is hard to be described at device tree and handled by related host driver, so we have crea

[PATCH v9 0/8] power: add power sequence library

2016-11-07 Thread Peter Chen
Hi all, This is a follow-up for my last power sequence framework patch set [1]. According to Rob Herring and Ulf Hansson's comments[2]. The kinds of power sequence instances will be added at postcore_initcall, the match criteria is compatible string first, if the compatible string is not matched b

[PATCH v9 5/8] usb: chipidea: let chipidea core device of_node equal's glue layer device of_node

2016-11-07 Thread Peter Chen
From: Peter Chen At device tree, we have no device node for chipidea core, the glue layer's node is the parent node for host and udc device. But in related driver, the parent device is chipidea core. So, in order to let the common driver get parent's node, we let the core's device node equals glu

[PATCH v9 8/8] ARM: dts: imx6q-evi: Fix onboard hub reset line

2016-11-07 Thread Peter Chen
From: Joshua Clayton Previously the onboard hub was made to work by treating its reset gpio as a regulator enable. Get rid of that kludge now that pwseq has added reset gpio support Move pin muxing the hub reset pin into the usbh1 group Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen -

Re: [Intel-wired-lan] [PATCH] igb: drop field "tail" of struct igb_ring

2016-11-07 Thread Cao jin
On 11/08/2016 02:49 AM, Alexander Duyck wrote: On Mon, Nov 7, 2016 at 4:44 AM, Cao jin wrote: Under certain condition, I find guest will oops on writel() in igb_configure_tx_ring(), because hw->hw_address is NULL. While other register access won't oops kernel because they use wr32/rd32 which

Re: [PATCH v2 2/3] irqchip: mtk-cirq: Add mediatek mtk-cirq implement

2016-11-07 Thread Youlin Pei
On Fri, 2016-11-04 at 22:21 +, Marc Zyngier wrote: > On Fri, Nov 04 2016 at 04:42:57 AM, Youlin Pei > wrote: > > On Tue, 2016-11-01 at 20:49 +, Marc Zyngier wrote: > >> On Tue, Nov 01 2016 at 11:52:01 AM, Youlin Pei > >> wrote: > >> > In Mediatek SOCs, the CIRQ is a low power interrupt

Re: [REVISED DOC on v3] Crossrelease Lockdep

2016-11-07 Thread Byungchul Park
On Thu, Nov 03, 2016 at 05:18:13PM +0900, Byungchul Park wrote: > Hello Peterz, > > I tried to explain about what you asked me for. > I wonder if I did it exactly. But I hope so. > Please let me know if there's something more I need to add. Just to be sure, are you concerning about sync and propa

linux-next: build failure after merge of the sound-asoc tree

2016-11-07 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (arm multi_v7_defconfig) failed like this: sound/soc/sunxi/sun4i-codec.c:1188:2: error: unknown field 'has_reset' specified in initializer .has_reset = true, ^ sound/soc/sunxi/sun4i-codec.c:1188:15: warning: excess elements

[PATCH] staging: lustre: ldlm: pl_recalc time handling is wrong

2016-11-07 Thread James Simmons
The ldlm_pool field pl_recalc_time is set to the current monotonic clock value but the interval period is calculated with the wall clock. This means the interval period will always be far larger than the pl_recalc_period, which is just a small interval time period. The correct thing to do is to use

Re: [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration

2016-11-07 Thread kbuild test robot
Hi Naoya, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.9-rc4 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Naoya-Horiguchi/mm-x86-move-_PAGE_SWP_SOFT_DIRT

[PATCH v9 3/8] binding-doc: usb: usb-device: add optional properties for power sequence

2016-11-07 Thread Peter Chen
Add optional properties for power sequence. Signed-off-by: Peter Chen Acked-by: Rob Herring --- Documentation/devicetree/bindings/usb/usb-device.txt | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/usb-device.txt b/Documentatio

[PATCH v9 1/8] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library

2016-11-07 Thread Peter Chen
Add binding doc for generic power sequence library. Signed-off-by: Peter Chen Acked-by: Philipp Zabel Acked-by: Rob Herring --- .../bindings/power/pwrseq/pwrseq-generic.txt | 48 ++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH v9 4/8] usb: core: add power sequence handling for USB devices

2016-11-07 Thread Peter Chen
Some hard-wired USB devices need to do power sequence to let the device work normally, the typical power sequence like: enable USB PHY clock, toggle reset pin, etc. But current Linux USB driver lacks of such code to do it, it may cause some hard-wired USB devices works abnormal or can't be recogniz

[PATCH v9 6/8] ARM: dts: imx6qdl: Enable usb node children with

2016-11-07 Thread Peter Chen
From: Joshua Clayton Give usb nodes #address and #size attributes, so that a child node representing a permanently connected device such as an onboard hub may be addressed with a attribute Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl.dtsi | 6 ++

[PATCH V3 2/2] ARM: dts: add new compatible stream for i.MX6QP mmdc

2016-11-07 Thread Frank Li
MMDC has a slightly different programming model between imx6q and imx6qp in terms of perf support, it's exactly same for suspend support, so we have fsl,imx6q-mmdc here to save patching suspend driver with the new compatible. Signed-off-by: Frank Li --- Change from V3 to V2 - change commit messag

Re: linux-next: build failure after merge of the sound-asoc tree

2016-11-07 Thread Chen-Yu Tsai
Hi, On Tue, Nov 8, 2016 at 10:47 AM, Stephen Rothwell wrote: > Hi all, > > After merging the sound-asoc tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > sound/soc/sunxi/sun4i-codec.c:1188:2: error: unknown field 'has_reset' > specified in initializer > .has_reset

linux-next: build failure after merge of the block tree

2016-11-07 Thread Stephen Rothwell
Hi Jens, After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this: block/blk-flush.c: In function 'flush_data_end_io': block/blk-flush.c:369:20: error: 'REQ_STARTED' undeclared (first use in this function) rq->cmd_flags &= ~REQ_STARTED;

[PATCH V5 1/3] ARM64 LPC: Indirect ISA port IO introduced

2016-11-07 Thread zhichang.yuan
For arm64, there is no I/O space as other architectural platforms, such as X86. Most I/O accesses are achieved based on MMIO. But for some arm64 SoCs, such as Hip06, when accessing some legacy ISA devices connected to LPC, those known port addresses are used to control the corresponding target devi

[PATCH v9 7/8] ARM: dts: imx6qdl-udoo.dtsi: fix onboard USB HUB property

2016-11-07 Thread Peter Chen
The current dts describes USB HUB's property at USB controller's entry, it is improper. The USB HUB should be the child node under USB controller, and power sequence properties are under it. Besides, using gpio pinctrl setting for USB2415's reset pin. Signed-off-by: Peter Chen Signed-off-by: Josh

[PATCH V5 0/3] ARM64 LPC: legacy ISA I/O support

2016-11-07 Thread zhichang.yuan
This patch supports the IPMI-bt device attached to the Low-Pin-Count interface implemented on Hisilicon Hip06 SoC. --- | LPC host| | | --- |

Re: [PATCH 2/2] Input: add motion-tracking ABS_* bits and docs

2016-11-07 Thread Roderick Colenbrander
On Thu, Sep 29, 2016 at 12:25 AM, Benjamin Tissoires wrote: > > On Sep 28 2016 or thereabouts, Roderick Colenbrander wrote: > > On Wed, Sep 28, 2016 at 10:39 AM, Dmitry Torokhov > > wrote: > > > > > > On Tue, Sep 27, 2016 at 4:38 PM, Roderick Colenbrander > > > wrote: > > > > From: Roderick Cole

Re: [PATCH V2 2/5] arm64: Allow hw watchpoint at varied offset from base address

2016-11-07 Thread Will Deacon
Hi Pratyush, On Thu, Oct 20, 2016 at 11:18:14AM +0530, Pratyush Anand wrote: > ARM64 hardware supports watchpoint at any double word aligned address. > However, it can select any consecutive bytes from offset 0 to 7 from that > base address. For example, if base address is programmed as 0x420030 a

Re: [PATCH] usb: renesas_usbhs: simplify list handling

2016-11-07 Thread Masahiro Yamada
>> Fixes: 6acb95d4e070 ("usb: renesas_usbhs: modify packet queue control >> method") This is not a fix, but a clean-up patch. >> Signed-off-by: Nicholas Mc Guire >> --- >> Found by simple coccinelle scanner >> >> Compile tested with: multi_v7_defconfig (implies >> CONFIG_USB_RENESAS_USBHS=m)

[PATCH V5 2/3] ARM64 LPC: Add missing range exception for special ISA

2016-11-07 Thread zhichang.yuan
This patch solves two issues: 1) parse and get the right I/O range from DTS node whose parent does not define the corresponding ranges property; There are some special ISA/LPC devices that work on a specific I/O range where it is not correct to specify a ranges property in DTS parent node as cpu a

Re: [PATCH V2 3/5] arm64: hw_breakpoint: Handle inexact watchpoint addresses

2016-11-07 Thread Will Deacon
On Thu, Oct 20, 2016 at 11:18:15AM +0530, Pratyush Anand wrote: > From: Pavel Labath > > Arm64 hardware does not always report a watchpoint hit address that > matches one of the watchpoints set. It can also report an address > "near" the watchpoint if a single instruction access both watched and

Re: linux-next: build failure after merge of the block tree

2016-11-07 Thread Jens Axboe
On 11/07/2016 08:21 PM, Stephen Rothwell wrote: Hi Jens, After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this: block/blk-flush.c: In function 'flush_data_end_io': block/blk-flush.c:369:20: error: 'REQ_STARTED' undeclared (first use in this function)

Re: [PATCH v2 2/2] cpufreq: powernv: Use PMCR to verify global and local pstate

2016-11-07 Thread Gautham R Shenoy
On Mon, Nov 07, 2016 at 01:09:09PM +0530, Akshay Adiga wrote: > As fast_switch() may get called with interrupt disable mode, we cannot > hold a mutex to update the global_pstate_info. So currently, fast_switch() > does not update the global_pstate_info and it will end up with stale data > whenever

[PATCH v3 00/10] Add DT support for ohci-da8xx

2016-11-07 Thread Axel Haslam
The purpose of this patch series is to add DT support for the davinci ohci driver. To be able to use device tree to probe the driver, we need to remove the platform callbacks that are handling vbus and over current. The first four patches prepare the stage by allowing to use a regulator instead o

[PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-07 Thread zhichang.yuan
On hip06, the accesses to LPC peripherals work in an indirect way. A corresponding LPC driver configure some registers in LPC master at first, then the real accesses on LPC slave devices are finished by the LPC master, which is transparent to LPC driver. This patch implement the relevant driver for

Re: Zram/Zmalloc Questions

2016-11-07 Thread Sergey Senozhatsky
On (11/07/16 19:36), Cory Pruce wrote: >Also, my emails get marked as spam by [1]vger.kernel.org. Any experience >with this? switch to plain-text mode. don't send out in HTML format as you do now. -ss

Re: [PATCH v6 2/6] mm/cma: introduce new zone, ZONE_CMA

2016-11-07 Thread Joonsoo Kim
On Mon, Nov 07, 2016 at 03:46:02PM +0800, Chen Feng wrote: > > > On 2016/11/7 15:44, Chen Feng wrote: > > On 2016/11/7 15:27, Joonsoo Kim wrote: > >> On Mon, Nov 07, 2016 at 03:08:49PM +0800, Chen Feng wrote: > >>> > >>> > >>> On 2016/11/7 14:15, Joonsoo Kim wrote: > On Tue, Nov 01, 2016 at

Re: [Resend][PATCH] cpufreq: conservative: Decrease frequency faster when the timer deferred

2016-11-07 Thread Viresh Kumar
On 07-11-16, 19:27, Stratos Karafotis wrote: > Yes, it could be done only when we decrease frequency. But I thought that > maybe > this is against conservative governor principle. > > I initially observed this issue on a Snapdragon 808 using conservative on the > big cluster (A57). The CPU seemed

Re: [PATCH v3] cpufreq: stats: clear statistics

2016-11-07 Thread Viresh Kumar
On 07-11-16, 10:02, Markus Mayer wrote: > From: Markus Mayer > > Allow CPUfreq statistics to be cleared by writing anything to > /sys/.../cpufreq/stats/reset. > > Signed-off-by: Markus Mayer > --- > > Changes since v2: > - changed name of write-only macro to cpufreq_freq_attr_wo() > -

Re: [PATCH v3 2/2] mm: Check kmem_create_cache flags are commons

2016-11-07 Thread Thomas Garnier
On Mon, Nov 7, 2016 at 3:07 PM, Andrew Morton wrote: > On Mon, 7 Nov 2016 13:11:15 -0800 Thomas Garnier wrote: > >> Verify that kmem_create_cache flags are not allocator specific. It is >> done before removing flags that are not available with the current >> configuration. > > What is the reason

Re: [PATCH v3 1/2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB

2016-11-07 Thread Thomas Garnier
On Mon, Nov 7, 2016 at 2:49 PM, Andrew Morton wrote: > On Mon, 7 Nov 2016 14:32:56 -0800 Thomas Garnier wrote: > >> On Mon, Nov 7, 2016 at 2:19 PM, Andrew Morton >> wrote: >> > On Mon, 7 Nov 2016 13:11:14 -0800 Thomas Garnier >> > wrote: >> > >> >> From: Greg Thelen >> >> >> >> While testin

linux-next: manual merge of the tip tree with the drm-intel tree

2016-11-07 Thread Stephen Rothwell
Hi all, FIXME: Add owner of second tree to To: Add author(s)/SOB of conflicting commits. Today's linux-next merge of the tip tree got a conflict in: drivers/gpu/drm/i915/i915_gem_shrinker.c between commits: 1233e2db199d ("drm/i915: Move object backing storage manipulation to its own

[PATCH] ixgbe: Remove out-of-tree references

2016-11-07 Thread Jamie Bainbridge
The module parameters FdirMode, FdirPballoc, AtrSampleRate, or Node are not available in the in-kernel driver, only in Intel's out-of-tree SourceForge driver. Remove these from the kernel documentation. Remove reference to Intel affinity script. Move max_vfs to tidy up. Signed-off-by: Jamie Bainb

[PATCH] mm: dmapool: Fixed following warnings

2016-11-07 Thread Ashish Kalra
From: AshishKalra WARNING: Prefer 'unsigned int' to bare use of 'unsigned' WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. WARNING: Missing a blank line after declarations Warning were detected with checkpatch.pl Signed-off-by: AshishKalra --

Re: [PATCH v3 1/1] skd_main: use %*ph to dump small buffers

2016-11-07 Thread Jens Axboe
On 10/22/2016 10:52 AM, Andy Shevchenko wrote: Replace custom approach by %*ph specifier to dump small buffers in hex format. Unfortunately we can't use print_hex_dump_bytes() here since tha gap is present, though one familiar with the code may change this. Added (finally) for 4.10, thanks. -

[RFC] mem-hotplug: shall we skip unmovable node when doing numa balance?

2016-11-07 Thread Xishi Qiu
On mem-hotplug system, there is a problem, please see the following case. memtester xxG, the memory will be alloced on a movable node. And after numa balancing, the memory may be migrated to the other node, it may be a unmovable node. This will reduce the free memory of the unmovable node, and may

[PATCHv2 00/49] thermal: reorganizing thermal core

2016-11-07 Thread Eduardo Valentin
Folks, Rui, After some radio silence time, here is a refreshed series of patches of the thermal sysfs code refactoring. The only change in behavior is that now, thermal zones with empty .type will not be allowed to be registered. After this series, thermal core is split into the following files:

[PATCHv2 03/49] thermal: core: group device_create_file() calls that are always created

2016-11-07 Thread Eduardo Valentin
Simple code reorganization to group files that are always created when registering a thermal zone. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 24 1 file changed, 12 ins

[PATCHv2 17/49] thermal: core: split policy_store

2016-11-07 Thread Eduardo Valentin
Similarly to passive_store, policy_store now is split between thermal core data structure handling and sysfs handling. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 37

[PATCHv2 20/49] thermal: core: treat correctly the return value of *scanf calls

2016-11-07 Thread Eduardo Valentin
This patch checks the return value of all calls to *scanf. The check is to simply match the number of expect inputs. The current code does not do any recovery in case the number of treated inputs are different than the expected. Therefore, keeping the same behavior. Cc: Zhang Rui Cc: linux...@vg

[PATCHv2 12/49] thermal: core: move the trip attrs to the tz sysfs I/F section

2016-11-07 Thread Eduardo Valentin
Code reorganization to keep all the sysfs I/F of a thermal zone in the same section. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 216 - 1 file changed, 10

[PATCHv2 09/49] thermal: core: move power actor code out of sysfs I/F section

2016-11-07 Thread Eduardo Valentin
Simply reorganize code to keep only functions of sysfs interface of thermal zone device together. Therefore, move the power actor code out of the sysfs I/F section. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/th

[PATCHv2 11/49] thermal: core: fix style on remove_trip_attrs()

2016-11-07 Thread Eduardo Valentin
Align to parentheses, removing checkpatch warning. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/

[PATCHv2 07/49] thermal: core: move passive attr to tz->device.groups

2016-11-07 Thread Eduardo Valentin
This patch moves the passive attribute to tz->device.groups. Moving the passive attribute also requires a .is_visible() callback implementation for its attribute group. The logic behind the visibility of passive attribute is kept the same. We only expose the passive attribute if the thermal driver

[PATCHv2 05/49] thermal: core: move emul_temp creation to tz->device.groups

2016-11-07 Thread Eduardo Valentin
emul_temp creation is dependent on a compile time condition. Moving to tz->device.groups. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions

[PATCHv2 14/49] thermal: core: move trips attributes to tz->device.groups

2016-11-07 Thread Eduardo Valentin
Finally, move the last thermal zone sysfs attributes to tz->device.groups: trips attributes. This requires adding a attribute_group to thermal_zone_device, creating it dynamically, and then setting all trips attributes in it. The trips attribute is then added to the tz->device.groups. As the remov

[PATCHv2 24/49] thermal: core: move cooling device sysfs to thermal_sysfs.c

2016-11-07 Thread Eduardo Valentin
This is a code reorganization, simply to concentrate the sysfs handling functions in thermal_sysfs.c. This patch moves the cooling device handling functions. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_

[PATCHv2 33/49] thermal: core: fix couple of style issues on __bind() helper

2016-11-07 Thread Eduardo Valentin
Removing style issues on __bind() and its helpers. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/therma

[PATCHv2 19/49] thermal: core: move to_thermal_zone() macro to header file

2016-11-07 Thread Eduardo Valentin
Simply making this macro available to other thermal core files. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 3 --- drivers/thermal/thermal_core.h | 3 +++ 2 files changed, 3 insertions(+), 3 del

[PATCHv2 48/49] thermal: sysfs: use kcalloc() instead of kzalloc()

2016-11-07 Thread Eduardo Valentin
Simplify size computation by using kcalloc() for allocating memory for arrays. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) dif

[PATCHv2 43/49] thermal: core: standardize line breaking alignment

2016-11-07 Thread Eduardo Valentin
Pass through the code to remove check suggested by checkpatch.pl (alignment to parenthesis): CHECK: Alignment should match open parenthesis Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 32 +++

[PATCHv2 46/49] thermal: core: improve kerneldoc entry of thermal_cooling_device_unregister

2016-11-07 Thread Eduardo Valentin
Improve description and keep 80 columns limit. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/thermal_core.c

[PATCHv2 38/49] thermal: core: add a comment describing the power actor section

2016-11-07 Thread Eduardo Valentin
Simply marking the power actor section and adding a comment describing it. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/thermal/th

[PATCHv2 40/49] thermal: sysfs: remove symbols of emul_temp when config is disabled

2016-11-07 Thread Eduardo Valentin
Remove the following warning: In file included from drivers/thermal/thermal_sysfs.c:19:0: include/linux/device.h:575:26: warning: ‘dev_attr_emul_temp’ defined but not used [-Wunused-variable] struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)

[PATCHv2 41/49] thermal: core: remove FSF address in the GPL notice

2016-11-07 Thread Eduardo Valentin
Simplify the GPL notice by removing the FSF address. No need to track FSF location in this file. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 13 - 1 file changed, 13 deletions(-) di

[PATCHv2 37/49] thermal: core: add a comment describing the main update loop

2016-11-07 Thread Eduardo Valentin
Simply marking the main update loop section and adding a comment describing it. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers

[PATCHv2 39/49] thermal: core: add a comment describing the device management section

2016-11-07 Thread Eduardo Valentin
comment describing the section with function to handle registration, unregistration, binding, and unbinding of thermal devices. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 11 +-- 1 file

[PATCHv2 32/49] thermal: core: move bind_tz() to where it is used

2016-11-07 Thread Eduardo Valentin
Moving the helper to closer where it is used. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 80 +- 1 file changed, 40 insertions(+), 40 deletions(-) diff -

[PATCHv2 30/49] thermal: core: move __unbind() helper to where it is used

2016-11-07 Thread Eduardo Valentin
Simply moving the helper to closer where it is actually used. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a

[PATCHv2 36/49] thermal: core: move notify to the zone update section

2016-11-07 Thread Eduardo Valentin
moving the helper function to closer to similar functions. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-)

[PATCHv2 22/49] thermal: core: move thermal_zone sysfs to thermal_sysfs.c

2016-11-07 Thread Eduardo Valentin
This is a code reorganization, simply to concentrate the code handling sysfs in a specific file: thermal_sysfs.c. Right now, moving only the sysfs entries of thermal_zone_device. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- dri

[PATCHv2 23/49] thermal: core: move to_cooling_device macro to header file

2016-11-07 Thread Eduardo Valentin
Make the to_cooling_device() macro available across files in thermal core. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 3 --- drivers/thermal/thermal_core.h | 3 +++ 2 files changed, 3 insertion

[PATCHv2 21/49] thermal: core: match parenthesis on code alignment

2016-11-07 Thread Eduardo Valentin
Cosmetic change in the sysfs handling functions, as recommended by checkpatch.pl. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

[PATCHv2 16/49] thermal: core: split passive_store

2016-11-07 Thread Eduardo Valentin
Split passive_store between sysfs handling and thermal core internal data handling. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 62 -- drivers/thermal/the

[PATCHv2 18/49] thermal: core: split available_policies_show()

2016-11-07 Thread Eduardo Valentin
This patch creates a helper to build a list of available governors. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 35 --- drivers/thermal/thermal_core.h | 1 + 2 f

[PATCHv2 02/49] thermal: core: group thermal_zone DEVICE_ATTR's declarations

2016-11-07 Thread Eduardo Valentin
Simply reorganize the code to have all DEVICE_ATTR's in one point in the file. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions

[PATCHv2 10/49] thermal: core: remove useless empty line

2016-11-07 Thread Eduardo Valentin
Fix style problem on create_trip_attrs(); Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_co

[PATCHv2 25/49] thermal: core: remove a couple of style issues on helpers

2016-11-07 Thread Eduardo Valentin
Reorganizing the code of helper functions to improve readability and style, as recommended by checkpatch.pl. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 9 + 1 file changed, 5 insertions

[PATCHv2 01/49] thermal: core: prevent zones with no types to be registered

2016-11-07 Thread Eduardo Valentin
There are APIs that rely on tz->type. This patch prevent thermal zones without it to be registered. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 16 1 file changed, 8 insertions(

[PATCHv2 06/49] thermal: core: move mode attribute to tz->device.groups

2016-11-07 Thread Eduardo Valentin
Moving mode attribute to tz->device.groups requires the implementation of a .is_visible() callback. The condition returned by .is_visible() of the mode attribute group is kept the same, we allow the attribute to be visible only if ops->get_mode() is set by the thermal driver. Cc: Zhang Rui Cc: li

Re: [PATCH V5 2/3] ARM64 LPC: Add missing range exception for special ISA

2016-11-07 Thread kbuild test robot
Hi zhichang.yuan, [auto build test ERROR on arm64/for-next/core] [also build test ERROR on v4.9-rc4 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/zhichang-yuan/ARM64-LPC-legacy-I

[PATCHv2 35/49] thermal: core: add inline to print_bind_err_msg()

2016-11-07 Thread Eduardo Valentin
Given that this is simple wrapper, adding the inline flag. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/ther

[PATCHv2 28/49] thermal: core: move idr handling to device management section

2016-11-07 Thread Eduardo Valentin
Given that idr is only used to get id for thermal devices (zones and cooling), makes sense to move the code closer. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 48 +--

[PATCHv2 49/49] thermal: core: move slop and offset helpers to thermal_helpers.c

2016-11-07 Thread Eduardo Valentin
Reorganize code to reflect better placement. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c| 30 -- drivers/thermal/thermal_helpers.c | 30

[PATCHv2 04/49] thermal: core: use dev.groups to manage always present tz attributes

2016-11-07 Thread Eduardo Valentin
Thermal zones attributes are all being created using device_create_file(). This has the disadvantage of making the code complicated and sometimes we may miss the cleanup of them. This patch starts to move the thermal zone sysfs attributes to the dev.groups, so Linux device core manage them for us.

[PATCHv2 42/49] thermal: core: small style fix when checking for __find_governor()

2016-11-07 Thread Eduardo Valentin
Remove style issue: CHECK: Comparison to NULL could be written "!__find_governor" + if (__find_governor(governor->name) == NULL) { Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 4 ++-- 1 fil

[PATCHv2 44/49] thermal: core: remove void function return statements

2016-11-07 Thread Eduardo Valentin
Simply removing useless returns of void functions. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal

[PATCHv2 13/49] thermal: core: create tz->device.groups dynamically

2016-11-07 Thread Eduardo Valentin
This is a patch to allow adding groups created dynamically. For now we create only the existing group. However, this is a preparation to allow creating trip groups, which are determined only when the number of trips are known at runtime. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel

[PATCHv2 31/49] thermal: core: move bind_cdev() to where it is used

2016-11-07 Thread Eduardo Valentin
Moving the helper to closer where it is used. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 76 +- 1 file changed, 38 insertions(+), 38 deletions(-) diff -

[PATCHv2 27/49] thermal: core: group functions related to governor handling

2016-11-07 Thread Eduardo Valentin
Organize thermal core code to group the functions handling with governor manipulation in one single section. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 153 +

[PATCHv2 29/49] thermal: core: small style fix on __unbind() helper

2016-11-07 Thread Eduardo Valentin
Simply aligning to parenthesis. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/the

Re: [PATCH V5 2/3] ARM64 LPC: Add missing range exception for special ISA

2016-11-07 Thread kbuild test robot
Hi zhichang.yuan, [auto build test ERROR on arm64/for-next/core] [also build test ERROR on v4.9-rc4 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/zhichang-yuan/ARM64-LPC-legacy-I

[PATCHv2 45/49] thermal: core: remove style warnings and checks

2016-11-07 Thread Eduardo Valentin
Removing several style issues in thermal code code. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCHv2 26/49] thermal: core: introduce thermal_helpers.c

2016-11-07 Thread Eduardo Valentin
Here we have a simple code organization. This patch moves functions that do not need to handle thermal core internal data structure to thermal_helpers.c file. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/Makefile

linux-next: manual merge of the tty tree with the jc_docs tree

2016-11-07 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the tty tree got a conflict in: Documentation/VGA-softcursor.txt between commits: 27641b953c54 ("Documentation/VGA-softcursor.txt: convert to ReST markup") 9d85025b0418 ("docs-rst: create an user's manual book") from the jc_docs tree and commit: b9

[PATCH] cpufreq: governor: Don't use 'timer' keyword

2016-11-07 Thread Viresh Kumar
The earlier implementation of governors used background timers and so functions, mutex, etc had 'timer' keyword in their names. But that's not true anymore. Replace 'timer' with 'update', as those functions, variables are based around updates to frequency. Signed-off-by: Viresh Kumar --- driver

net/sunrpc/clnt.c:2773 suspicious rcu_dereference_check() usage!

2016-11-07 Thread Ross Zwisler
I've got a virtual machine that has some NFS mounts, and with a newly compiled kernel based on v4.9-rc3 I see the following warning/info message: [ 42.750181] === [ 42.750192] [ INFO: suspicious RCU usage. ] [ 42.750203] 4.9.0-rc3-2-g7b6e7de #3 Not tainted [

linux-next: manual merge of the scsi tree with the block tree

2016-11-07 Thread Stephen Rothwell
Hi James, Today's linux-next merge of the scsi tree got a conflict in: drivers/scsi/ufs/ufshcd.c between commit: e806402130c9 ("block: split out request-only flags into a new namespace") from the block tree and commit: 2266d5678ad1 ("scsi: ufs: fix sense buffer size to 18 bytes") from

Re: [PATCH 01/11] staging: wlan-ng: fix line style issue in macro WLAN_GET_FC_FSTYPE

2016-11-07 Thread Sergio Paracuellos
Thanks for pointing that Joe. There other files and macros where GENMASK stuff could be applied in wlan-ng driver. Maybe it should be better to apply this patch as it is now and send another patch later which changes all of them. What do you think? Cheers, Sergio Paracuellos El 2016年1

Re: [PATCH] net: alteon: acenic: use new api ethtool_{get|set}_link_ksettings

2016-11-07 Thread Jes Sorensen
On 11/05/16 11:17, Philippe Reynes wrote: > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes > --- > drivers/net/ethernet/alteon/acenic.c | 65 ++--- > 1 files changed, 35

<    1   2   3   4   5   6   7   8   9   10   >