[PATCH 8/8] ide/ide-probe.c: handle blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
This patch handles blk_register_region() return value. Earlier blk_register_region() function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Verfied on X86 based ubuntu machine. This patch depends on [PATCH 1/8] block/genhd.c: Add error

Re: [GIT PULL] x86/mm changes for v4.4

2015-11-06 Thread Matt Fleming
On Fri, 06 Nov, at 07:55:50AM, Ingo Molnar wrote: > > 3) We should fix the EFI permission problem without relying on the firmware: > it > appears we could just mark everything R-X optimistically, and if a write > fault > happens (it's pretty rare in fact, only triggers when we write

[PATCH 7/8] cdrom/gdrom.c: handle add_disk() return value

2015-11-06 Thread Vishnu Pratap Singh
This patch handles add_disk() return value. Earlier add_disk() function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Verfied on X86 based ubuntu machine. This patch depends on [PATCH 1/8] block/genhd.c: Add error handling Signed-off-by:

[PATCH 6/8] md/md.c: handle blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
This patch handles blk_register_region() return value. Earlier blk_register_region() function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Verfied on X86 based ubuntu machine. This patch depends on [PATCH 1/8] block/genhd.c: Add error

Re: [PATCH v5 1/5] gadget: Introduce the notifier functions

2015-11-06 Thread kbuild test robot
Hi Baolin, [auto build test WARNING on v4.3-rc7] [also build test WARNING on next-20151106] url: https://github.com/0day-ci/linux/commits/Baolin-Wang/Introduce-usb-charger-framework-to-deal-with-the-usb-gadget-power-negotation/20151106-194008 reproduce: make htmldocs All warnings (new ones

[PATCH 5/8] zram: handle add_disk() & blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
This patch handles blk_register_region() & add_disk() return value. Earlier these function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Verfied on X86 based ubuntu machine. This patch depends on [PATCH 1/8] block/genhd.c: Add error handling

Re: [PATCH 11/13] hperf_hmp: task CPU selection logic.

2015-11-06 Thread kbuild test robot
Hi Arseniy, [auto build test WARNING on tip/sched/core] [also build test WARNING on v4.3 next-20151106] url: https://github.com/0day-ci/linux/commits/Arseniy-Krasnov/High-performance-balancing-logic-for-big-LITTLE/20151106-200901 config: x86_64-randconfig-x018-11051832 (attached as .config

[PATCH 4/8] block/loop.c: handle add_disk() & blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
This patch handles blk_register_region() & add_disk() return value. Earlier these function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Verfied on X86 based ubuntu machine. This patch depends on [PATCH 1/8] block/genhd.c: Add error handling

Re: [PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-06 Thread Will Deacon
On Wed, Nov 04, 2015 at 09:37:51AM -0800, Yang Shi wrote: > FRAME_POINTER is defined in lib/Kconfig.debug, it is unnecessary to redefine > it in arch/arm64/Kconfig.debug. It might be worth noting that this adds a dependency on DEBUG_KERNEL for building with frame pointers. I'm ok with that (it

[PATCH 3/8] block/floppy.c: handle blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
This patch handles blk_register_region() return value. Earlier blk_register_region() function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Verfied on X86 based ubuntu machine. This patch depends on [PATCH 1/8] block/genhd.c: Add error

[PATCH 2/8] mmc: handle add_disk() return value

2015-11-06 Thread Vishnu Pratap Singh
This patch handles add_disk() return value. Earlier add_disk() function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Verfied on X86 based ubuntu machine. This patch depends on [PATCH 1/8] block/genhd.c: Add error handling Signed-off-by:

Re: [PATCH RESEND 0/4] SMP support for Broadcom NSP

2015-11-06 Thread Kapil Hali
On 11/6/2015 1:55 AM, Hauke Mehrtens wrote: > On 11/05/2015 10:34 AM, Russell King - ARM Linux wrote: >> On Thu, Nov 05, 2015 at 12:51:17AM -0500, Kapil Hali wrote: >>> Hi, >>> >>> This series adds SMP support for Broadcom's Northstar Plus SoC. >>> >>> There are similar SMP enablement methods

[PATCH 1/8] block/genhd.c: Add error handling

2015-11-06 Thread Vishnu Pratap Singh
This patch adds error handling for blk_register_region(), register_disk(), add_disk(), disk_alloc_events() & disk_add_events(). add_disk() & register_disk() functions error handling is very much needed as this is used mainly by many modules like mmc, zram, mtd, scsi etc. But there is no error

Re: [RFC] iommu: arm-smmu: correct reference count

2015-11-06 Thread Will Deacon
On Wed, Nov 04, 2015 at 10:48:28AM +0800, Peng Fan wrote: > On Tue, Nov 03, 2015 at 01:17:34PM +, Will Deacon wrote: > >On Tue, Nov 03, 2015 at 08:59:17PM +0800, Peng Fan wrote: > >> iommu_group_alloc will initialize the reference count for group to 1. > >> iommu_group_add_device also increase

[RESEND PATCH] drm/rockchip: vop: Correct enabled clocks during setup

2015-11-06 Thread Sjoerd Simons
When doing the initial setup both the hclk and the aclk need to be enabled otherwise the board will simply hang. This only occurs when building the vop driver as a module, when its built-in the initial setup happens to run before the clock framework shuts of unused clocks (including the aclk).

Re: [PATCH v2 5/5] ARM: dts: AM4372: add entry for qspi mmap region

2015-11-06 Thread Vignesh R
On 11/06/2015 10:44 AM, Felipe Balbi wrote: > > Hi, > > Rob Herring writes: >> On Tue, Nov 03, 2015 at 03:36:14PM +0530, Vignesh R wrote: >>> Add qspi memory mapped region entries for AM43xx based SoCs. Also, >>> update the binding documents for the controller to document this change. >>> >>>

Re: [RESEND PATCH 0/1] Fix the "hard LOCKUP" when running a heavy loading

2015-11-06 Thread Will Deacon
On Tue, Nov 03, 2015 at 11:00:20AM -0800, Doug Anderson wrote: > Hi, Hey Doug, > When CPUs are hard locked up, they are often found at: > > v7_coherent_kern_range+0x58/0x74 > or > v7wbi_flush_user_tlb_range+0x30/0x38 > > That made me think that an errata might be the root cause of our hard

[PATCH] usb: host: pci_quirks: fix memory leak, by adding iounmap

2015-11-06 Thread Saurabh Sengar
added iounmap inorder to free memory mapped to base before returning Signed-off-by: Saurabh Sengar --- drivers/usb/host/pci-quirks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c index f940056..332f687

[PATCH] mmc: add ifdef around fault_create_debugfs_attr()

2015-11-06 Thread Adrien Schildknecht
FAIL_MMC_REQUEST can be used without FAULT_INJECTION_DEBUG_FS. In this case fault_create_debugfs_attr() will always return an error and lead to the deletion of the whole debugfs directory. This patch makes sure that FAULT_INJECTION_DEBUG_FS is enabled before attempting to create the debugfs

Re: [PATCH RESEND 3/4] ARM: BCM: Add SMP support for Broadcom NSP

2015-11-06 Thread Kapil Hali
On 11/5/2015 3:14 PM, Linus Walleij wrote: > On Thu, Nov 5, 2015 at 6:51 AM, Kapil Hali wrote: > >> Add SMP support for Broadcom's Northstar Plus SoC, >> cpu enable method and pen_release procedures. This >> changes also consolidates iProc family's - BCM NSP >> and BCM Kona, SMP handling in a

Re: [PATCH v5 5/5] power: wm831x_power: Support USB charger current limit management

2015-11-06 Thread kbuild test robot
Hi Baolin, [auto build test ERROR on v4.3-rc7] [also build test ERROR on next-20151106] url: https://github.com/0day-ci/linux/commits/Baolin-Wang/Introduce-usb-charger-framework-to-deal-with-the-usb-gadget-power-negotation/20151106-194008 config: i386-allmodconfig (attached as .config

Re: [PATCH v2 3/3] livepatch: Cleanup module page permission changes

2015-11-06 Thread Josh Poimboeuf
On Fri, Nov 06, 2015 at 11:40:55AM +0100, Petr Mladek wrote: > On Thu 2015-11-05 15:18:05, Josh Poimboeuf wrote: > > Calling set_memory_rw() and set_memory_ro() for every iteration of the > > loop in klp_write_object_relocations() is messy, inefficient, and > > error-prone. > > > > Change all the

Re: [PATCH RESEND 0/4] SMP support for Broadcom NSP

2015-11-06 Thread Kapil Hali
On 11/5/2015 3:04 PM, Russell King - ARM Linux wrote: > On Thu, Nov 05, 2015 at 12:51:17AM -0500, Kapil Hali wrote: >> Hi, >> >> This series adds SMP support for Broadcom's Northstar Plus SoC. >> >> There are similar SMP enablement methods for many ARMv7 bsed SoCs. >> BCM NSP SoC, has a typical

[PATCH 02/13] hperf_hmp: introduce hew domain flag.

2015-11-06 Thread Arseniy Krasnov
New scheduler domain type: HMP. Each big.LITTLE cluster is detected by scheduler as HMP domain. HPERF_HMP logic works between two HMP domains, the default CFS logic, in turn, works inside the HMP domain. Signed-off-by: Tarek Dakhran Signed-off-by: Sergey Dyasly Signed-off-by: Dmitriy

[PATCH 04/13] hperf_hmp: scheduler initialization routines.

2015-11-06 Thread Arseniy Krasnov
Adds new fields to 'rq' structure and routine called during fair class setup, which initializes some HMP scheduler variables: big and little cluster masks. They are read from kernel config(if set), else default values are used. Signed-off-by: Tarek Dakhran Signed-off-by: Sergey Dyasly

[PATCH 05/13] hperf_hmp: introduce druntime metric.

2015-11-06 Thread Arseniy Krasnov
This patch adds special per-task metric to look for candidate for migration between HMP domains(clusters). 'druntime' grows up when task runs on A7 cluster, and goes down on A15 cluster. Also druntime is scaled according load on little cluster in order to align its value with big cluster's

[PATCH 06/13] hperf_hmp: is_hmp_imbalance introduced.

2015-11-06 Thread Arseniy Krasnov
'is_hmp_imbalance' function calculates imbalance between clusters, four cases are possible: balancing from/to one of clusters, task swap(when clusters are balanced) or skip rebalance. Function calculates load difference between two cluster(cluster load / cluster power) and threshold when

[PATCH 10/13] hperf_hmp: idle pull function.

2015-11-06 Thread Arseniy Krasnov
HMP idle pull is triggered when CPU becomes idle. It tries to pull task from another cluster when it is overloaded. Also A7 can't pull alone task from A15, but A15 can do that with A7 core. Task for migration is chosen in the same way as for other HMP migration cases - using 'druntime'

[PATCH 03/13] hperf_hmp: add sched domains initialization.

2015-11-06 Thread Arseniy Krasnov
Attaching CPU clusters as 'sched_group' to HMP domains. Each HMP domain has two pointers to A15 and A7 scheduling groups(struct sched_group). Signed-off-by: Tarek Dakhran Signed-off-by: Sergey Dyasly Signed-off-by: Dmitriy Safonov Signed-off-by: Arseniy Krasnov Signed-off-by: Ilya

[PATCH 08/13] hperf_hmp: swap tasks function.

2015-11-06 Thread Arseniy Krasnov
'swap_tasks' performs migration between current CPU and CPU from another cluster. It scans two runqueues looking for tasks using 'druntime' metric. When both tasks are found it pulls task from another cluster, and push task from the current CPU. Signed-off-by: Tarek Dakhran

[PATCH 07/13] hperf_hmp: migration auxiliary functions.

2015-11-06 Thread Arseniy Krasnov
Adds functions used for migration: scanning every runqueue from another cluster for migration process, searching task to migrate from runqueue mentioned above and function to move task from one CPU to another. Signed-off-by: Tarek Dakhran Signed-off-by: Sergey Dyasly Signed-off-by:

[PATCH 12/13] hperf_hmp: rest of logic.

2015-11-06 Thread Arseniy Krasnov
Inserts call to main logic from 'load_balance', balance parameters calculation during enqueue/dequeue task from runqueue and affinity mask change callback for fair scheduling class. Signed-off-by: Tarek Dakhran Signed-off-by: Sergey Dyasly Signed-off-by: Dmitriy Safonov Signed-off-by:

[PATCH 11/13] hperf_hmp: task CPU selection logic.

2015-11-06 Thread Arseniy Krasnov
Adds new runqueue selection logic. If task is newly woken(fork or exec) or it is not WF_SYNC wakeup, idlest CPU from both clusters is selected. Else, default wake up logic is used('want_affine'). If it fails, idlest CPU from both clusters is selected. Signed-off-by: Tarek Dakhran

[PATCH 13/13] hperf_hmp: cpufreq routines.

2015-11-06 Thread Arseniy Krasnov
Adds CPU frequency change notifier in fair scheduling class. Every time when governor changes frequency, it calls callback from this patch. Frequency of each CPU is used for imbalance calculation. Signed-off-by: Tarek Dakhran Signed-off-by: Sergey Dyasly Signed-off-by: Dmitriy Safonov

[PATCH 09/13] hperf_hmp: one way balancing function.

2015-11-06 Thread Arseniy Krasnov
Almost identical functions which push/pull task from/to current CPU to/from another cluster. Called when balancing between clusters is broken and we need to fix it. Signed-off-by: Tarek Dakhran Signed-off-by: Sergey Dyasly Signed-off-by: Dmitriy Safonov Signed-off-by: Arseniy Krasnov

[PATCH 01/13] hperf_hmp: add new config for arm and arm64.

2015-11-06 Thread Arseniy Krasnov
New config option which enables new scheduler logic: HPERF_HMP. Also adds the following options: 'HPERF_HMP_DEBUG': enables extra runtime checks of balancing parameteres. 'HMP_FAST_CPU_MASK': CPU mask of A15 cluster(in hex string). 'HMP_SLOW_CPU_MASK': CPU mask of A7 cluster(in hex

Re: [PATCH v3 3/3] ASoC: rockchip: i2s: share tx/rx lrck when symmetric_rates enabled

2015-11-06 Thread Mark Brown
On Fri, Nov 06, 2015 at 09:38:11AM +0800, Sugar Zhang wrote: > we share lrck_tx to lrck_rx only if when both i2s symmetric_rates and > dai_link symmetric_rates enabled. This looks good but seems to depend on patch 1 so I can't apply it yet. signature.asc Description: PGP signature

[PATCH 00/13] High performance balancing logic for big.LITTLE

2015-11-06 Thread Arseniy Krasnov
Prologue The patch set introduces an extension to the default Linux CPU scheduler (CFS). The main purpose of the extension is utilization of a big.LITTLE CPU for maximum performance. Such solution may be useful for users of OdroidXU-3 board (supporting 8 cores) who

Re: [PATCH v11 1/5] xen: move xen_setup_runstate_info and get_runstate_snapshot to drivers/xen/time.c

2015-11-06 Thread Mark Rutland
On Fri, Nov 06, 2015 at 11:11:40AM +, Stefano Stabellini wrote: > On Thu, 5 Nov 2015, Mark Rutland wrote: > > Hi, > > > > > +static u64 get64(const u64 *p) > > > +{ > > > + u64 ret; > > > + > > > + if (BITS_PER_LONG < 64) { > > > + u32 *p32 = (u32 *)p; > > > + u32 h, l; > > >

Re: [PATCH v3 1/3] ASoC: rockchip: i2s: add 8 channels capture support

2015-11-06 Thread Mark Brown
On Fri, Nov 06, 2015 at 09:38:09AM +0800, Sugar Zhang wrote: > + /* refine capture channels */ > + if (!of_property_read_u32(node, "rockchip,capture-channels", )) { > + if (val >= 2 && val <= 8) > + rockchip_i2s_dai.capture.channels_max = val; > +

Re: [PATCH v11 5/5] xen/arm: account for stolen ticks

2015-11-06 Thread Mark Rutland
On Fri, Nov 06, 2015 at 11:41:49AM +, David Vrabel wrote: > On 06/11/15 11:39, Stefano Stabellini wrote: > > On Thu, 5 Nov 2015, Mark Rutland wrote: > >>> static void xen_percpu_init(void) > >>> { > >>> struct vcpu_register_vcpu_info info; > >>> @@ -104,6 +120,8 @@ static void

Re: [PATCH 2/2] ASoC: codecs: Add da7218 codec driver

2015-11-06 Thread Mark Brown
On Fri, Nov 06, 2015 at 11:53:00AM +, Opensource [Adam Thomson] wrote: > On November 6, 2015 11:22, Mark Brown wrote: > > > I can envisage in a system you may want to choose which capture channels > > > can > > > trigger level detection (if any), and this may change depending on the > > >

RE: [PATCH 2/2] ASoC: codecs: Add da7218 codec driver

2015-11-06 Thread Opensource [Adam Thomson]
On November 6, 2015 11:22, Mark Brown wrote: > > > > +static int da7218_mic_lvl_det_sw_put(struct snd_kcontrol *kcontrol, > > > > +struct snd_ctl_elem_value > > > > *ucontrol) > > > > +{ > > > > Why is this a user visible control? > > > I can envisage in a

Re: [PATCH] decnet: remove macro-local declarations

2015-11-06 Thread Julia Lawall
On Fri, 6 Nov 2015, walter harms wrote: > +1 > > I like this more since it is much more obvious what is done. > > more over we can remove a macro with only 2 users. It's not to bad because it turns out to be pretty concise. But I don't agree about the 2 users. There are 2 users for this

Re: GSO with udp_tunnel_xmit_skb

2015-11-06 Thread Jason A. Donenfeld
Hi Tom, On Fri, Nov 6, 2015 at 8:19 AM, Tom Herbert wrote: > Is this about UFO or GSO (in email subject)? UFO should operate > independently encapsulation or inner packet setting. I suppose this is about UFO. Specifically -- let's say I have a list of 500 skbs, which have their data in place

Re: [PATCH 6/7] regulator: hisilicon: Add hi655x pmic voltage regulator driver

2015-11-06 Thread kbuild test robot
Hi Chen, [auto build test ERROR on regulator/for-next] [also build test ERROR on v4.3 next-20151106] url: https://github.com/0day-ci/linux/commits/Chen-Feng/Add-Support-for-Hi6220-PMIC-Hi6553-MFD-Core/20151105-215603 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie

Re: [PATCH v3 1/2] ASoC: codec: Inno codec driver for RK3036 SoC

2015-11-06 Thread Mark Brown
On Fri, Nov 06, 2015 at 07:35:11PM +0800, Shunqian Zheng wrote: > Sure, I'll write the .get/.put/.info() for this. > Here is the preview of it. > Do you think the following is good to go? Yes, that looks sane. signature.asc Description: PGP signature

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-06 Thread Jiang Liu
On 2015/11/6 18:37, Tomasz Nowicki wrote: > On 06.11.2015 09:52, Jiang Liu wrote: >> On 2015/11/6 2:19, Lorenzo Pieralisi wrote: >>> On Thu, Nov 05, 2015 at 03:21:34PM +0100, Tomasz Nowicki wrote: On 14.10.2015 08:29, Jiang Liu wrote: >>> >>> [...] >>> > +static void

Re: [PATCH] decnet: remove macro-local declarations

2015-11-06 Thread walter harms
+1 I like this more since it is much more obvious what is done. more over we can remove a macro with only 2 users. re, wh Am 06.11.2015 11:57, schrieb Julia Lawall: >>> Would it be preferable to remove the macro entirely and inline the for >>> loop header? >> >> Could you show me an example

Re: NETIF_F_GSO_SOFTWARE vs NETIF_F_GSO

2015-11-06 Thread Jason A. Donenfeld
On Fri, Nov 6, 2015 at 5:58 AM, Herbert Xu wrote: > I don't see anything fundamentally wrong with your idea. After > all what you're describing is the basis of GSO, i.e., letting > data stay in the form of super-packets for as long as we can. > > Of course there's going to be a lot of niggly

Re: [PATCH v5 3/6] iommu: add ARM short descriptor page table allocator

2015-11-06 Thread Will Deacon
On Fri, Nov 06, 2015 at 04:42:52PM +0800, Yong Wu wrote: > On Fri, 2015-10-09 at 10:23 +0800, Yong Wu wrote: > > This patch is for ARM Short Descriptor Format. > > > > Signed-off-by: Yong Wu > > --- > > Hi Will, Robin, >Is there any comment about this patch? >As our project request, We

[PATCH v2 2/3] ASoC: rockchip-max98090: Allow more sample rates

2015-11-06 Thread Caesar Wang
The MAX98090 audio codec support sample rates from 8 to 96 kHz as the dai claim. Signed-off-by: Caesar Wang --- Changes in v2: - add the 64000 sample rates for max98090. sound/soc/rockchip/rockchip_max98090.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [GIT PULL] x86/mm changes for v4.4

2015-11-06 Thread Matt Fleming
On Thu, 05 Nov, at 01:33:10PM, Linus Torvalds wrote: > > And if this turns out to be due to EFI wanting those permissions, what > should we do? People have talked about running the EFI callbacks in > their own private page table setup, which sounds like the right idea, > but until that actually

[PATCH v2 3/3] ASoC: rockchip-rt5645: Allow more sample rates

2015-11-06 Thread Caesar Wang
The RT5645 audio codec support sample rates from 8 to 96 kHz as the dai claim. Signed-off-by: Caesar Wang --- Changes in v2: - add the 64000 sample rate for rt5645. sound/soc/rockchip/rockchip_rt5645.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH v2] h8300: cleanup startup and remove module code.

2015-11-06 Thread Daniel Lezcano
On 11/06/2015 08:03 AM, Yoshinori Sato wrote: h8300's clocksource driver update. Changes for v1 - Drop non-initialize changes. - Private data static allocation. - Avoid magic number. - Use request_irq. Hi Yoshinori, thanks for the changes. Unfortunately, they don't apply. You should base

[PATCH v2 1/3] ASoC: rockchip: i2s: change bclk and lrck according to sample rates

2015-11-06 Thread Caesar Wang
This patch sets the dividers autonomously. when i2s works on master mode, and sample rates changed. We need to change bclk and lrck at the same time for cpu internal side. As the input source clock to the module is MCLK_I2S, and by the divider of the module, the clock generator generates SCLK

[PATCH v2 0/3] Support more sample rates, let the rates normal work

2015-11-06 Thread Caesar Wang
That's seem the moment rockchip-codec driver other than 44100 and 48000 do not work. Says the (max98090, rt5640). As the chromeos reported issue:(https://chromium.googlesource.com/chromiumos/third_party/kernel/+/v3.14) For detail: In that bug we want to add 32000 to

[PATCH v5 2/5] gadget: Introduce the usb charger framework

2015-11-06 Thread Baolin Wang
This patch introduces the usb charger driver based on usb gadget that makes an enhancement to a power driver. It works well in practice but that requires a system with suitable hardware. The basic conception of the usb charger is that, when one usb charger is added or removed by reporting from

[PATCH v5 1/5] gadget: Introduce the notifier functions

2015-11-06 Thread Baolin Wang
The usb charger framework is based on usb gadget. The usb charger need to be notified the state changing of usb gadget to confirm the usb charger state. Thus this patch adds a notifier mechanism for usb gadget to report a event to usb charger when the usb gadget state is changed. Signed-off-by:

[PATCH v5 5/5] power: wm831x_power: Support USB charger current limit management

2015-11-06 Thread Baolin Wang
Integrate with the newly added USB charger interface to limit the current we draw from the USB input based on the input device configuration identified by the USB stack, allowing us to charge more quickly from high current inputs without drawing more current than specified from others.

[PATCH v5 0/5] Introduce usb charger framework to deal with the usb gadget power negotation

2015-11-06 Thread Baolin Wang
Currently the Linux kernel does not provide any standard integration of this feature that integrates the USB subsystem with the system power regulation provided by PMICs meaning that either vendors must add this in their kernels or USB gadget devices based on Linux (such as mobile phones) may not

[PATCH v5 3/5] gadget: Support for the usb charger framework

2015-11-06 Thread Baolin Wang
For supporting the usb charger, it adds the usb_charger_init() and usb_charger_exit() functions for usb charger initialization and exit. Introduce a callback 'get_charger_type' which will implemented by user for usb gadget operations to get the usb charger type. Signed-off-by: Baolin Wang ---

[PATCH v5 4/5] gadget: Integrate with the usb gadget supporting for usb charger

2015-11-06 Thread Baolin Wang
When the usb gadget supporting for usb charger is ready, the usb charger should get the type by the 'get_charger_type' callback which is implemented by the usb gadget operations, and get the usb charger pointer from struct 'usb_gadget'. Signed-off-by: Baolin Wang ---

Re: [PATCH v3 1/2] ASoC: codec: Inno codec driver for RK3036 SoC

2015-11-06 Thread Shunqian Zheng
Hi Mark, On 2015年11月06日 18:45, Mark Brown wrote: On Fri, Nov 06, 2015 at 04:39:21PM +0800, Shunqian Zheng wrote: + SOC_ENUM("Anti-pop", rk3036_codec_antipop_enum), As discussed this shouldn't be an enum. Sure, I'll write the .get/.put/.info() for this. Here is the preview of it. Do

Re: [PATCH] hpet: Delete an unnecessary check before unregister_sysctl_table()

2015-11-06 Thread Clemens Ladisch
SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 5 Nov 2015 21:32:42 +0100 > > The unregister_sysctl_table() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle

Re: [patch 3/3] vmstat: Create our own workqueue

2015-11-06 Thread Tetsuo Handa
Christoph Lameter wrote: > On Sat, 31 Oct 2015, Tetsuo Handa wrote: > > > Then, you need to update below description (or drop it) because > > patch 3/3 alone will not guarantee that the counters are up to date. > > The vmstat system does not guarantee that the counters are up to date > always.

Re: [PATCH 2/2] ASoC: codecs: Add da7218 codec driver

2015-11-06 Thread Mark Brown
On Fri, Nov 06, 2015 at 11:11:38AM +, Opensource [Adam Thomson] wrote: > On November 5, 2015 15:28, Mark Brown wrote: > > > +static int da7218_mic_lvl_det_sw_put(struct snd_kcontrol *kcontrol, > > > + struct snd_ctl_elem_value *ucontrol) > > > +{ > > Why is this

[PATCH] GPU-DRM: Delete unnecessary checks before drm_property_unreference_blob()

2015-11-06 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 6 Nov 2015 12:03:46 +0100 The drm_property_unreference_blob() function tests whether its argument is NULL and then returns immediately. Thus the tests around the calls are not needed. This issue was detected by using the Coccinelle software. Signed-off-by:

RE: [PATCH 2/2] ASoC: codecs: Add da7218 codec driver

2015-11-06 Thread Opensource [Adam Thomson]
On November 5, 2015 15:28, Mark Brown wrote: > > +/* ALC */ > > +static void da7218_alc_calib(struct snd_soc_codec *codec) > > +{ > > + struct da7218_priv *da7218 = snd_soc_codec_get_drvdata(codec); > > + u8 calib_ctrl; > > + int i = 0; > > + bool calibrated = false; > > + > > + /*

[PATCH] dmaengine: pl330: Fix race in residue reporting

2015-11-06 Thread Sjoerd Simons
When a transfer completes there is a small window between the descriptor being unset as the current active one in the thread and it being marked as done. This causes the residue to be incorrectly set when pl330_tx_status is run in that window. Practically this caused issue for me with audio

Re: [PATCH 2/2] drm/imx: Remove the primary plane created by create_primary_plane()

2015-11-06 Thread Liu Ying
On Fri, Nov 06, 2015 at 11:05:48AM +0100, Philipp Zabel wrote: > Am Mittwoch, den 04.11.2015, 18:15 +0800 schrieb Liu Ying: > > Since we are using ipu_plane_init() to add one primary plane for each > > IPU CRTC, it's unnecessary to create the safe one by using the helper > >

Re: [PATCH 5/8] mm: memcontrol: account socket memory on unified hierarchy

2015-11-06 Thread Michal Hocko
On Thu 05-11-15 17:52:00, Johannes Weiner wrote: > On Thu, Nov 05, 2015 at 03:55:22PM -0500, Johannes Weiner wrote: > > On Thu, Nov 05, 2015 at 03:40:02PM +0100, Michal Hocko wrote: > > > This would be true if they moved on to the new cgroup API intentionally. > > > The reality is more complicated

Re: [PATCH] decnet: remove macro-local declarations

2015-11-06 Thread Julia Lawall
> > Would it be preferable to remove the macro entirely and inline the for > > loop header? > > Could you show me an example of how this would look exactly? One possible solution is below. I moved the initialization of the nh pointer inside the loop to reduce the size of the loop header. One

Re: "compatible" and "model" properties in .dts for ARC boards

2015-11-06 Thread Jonas Gorski
On 06.11.2015 09:59, Arnd Bergmann wrote: > On Friday 06 November 2015 04:45:24 Vineet Gupta wrote: >>> >>> During OpenWRT upsreaming process one interesting topic was raised. >>> See in the middle of >>> https://lists.openwrt.org/pipermail/openwrt-devel/2015-November/036959.html >>> >>> In

Re: [PATCH v2 00/12] KVM: x86: add support for VMX TSC scaling

2015-11-06 Thread Paolo Bonzini
On 20/10/2015 09:39, Haozhong Zhang wrote: > This patchset adds support for VMX TSC scaling feature which is > available on Intel Skylake CPU. The specification of VMX TSC scaling > can be found at >

Re: [PATCH v3 1/2] ASoC: codec: Inno codec driver for RK3036 SoC

2015-11-06 Thread Mark Brown
On Fri, Nov 06, 2015 at 04:39:21PM +0800, Shunqian Zheng wrote: > + SOC_ENUM("Anti-pop", rk3036_codec_antipop_enum), As discussed this shouldn't be an enum. signature.asc Description: PGP signature

Re: [PATCH v4 4/5] regulator: tps65912: Add regulator driver for the TPS65912 PMIC

2015-11-06 Thread Mark Brown
On Thu, Nov 05, 2015 at 12:04:00PM -0600, Andrew F. Davis wrote: > On 11/05/2015 04:14 AM, Mark Brown wrote: > >That sounds like a bug to me, it'll have broken a bunch of existing > >devices. > Most OF drivers have the OF MODALIAS. That's nice but not relevant to non-OF devices. >

[PATCH] stm class: Hide STM-specific options if STM is disabled

2015-11-06 Thread Geert Uytterhoeven
If STM=n, it doesn't make sense to ask about STM_DUMMY and STM_SOURCE_CONSOLE support, which are not even built when enabled anyway. Hence hide these options if STM=n. Signed-off-by: Geert Uytterhoeven --- drivers/hwtracing/stm/Kconfig | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH v2 3/3] livepatch: Cleanup module page permission changes

2015-11-06 Thread Petr Mladek
On Thu 2015-11-05 15:18:05, Josh Poimboeuf wrote: > Calling set_memory_rw() and set_memory_ro() for every iteration of the > loop in klp_write_object_relocations() is messy, inefficient, and > error-prone. > > Change all the read-only pages to read-write before the loop and convert > them back to

Re: [PATCH v1 1/4] Crypto: Crypto driver support aes/des/des3 for rk3288

2015-11-06 Thread Heiko Stuebner
Hi Zain, Am Dienstag, 3. November 2015, 13:52:05 schrieb Zain Wang: > Crypto driver support cbc/ecb two chainmode, and aes/des/des3 three cipher > mode. > The names registered are: > ecb(aes) cbc(aes) ecb(des) cbc(des) ecb(des3_ede) cbc(des3_ede) > You can alloc tags above in your case. > >

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-06 Thread Tomasz Nowicki
On 06.11.2015 09:52, Jiang Liu wrote: On 2015/11/6 2:19, Lorenzo Pieralisi wrote: On Thu, Nov 05, 2015 at 03:21:34PM +0100, Tomasz Nowicki wrote: On 14.10.2015 08:29, Jiang Liu wrote: [...] +static void acpi_pci_root_validate_resources(struct device *dev, +

Re: [PATCH v2] mm: hwpoison: adjust for new thp refcounting

2015-11-06 Thread Kirill A. Shutemov
On Fri, Nov 06, 2015 at 05:03:12PM +0900, Naoya Horiguchi wrote: > Some mm-related BUG_ON()s could trigger from hwpoison code due to recent > changes in thp refcounting rule. This patch fixes them up. > > In the new refcounting, we no longer use tail->_mapcount to keep tail's > refcount, and

Re: [PATCH v2 1/2] dt-bindings: sound: Add DT bindings for Broadcom Cygnus audio

2015-11-06 Thread Mark Brown
On Thu, Nov 05, 2015 at 12:01:52PM -0800, Simran Rai wrote: > On 11/4/2015 6:07 AM, Mark Brown wrote: > >On Mon, Nov 02, 2015 at 02:11:23PM -0800, Simran Rai wrote: > >>+ Interfaces grouping of serial port. In multi-channel stereo, use > >>+ "2_0", in 3.1 multi-channel grouping, use "3_1" and

Re: [PATCH 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec

2015-11-06 Thread Mark Brown
On Thu, Nov 05, 2015 at 05:59:29PM +, Opensource [Adam Thomson] wrote: > On November 05, 2015 14:59, Mark Brown wrote: > > > +- dlg,ldo-lvl : Required internal LDO voltage (mV) level > > > + [<1050>, <1100>, <1200>, <1400>] > > Why would this ever be anything other than the minimum voltage,

Re: [PATCH 4/4] mm: prepare page_referenced() and page_idle to new THP refcounting

2015-11-06 Thread Kirill A. Shutemov
On Thu, Nov 05, 2015 at 04:32:11PM -0800, Andrew Morton wrote: > On Tue, 3 Nov 2015 17:26:15 +0200 "Kirill A. Shutemov" > wrote: > > > I've missed two simlar codepath which need some preparation to work well > > with reworked THP refcounting. > > > > Both page_referenced() and

Re: [PATCH 1/2] drm/imx: ipuv3-crtc: Return error if ipu_plane_init() fails for primary plane

2015-11-06 Thread Liu Ying
On Fri, Nov 06, 2015 at 11:05:54AM +0100, Philipp Zabel wrote: > Hi Liu, > > Am Mittwoch, den 04.11.2015, 18:15 +0800 schrieb Liu Ying: > > For primary plane initialization failure cases, ipu_plane_init() may return > > a pointer encoded by ERR_PTR(). So, we should bailout instead of use that > >

Re: [PATCH v2 3/4] ARM: dts: rockchip: Add Crypto drivers for rk3288

2015-11-06 Thread Zain
On 2015年11月06日 18:12, Heiko Stuebner wrote: > Am Freitag, 6. November 2015, 09:17:23 schrieb Zain Wang: >> Add Crypto drivers for rk3288 including crypto controller and dma clk. >> >> Signed-off-by: Zain Wang >> --- >> >> Changed in v2: >> - None >> >> Changed in v1: >> - remove the _crypto

Re: [RFC PATCH 0/3]perf/core: extend perf_reg and perf_sample_regs_intr

2015-11-06 Thread Peter Zijlstra
On Fri, Nov 06, 2015 at 09:04:00PM +1100, Michael Ellerman wrote: > It's a perrenial request from our hardware PMU folks to be able to see the raw > values of the PMU registers. > > I think partly it's so that they can verify that perf is doing what they want, > and some of it is that they're

Re: [PATCH] SGI-XPC: Delete unnecessary checks before unregister_sysctl_table()

2015-11-06 Thread Robin Holt
On Fri, Nov 6, 2015 at 3:15 AM, SF Markus Elfring wrote: > Signed-off-by: Markus Elfring Acked-by: Robin Holt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [RFC PATCH 3/7] spi: tegra: remove redundant "depends on RESET_CONTROLLER"

2015-11-06 Thread Mark Brown
On Fri, Nov 06, 2015 at 03:02:57PM +0900, Masahiro Yamada wrote: > 2015-11-05 20:50 GMT+09:00 Mark Brown : > > On Thu, Nov 05, 2015 at 08:15:24PM +0900, Masahiro Yamada wrote: > >> ARCH_TEGRA selects RESET_CONTROLLER. > >> The dependency "depends on RESET_CONTROLLER" is already met. > >>

Re: [RFC PATCH 2/7] spi: sunxi: remove redundant "depends on RESET_CONTROLLER"

2015-11-06 Thread Mark Brown
On Fri, Nov 06, 2015 at 03:00:04PM +0900, Masahiro Yamada wrote: > 2015-11-06 0:05 GMT+09:00 Mark Brown : > > Your changelog needs to say this clearly, right now what it's saying > > clearly doesn't correspond to what the change does. > OK. > This series is RFC and my main focus in on the 1/7.

Re: [PATCH] mm: optimize PageHighMem() check

2015-11-06 Thread Vineet Gupta
On Saturday 03 October 2015 03:49 PM, Vineet Gupta wrote: > On Saturday 03 October 2015 02:23 AM, Andrew Morton wrote: >> > On Fri, 2 Oct 2015 12:45:53 +0530 Vineet Gupta wrote: >> > >>> >> On Friday 02 October 2015 04:55 AM, Andrew Morton wrote: >>> On Tue, 29 Sep 2015 13:24:20 +0530 Vineet

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-06 Thread Tomasz Nowicki
On 05.11.2015 19:19, Lorenzo Pieralisi wrote: On Thu, Nov 05, 2015 at 03:21:34PM +0100, Tomasz Nowicki wrote: On 14.10.2015 08:29, Jiang Liu wrote: [...] +static void acpi_pci_root_validate_resources(struct device *dev, +struct list_head

Re: [PATCH v2 1/3] livepatch: Fix crash with !CONFIG_DEBUG_SET_MODULE_RONX

2015-11-06 Thread Jiri Kosina
On Thu, 5 Nov 2015, Josh Poimboeuf wrote: > When loading a patch module on a kernel with > !CONFIG_DEBUG_SET_MODULE_RONX, the following crash occurs: > > [ 205.988776] livepatch: enabling patch 'kpatch_meminfo_string' > [ 205.989829] BUG: unable to handle kernel paging request at >

[PATCH] perf tools: Rebuild rbtree when adjusting symbols for kcore

2015-11-06 Thread Wang Nan
In dso__split_kallsyms_for_kcore(), current code adjusts symbol's address but only reinsert it into rbtree if the symbol belongs to another map. However, the expression for adjusting symbol (pos->start -= curr_map->start - curr_map->pgoff) can change the relative order between two symbols (even if

Re: [PATCH v2 3/4] ARM: dts: rockchip: Add Crypto drivers for rk3288

2015-11-06 Thread Heiko Stuebner
Am Freitag, 6. November 2015, 09:17:23 schrieb Zain Wang: > Add Crypto drivers for rk3288 including crypto controller and dma clk. > > Signed-off-by: Zain Wang > --- > > Changed in v2: > - None > > Changed in v1: > - remove the _crypto suffix > - use "rockchip,rk3288-crypto" instead of

Re: [PATCH 2/2] usb: host: ehci-msm: Use posted data writes on AHB

2015-11-06 Thread Georgi Djakov
On 11/06/2015 08:04 AM, Andy Gross wrote: > This patch sets the AHBMODE to allow for posted data writes. This > results in higher performance. > > Signed-off-by: Andy Gross With these patches I see significant improvement in throughput on my db410c board. Tested-by: Georgi Djakov > --- >

Re: [PATCH 2/2] [media] c8sectpfe: Combine three checks into a single if block

2015-11-06 Thread walter harms
Am 05.11.2015 19:50, schrieb SF Markus Elfring: > From: Markus Elfring > Date: Thu, 5 Nov 2015 19:23:50 +0100 > > The variable "tsin" was checked three times in a loop iteration of the > c8sectpfe_tuner_unregister_frontend() function. > This implementation detail could be improved by the

Re: [PATCH 03/23] usb: gadget: f_sourcesink: free requests in sourcesink_disable()

2015-11-06 Thread Peter Chen
On Fri, Nov 06, 2015 at 09:50:11AM +0100, Robert Baldyga wrote: > On 11/06/2015 09:15 AM, Peter Chen wrote: > > On Tue, Nov 03, 2015 at 01:53:42PM +0100, Robert Baldyga wrote: > >> USB requests in SourceSink function are allocated in sourcesink_get_alt() > >> function, so we prefer to free them

[PATCH v7 4/4] ARM: dts: Add Ethernet chip to SMDK5410

2015-11-06 Thread Pavel Fedin
The chip is smsc9115, connected via SROMc bank 3. Additionally, some GPIO initialization is required. Signed-off-by: Pavel Fedin Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410-smdk5410.dts | 41 +++ arch/arm/boot/dts/exynos5410.dtsi | 6

<    4   5   6   7   8   9   10   11   12   13   >