[PATCH v4 2/6] arm64: HWCAP: Split COMPAT HWCAP table entries

2016-04-18 Thread Suzuki K Poulose
In order to handle systems which do not support 32bit at EL0, split the COMPAT HWCAP entries into a separate table which can be processed, only if the support is available. Tested-by: Yury Norov Signed-off-by: Suzuki K Poulose --- arch/arm64/kernel/cpufeature.c | 104 +-

[PATCH v4 1/6] arm64: hwcaps: Cleanup naming

2016-04-18 Thread Suzuki K Poulose
We use hwcaps for referring to ELF hwcaps capability information. However this can be confusing with 'cpu_hwcaps' which stands for the CPU capability bit field. This patch cleans up the names to make it a bit more readable. Tested-by: Yury Norov Signed-off-by: Suzuki K Poulose --- arch/arm64/ke

[PATCH v4 0/6] arm64: Support for systems without AArch32 state

2016-04-18 Thread Suzuki K Poulose
This series add checks to make sure that the AArch32 state is supported before we process the 32bit ID registers. Also checks the same for COMPAT binary execution. Applies on top of 4.6-rc1. The series remains unchanged from V3, except for : Changes since V3: - s/32bit/32-bit/ for capability na

[PATCH v4 3/6] arm64: Add helpers for detecting AArch32 support at EL0

2016-04-18 Thread Suzuki K Poulose
Adds a helper to extract the support for AArch32 at EL0 Tested-by: Yury Norov Signed-off-by: Suzuki K Poulose --- arch/arm64/include/asm/cpufeature.h |7 +++ arch/arm64/include/asm/sysreg.h |1 + 2 files changed, 8 insertions(+) diff --git a/arch/arm64/include/asm/cpufeature.h

Re: [PATCH memory-barriers.txt 6/7] documentation: Add Korean translation

2016-04-18 Thread SeongJae Park
Well, looks like there is neither strong positive opinion nor strong negative opinion. So, I will post the patch again with the suggested workflow soon. Thanks, SeongJae Park On Sat, Apr 16, 2016 at 8:23 AM, Paul E. McKenney wrote: > On Fri, Apr 15, 2016 at 07:17:17AM +0900, SeongJae Park wrot

[PATCH v2 01/13] MIPS: Separate XPA CPU feature into LPA and MVH

2016-04-18 Thread Paul Burton
From: James Hogan XPA (eXtended Physical Addressing) should be detected as a combination of two architectural features: - Large Physical Address (as per Config3.LPA). With XPA this will be set on MIPS32r5 cores, but it may also be set for MIPS64r2 cores too. - MTHC0/MFHC0 instructions (as per C

[PATCH v2 06/13] MIPS: mm: Unify pte_page definition

2016-04-18 Thread Paul Burton
The same definition for pte_page is duplicated for the MIPS32 PHYS_ADDR_T_64BIT case & the generic case. Unify them by moving a single definition outside of preprocessor conditionals. Signed-off-by: Paul Burton Reviewed-by: James Hogan --- Changes in v2: None arch/mips/include/asm/pgtable-32.

[PATCH v2 03/13] MIPS: Remove redundant asm/pgtable-bits.h inclusions

2016-04-18 Thread Paul Burton
asm/pgtable-bits.h is included in 2 assembly files and thus has to in either of the assembly files that include it. Remove the redundant inclusions such that asm/pgtable-bits.h doesn't need to #ifdef around C code, for cleanliness & and in preparation for later patches which will add more C. Sign

[PATCH v2 04/13] MIPS: Use enums to make asm/pgtable-bits.h readable

2016-04-18 Thread Paul Burton
asm/pgtable-bits.h has grown to become an unreadable mess of #ifdef directives defining bits conditionally upon other bits all at the preprocessing stage, for no good reason. Instead of having quite so many #ifdef's, simply use enums to provide sequential numbering for bit shifts, without having t

[PATCH v2 02/13] MIPS: Fix HTW config on XPA kernel without LPA enabled

2016-04-18 Thread Paul Burton
From: James Hogan The hardware page table walker (HTW) configuration is broken on XPA kernels where XPA couldn't be enabled (either nohtw or the hardware doesn't support it). This is because the PWSize.PTEW field (PTE width) was only set to 8 bytes (an extra shift of 1) in config_htw_params() if

[PATCH v2 09/13] MIPS: mm: Pass scratch register through to iPTE_SW

2016-04-18 Thread Paul Burton
Rather than hardcode a scratch register for the XPA case in iPTE_SW, pass one through from the work registers allocated by the caller. This allows for the XPA path to function correctly regardless of the work registers in use. Without doing this there are cases (where KScratch registers are unavai

[PATCH v2 08/13] MIPS: mm: Don't clobber $1 on XPA TLB refill

2016-04-18 Thread Paul Burton
From: James Hogan For XPA kernels build_update_entries() uses $1 (at) as a scratch register, but doesn't arrange for it to be preserved, so it will always be clobbered by the TLB refill exception. Although this register normally has a very short lifetime that doesn't cross memory accesses, TLB re

[PATCH v2 11/13] MIPS: mm: Simplify build_update_entries

2016-04-18 Thread Paul Burton
We can simplify build_update_entries by unifying the code for the 36 bit physical addressing with MIPS32 case with the general case, by using pte_off_ variables in all cases & handling the trivial _PAGE_GLOBAL_SHIFT == 0 case in build_convert_pte_to_entrylo. This leaves XPA as the only special case

[PATCH v2 12/13] MIPS: mm: Don't do MTHC0 if XPA not present

2016-04-18 Thread Paul Burton
From: James Hogan Performing an MTHC0 instruction without XPA being present will trigger a reserved instruction exception, therefore conditionalise the use of this instruction when building TLB handlers (build_update_entries()), and in __update_tlb(). This allows an XPA kernel to run on non XPA

[PATCH v2 13/13] MIPS: mm: Panic if an XPA kernel is run without RIXI

2016-04-18 Thread Paul Burton
XPA kernels hardcode for the presence of RIXI - the PTE format & its handling presume RI & XI bits. Make this dependence explicit by panicing if we run on a system that violates it. Signed-off-by: Paul Burton --- Changes in v2: - New patch, in response to clarification on patch 5. arch/mips/m

[PATCH v2 10/13] MIPS: mm: Be more explicit about PTE mode bit handling

2016-04-18 Thread Paul Burton
The XPA case in iPTE_SW or's in software mode bits to the pte_low value (which is what actually ends up in the high 32 bits of EntryLo...). It does this presuming that only bits in the upper 16 bits of the 32 bit pte_low value will be set. Make this assumption explicit with a BUG_ON. A similar ass

Re: [PATCH v4 5/5] ARC: [intc-*] switch to linear domain

2016-04-18 Thread Marc Zyngier
On 18/04/16 07:51, Vineet Gupta wrote: > Hi Marc, > > On Wednesday 13 April 2016 05:10 PM, Vineet Gupta wrote: >> Now that we have Timers probed from DT, don't need legacy domain >> >> This however requires mapping to be called explicitly for the IRQ which >> still can't (and probably never) be pr

Re: [PATCH v3 1/6] rtmutex: Deboost before waking up the top waiter

2016-04-18 Thread Xunlei Pang
On 2016/04/18 at 17:02, Thomas Gleixner wrote: > On Mon, 18 Apr 2016, Xunlei Pang wrote: >> On 2016/04/18 at 16:23, Thomas Gleixner wrote: >>> On Thu, 14 Apr 2016, Xunlei Pang wrote: We should deboost before waking the high-prio task such that we don't run two tasks with the 'same' priori

[PATCH] SCSI: LIBSCSI: Fixed codeing style errors

2016-04-18 Thread Bob Stlt
Fixed codeing style formatting errors. Signed-off-by: Bob Stlt --- drivers/scsi/libiscsi.c | 90 - 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index 6bffd91..41be9d3 100644 --- a

Re: [PATCH 1/3] ASoC: jack: Add a jack detect callback via codec

2016-04-18 Thread Xing Zheng
Hi Mark, On 2016年04月18日 17:22, Mark Brown wrote: On Mon, Apr 18, 2016 at 04:17:30PM +0800, Xing Zheng wrote: This patch add a callback when a codec have the jack detect feature. +void snd_soc_jack_codec_detect(struct snd_soc_codec *codec, + struct snd_soc_jack *jac

fs: GPF in locked_inode_to_wb_and_lock_list

2016-04-18 Thread Dmitry Vyukov
Hello, I've hit the following GPF while running syzkaller fuzzer on commit 806fdcce017dc98c4dbf8ed001750a0d7d2bb0af (Apr 14): general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN Modules linked in: CPU: 3 PID: 32 Comm: kworker/u10:1 Not tainted 4.6.0-rc3+ #349 Hardware name: QEMU Standar

Re: [RFC] shared regulator initialization and protection

2016-04-18 Thread Mark Brown
On Mon, Apr 18, 2016 at 03:26:03PM +0800, Pingbo Wen wrote: > On Tuesday, April 12, 2016 11:48 AM, Mark Brown wrote: > > On Tue, Apr 12, 2016 at 10:44:11AM +0800, Pingbo Wen wrote: > > What is the actual problem here? Every driver is responsible for > > ensuring that regulators are in a good stat

Re: [PATCH V11 0/4]perf/powerpc: Add ability to sample intr machine state in powerpc

2016-04-18 Thread Anju T
On Saturday 20 February 2016 10:32 AM, Anju T wrote: This short patch series adds the ability to sample the interrupted machine state for each hardware sample. To test this patchset, Eg: $ perf record -I? # list supported registers output: available registers: r0 r1 r2 r3 r4 r5 r6 r7 r8

fs/xfs/xfs_ondisk.h:79:2: error: call to '__compiletime_assert_79' declared with attribute error: XFS: sizeof(xfs_attr_shortform_t) is wrong, expected 8

2016-04-18 Thread kbuild test robot
Hi Dave, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c3b46c73264b03000d1e18b22f5caf63332547c9 commit: ab9d1e4f7b0217948a3b35a64178602ab30ff45d Merge branch 'xfs-misc-fixes-4.6-3' into for-next date: 6 weeks ag

Re: Kernel docs: muddying the waters a bit

2016-04-18 Thread Markus Heiser
Hi Jonahtan, Am 12.04.2016 um 17:46 schrieb Jonathan Corbet : > On Fri, 8 Apr 2016 17:12:27 +0200 > Markus Heiser wrote: > >> motivated by this MT, I implemented a toolchain to migrate the kernel’s >> DocBook XML documentation to reST markup. >> >> It converts 99% of the docs well ... to gai

Re: [PATCH 1/3] ASoC: jack: Add a jack detect callback via codec

2016-04-18 Thread Mark Brown
On Mon, Apr 18, 2016 at 05:43:51PM +0800, Xing Zheng wrote: > The patch_1/3 add an export of a function that calls the _detect_jack_ > function > when a codec supports jack detection and fill the _detect_jack_ function in > the > struct snd_soc_codec_driver. But why would anything ever call this

Re: [PATCH] drm/rockchip: get rid of rockchip_drm_crtc_mode_config

2016-04-18 Thread Mark yao
On 2016年04月18日 17:25, John Keeping wrote: >We need to take care of the vop status when use >rockchip_drm_crtc_mode_config, if vop is disabled, >the function would failed, that is terrible. > >Save connector type and output mode on drm_display_mode->private_flags >at encoder mode_fixup, then we ca

Re: [PATCH] regulator: s2mps11: Remove unused set_voltage_time_sel

2016-04-18 Thread Mark Brown
On Mon, Apr 18, 2016 at 09:42:58AM +0200, Krzysztof Kozlowski wrote: > On S2MPS11 and S2MPS14 devices the default implementation of > set_voltage_time_sel() for LDO regulators was not doing anything useful > because users did not provide ramp delay in Device Tree so the > set_voltage_time_sel() ex

[PATCH RFC 3/3] vfio: add virtio pci quirk

2016-04-18 Thread Michael S. Tsirkin
Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM to signal they are safe to use with an IOMMU. Without this bit, exposing the device to userspace is unsafe, so probe and fail VFIO initialization unless noiommu is enabled. Signed-off-by: Michael S. Tsirkin --- drivers/vfio/pci/vfio_pci_

[PATCH RFC 2/3] vfio: report group noiommu status

2016-04-18 Thread Michael S. Tsirkin
When using vfio, callers might want to know whether device is added to a regular group or an non-iommu group. Report this status from vfio_add_group_dev. Signed-off-by: Michael S. Tsirkin --- drivers/vfio/pci/vfio_pci.c | 2 +- drivers/vfio/platform/vfio_platform_common.c | 2 +

[PATCH RFC 0/3] virtio-pci: iommu support

2016-04-18 Thread Michael S. Tsirkin
This is an attempt to allow enabling IOMMU for DMA. Design: - new feature bit IOMMU_PLATFORM which means host won't bypass IOMMU - virtio core uses DMA API if it sees IOMMU_PLATFORM - add quirk for vfio to disable device unless IOMMU_PLATFORM is set or th

[PATCH RFC 1/3] virtio: add features for IOMMU control

2016-04-18 Thread Michael S. Tsirkin
The interaction between virtio and DMA API is messy. On most systems with virtio, physical addresses match bus addresses, and it doesn't particularly matter whether we use the DMA API. On some systems, including Xen and any system with a physical device that speaks virtio behind a physical IOMMU,

[PATCH v2 2/2] dt-bindings: Add Oxford Semiconductor OXNAS Standard Clocks bindings

2016-04-18 Thread Neil Armstrong
Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- .../devicetree/bindings/clock/oxnas,stdclk.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/oxnas,stdclk.txt diff --git a/Documentation/devicetree/bindings/cl

[PATCH v2 0/2] clk: Add Oxford Semiconductor OXNAS Clocks support

2016-04-18 Thread Neil Armstrong
This patchset includes support for the standard clocks controller for the Oxford Semiconductor OXNAS SoC Family. Changes since v1 clk patchset : - Add text to Kconfig - Clean indice-clk table - Add single struct to have a single kzalloc v1 clk patchset: http://lkml.kernel.org/r/1459520791-13269-

Re: [PATCH 1/3] ASoC: jack: Add a jack detect callback via codec

2016-04-18 Thread Xing Zheng
HI Mark, On 2016年04月18日 17:53, Mark Brown wrote: On Mon, Apr 18, 2016 at 05:43:51PM +0800, Xing Zheng wrote: The patch_1/3 add an export of a function that calls the _detect_jack_ function when a codec supports jack detection and fill the _detect_jack_ function in the struct snd_soc_codec_driv

Re: [Y2038] [PATCH] drm/sti: Use 64-bit timestamps

2016-04-18 Thread Vincent ABRIOU
On 04/17/2016 01:39 AM, Arnd Bergmann wrote: > On Wednesday 13 April 2016 02:28:02 Tina Ruchandani wrote: >> 'struct timespec' uses a 32-bit field for seconds, which >> will overflow in year 2038 and beyond. This patch is part >> of a larger attempt to remove instances of timeval, timespec >> and t

[PATCH v2 1/2] clk: Add Oxford Semiconductor OXNAS Standard Clocks

2016-04-18 Thread Neil Armstrong
Add Oxford Semiconductor OXNAS SoC Family Standard Clocks support. Signed-off-by: Neil Armstrong --- drivers/clk/Kconfig | 6 ++ drivers/clk/Makefile| 1 + drivers/clk/clk-oxnas.c | 198 3 files changed, 205 insertions(+) create mode

[PATCH] coccinelle: api: use READ_ONCE or WRITE_ONCE instead of ACCESS_ONCE

2016-04-18 Thread Julia Lawall
Suggested by Joe Perches. Signed-off-by: Julia Lawall --- scripts/coccinelle/api/access_once.cocci | 73 +++ 1 file changed, 73 insertions(+) diff --git a/scripts/coccinelle/api/access_once.cocci b/scripts/coccinelle/api/access_once.cocci new file mode 100644 ind

Re: [PATCH v2 13/13] MIPS: mm: Panic if an XPA kernel is run without RIXI

2016-04-18 Thread James Hogan
On Mon, Apr 18, 2016 at 10:35:33AM +0100, Paul Burton wrote: > XPA kernels hardcode for the presence of RIXI - the PTE format & its > handling presume RI & XI bits. Make this dependence explicit by panicing > if we run on a system that violates it. > > Signed-off-by: Paul Burton > > --- > > Cha

Re: [PATCH v2 0/2] vfs: Define new syscall getumask.

2016-04-18 Thread H. Peter Anvin
On April 18, 2016 2:14:12 AM PDT, "Richard W.M. Jones" wrote: >On Sun, Apr 17, 2016 at 06:57:36PM -0700, Josh Triplett wrote: >> O_NOUMASK seems potentially useful to support implementation of umask >> entirely in userspace, which also addresses thread-safety. A program >> could read its process

Re: [PATCH] dspi: config dspi master regmap with right mode depend on BE or LE

2016-04-18 Thread Mark Brown
On Sun, Apr 17, 2016 at 02:41:40AM +, Scott Wood wrote: > Looking more closely, the binding has a big-endian property. It says > the default if that property is absent is native endian, which is > insane. Fix the binding to say that little endian is the default (this > change shouldn't break

Re: [PATCH v2 1/2] cpufreq: powernv: Remove flag use-case of policy->driver_data

2016-04-18 Thread Viresh Kumar
On 15-04-16, 11:58, Akshay Adiga wrote: > From: Shilpasri G Bhat > > commit 1b0289848d5d ("cpufreq: powernv: Add sysfs attributes to show > throttle stats") used policy->driver_data as a flag for one-time creation > of throttle sysfs files. Instead of this use 'kernfs_find_and_get()' to > check i

[PATCH] rtc-pcf2123: use sign_extend32() for sign extension

2016-04-18 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- drivers/rtc/rtc-pcf2123.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-pcf2123.c b/drivers/rtc/rtc-pcf2123.c index f22e060..b4478cc 100644 --- a/drivers/rtc/rtc-pcf2123.c +++ b/drivers/rtc/rtc-pcf2123.c @@ -96,7 +96,7

Re: [PATCH v2 2/2] cpufreq: powernv: Ramp-down global pstate slower than local-pstate

2016-04-18 Thread Viresh Kumar
On 15-04-16, 11:58, Akshay Adiga wrote: > static int powernv_cpufreq_reboot_notifier(struct notifier_block *nb, > - unsigned long action, void *unused) > +unsigned long action, void *unused) Unrelated change.. better don't add su

Re: [PATCH] powerpc: introduce {cmp}xchg for u8 and u16

2016-04-18 Thread Pan Xinhui
On 2016年04月17日 03:43, Arnd Bergmann wrote: > On Wednesday 13 April 2016 19:15:17 Pan Xinhui wrote: >> Hello Peter, >> >> On 2016年04月12日 22:30, Peter Zijlstra wrote: >>> On Sun, Apr 10, 2016 at 10:17:28PM +0800, Pan Xinhui wrote: On 2016年04月08日 15:47, Peter Zijlstra wrote: > On Fri,

Re: [PATCH 1/3] ASoC: jack: Add a jack detect callback via codec

2016-04-18 Thread Xing Zheng
On 2016年04月18日 18:03, Xing Zheng wrote: HI Mark, On 2016年04月18日 17:53, Mark Brown wrote: On Mon, Apr 18, 2016 at 05:43:51PM +0800, Xing Zheng wrote: The patch_1/3 add an export of a function that calls the _detect_jack_ function when a codec supports jack detection and fill the _detect_jack_

Re: [PATCH v7 1/4] gadget: Introduce the usb charger framework

2016-04-18 Thread Pavel Machek
Hi! > >> >>> +#define DEFAULT_SDP_CUR_LIMIT(500 - DEFAULT_CUR_PROTECT) > >> >> > >> >> According to the spec we should always be talking about unit loads (1 > >> >> unit load is 100mA for HS/FS/LS and 150mA for SS). Also, this will not > >> >> work for SS capable ports and SS gadgets (we h

Re: [PATCH] macsec: fix crypto Kconfig dependency

2016-04-18 Thread Arnd Bergmann
On Monday 18 April 2016 16:02:02 Herbert Xu wrote: > Arnd Bergmann wrote: > > The new MACsec driver uses the AES crypto algorithm, but can be configured > > even if CONFIG_CRYPTO is disabled, leading to a build error: > > > > warning: (MAC80211 && MACSEC) selects CRYPTO_GCM which has unmet direct

Re: [RFC] iio: st: Add lsm9ds0 support for gyro accel and magny

2016-04-18 Thread Crestez Dan Leonard
On 04/18/2016 09:07 AM, Denis Ciocca wrote: > Hi Leonard and Jonathan, > > basically the patch can not work. Well, it can work as long as you don't initialize both the accel and the magn at the same time. There is no issue with the gyro driver. Would it be OK if I resend this as a [PATCH] intended

Re: [PATCH] Force cppc_cpufreq to report values in KHz to fix user space reporting

2016-04-18 Thread Viresh Kumar
Cc'ing Ashwin. -- viresh On 15-04-16, 16:16, Al Stone wrote: > When CPPC is being used by ACPI on arm64, user space tools such as > cpupower report CPU frequency values from sysfs that are incorrect. > > What the driver was doing was reporting the values given by ACPI tables > in whatever scale

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-18 Thread Lorenzo Pieralisi
On Fri, Apr 15, 2016 at 01:29:14PM -0500, Timur Tabi wrote: > On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi > wrote: > > +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) > > +{ > > + struct iommu_ops *iommu; > > + > > + iommu = iort_iommu_configure(dev); > > +

Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver

2016-04-18 Thread Jose Abreu
Hi Stephen, On 16-04-2016 00:46, Stephen Boyd wrote: > On 04/11, Jose Abreu wrote: >> new file mode 100644 >> index 000..3ba4e2f >> --- /dev/null >> +++ b/drivers/clk/axs10x/i2s_pll_clock.c >> @@ -0,0 +1,217 @@ >> + >> +static int i2s_pll_clk_probe(struct platform_device *pdev) >> +{ >> +

[PATCH 1/1] mmc: sdhci-pci: add Support of Synopsys DWC_MSHC IP

2016-04-18 Thread Prabu Thangamuthu
Synopsys released SD Host Controller Standard Specification compliant IP called as DWC_MSHC. This patch is to support DWC_MSHC controller with PCI interface. Signed-off-by: Prabu Thangamuthu --- MAINTAINERS | 7 + drivers/mmc/host/Makefile | 3 +- driver

Re: [Y2038] [PATCH] drm/sti: Use 64-bit timestamps

2016-04-18 Thread Arnd Bergmann
On Monday 18 April 2016 12:02:35 Vincent ABRIOU wrote: > > getrawmonotonic comes from a legacy code so the use is not intentional. > Honestly, it is not clear to me the difference between monotonic and > rawmonotonic. But in the debug context in which it is used, ktime_get > and ktime_get_raw wi

Re: [PATCH 1/5] max44000: Initial commit

2016-04-18 Thread Mark Brown
On Sun, Apr 17, 2016 at 09:36:10AM +0100, Jonathan Cameron wrote: > On 11/04/16 16:08, Crestez Dan Leonard wrote: Please leave blank lines between paragraphs, it makes things much easier to read. > > Would it be > > acceptable to just expand the REGMASK_* into a large or-ing of (1 << > > MAX44000

Re: [PATCH v7 1/4] gadget: Introduce the usb charger framework

2016-04-18 Thread Felipe Balbi
Hi, Pavel Machek writes: >> > Very often, you want to charge using 1.8A from an old desktop PC. >> >> if that old desktop's port is not a charging port, you shouldn't be >> allowed to do that. Not ever. > > Yes, Felipe just decided that I should not be able to charge my N900 > in useful way. y

Re: [PATCH v7 1/4] gadget: Introduce the usb charger framework

2016-04-18 Thread Pavel Machek
Hi! > >> > a) you are connected to a dedicated charger > >> > > >> > In this case, you can get up to 2000mA depending on the charger. > >> > > >> > If $this charger can give you or not 2000mA is not detectable, > >> > so what do charging ICs do ? They slowly increase the at

Re: [PATCH] regulator: s2mps11: Remove unused set_voltage_time_sel

2016-04-18 Thread Krzysztof Kozlowski
On 04/18/2016 11:57 AM, Mark Brown wrote: > On Mon, Apr 18, 2016 at 09:42:58AM +0200, Krzysztof Kozlowski wrote: > >> On S2MPS11 and S2MPS14 devices the default implementation of >> set_voltage_time_sel() for LDO regulators was not doing anything useful >> because users did not provide ramp delay

Re: [PATCH v7 1/4] gadget: Introduce the usb charger framework

2016-04-18 Thread Pavel Machek
On Mon 2016-04-18 13:30:54, Felipe Balbi wrote: > > Hi, > > Pavel Machek writes: > >> > Very often, you want to charge using 1.8A from an old desktop PC. > >> > >> if that old desktop's port is not a charging port, you shouldn't be > >> allowed to do that. Not ever. > > > > Yes, Felipe just dec

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-18 Thread Robin Murphy
On 15/04/16 19:29, Timur Tabi wrote: On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) +{ + struct iommu_ops *iommu; + + iommu = iort_iommu_configure(dev); + + /* +* Assume dma valid range st

Re: [PATCH] macsec: fix crypto Kconfig dependency

2016-04-18 Thread Herbert Xu
On Mon, Apr 18, 2016 at 12:23:42PM +0200, Arnd Bergmann wrote: > > No, that is not the problem. > > These are the options from the randconfig file that showed the error: > > # CONFIG_MODULES is not set > # CONFIG_CRYPTO is not set > CONFIG_CRYPTO_GCM=y > CONFIG_CRYPTO_AES=y > CONFIG_MACSEC=y > #

(.init.text+0x270): multiple definition of `plat_irq_setup'

2016-04-18 Thread kbuild test robot
Hi Rich, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c3b46c73264b03000d1e18b22f5caf63332547c9 commit: 7480e0aabd5f9e6c3e3b72ed206e89284e90f11f sh: add device tree support and generic board using device tree date

[PATCH 3.4 00/92] 3.4.112-rc1 review

2016-04-18 Thread lizf
From: Zefan Li This is the start of the stable review cycle for the 3.4.112 release. There are 92 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Apr 20 10:44:28 UTC 2016

[PATCH 3.4 03/92] mac80211: enable assoc check for mesh interfaces

2016-04-18 Thread lizf
From: Bob Copeland 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 3633ebebab2bbe88124388b7620442315c968e8f upstream. We already set a station to be associated when peering completes, both in user space and in the kernel. Thus we should

[PATCH 3.4 01/92] rc-core: fix remove uevent generation

2016-04-18 Thread lizf
From: David Härdeman 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit a66b0c41ad277ae62a3ae6ac430a71882f899557 upstream. The input_dev is already gone when the rc device is being unregistered so checking for its presence only means that no

[PATCH 3.4 04/92] PCI: Add dev_flags bit to access VPD through function 0

2016-04-18 Thread lizf
From: Mark Rustad 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 932c435caba8a2ce473a91753bad0173269ef334 upstream. Add a dev_flags bit, PCI_DEV_FLAGS_VPD_REF_F0, to access VPD through function 0 to provide VPD access on other functions.

[PATCH 3.4 02/92] PCI: Fix TI816X class code quirk

2016-04-18 Thread lizf
From: Bjorn Helgaas 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit d1541dc977d376406f4584d8eb055488655c98ec upstream. In fixup_ti816x_class(), we assigned "class = PCI_CLASS_MULTIMEDIA_VIDEO". But PCI_CLASS_MULTIMEDIA_VIDEO is only the t

[PATCH 3.4 10/92] devres: fix devres_get()

2016-04-18 Thread lizf
From: Masahiro Yamada 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 64526370d11ce8868ca495723d595b61e8697fbf upstream. Currently, devres_get() passes devres_free() the pointer to devres, but devres_free() should be given with the pointe

[PATCH 3.4 26/92] fs: create and use seq_show_option for escaping

2016-04-18 Thread lizf
From: Kees Cook 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit a068acf2ee77693e0bf39d6e07139ba704f461c3 upstream. Many file systems that implement the show_options hook fail to correctly escape their output which could lead to unescaped

[PATCH 3.4 22/92] Add radeon suspend/resume quirk for HP Compaq dc5750.

2016-04-18 Thread lizf
From: Jeffery Miller 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 09bfda10e6efd7b65bcc29237bee1765ed779657 upstream. With the radeon driver loaded the HP Compaq dc5750 Small Form Factor machine fails to resume from suspend. Adding a qu

[PATCH 3.4 08/92] md/raid0: update queue parameter in a safer location.

2016-04-18 Thread lizf
From: NeilBrown 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 199dc6ed5179251fa6158a461499c24bdd99c836 upstream. When a (e.g.) RAID5 array is reshaped to RAID0, the updating of queue parameters (e.g. max number of sectors per bio) is do

[PATCH 3.4 31/92] powerpc/MSI: Fix race condition in tearing down MSI interrupts

2016-04-18 Thread lizf
From: Paul Mackerras 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit e297c939b745e420ef0b9dc989cb87bda617b399 upstream. This fixes a race which can result in the same virtual IRQ number being assigned to two different MSI interrupts. The

[PATCH 3.4 18/92] drivercore: Fix unregistration path of platform devices

2016-04-18 Thread lizf
From: Grant Likely 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 7f5dcaf1fdf289767a126a0a5cc3ef39b5254b06 upstream. The unregister path of platform_device is broken. On registration, it will register all resources with either a parent a

[PATCH 3.4 34/92] ARM: fix Thumb2 signal handling when ARMv6 is enabled

2016-04-18 Thread lizf
From: Russell King 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 9b55613f42e8d40d5c9ccb8970bde6af4764b2ab upstream. When a kernel is built covering ARMv6 to ARMv7, we omit to clear the IT state when entering a signal handler. This can

[PATCH 3.4 12/92] NFSv4: don't set SETATTR for O_RDONLY|O_EXCL

2016-04-18 Thread lizf
From: NeilBrown 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit efcbc04e16dfa95fef76309f89710dd1d99a5453 upstream. It is unusual to combine the open flags O_RDONLY and O_EXCL, but it appears that libre-office does just that. [pid 3250]

[PATCH 3.4 16/92] DRM - radeon: Don't link train DisplayPort on HPD until we get the dpcd

2016-04-18 Thread lizf
From: Stephen Chandler Paul 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 924f92bf12bfbef3662619e3ed24a1cea7c1cbcd upstream. Most of the time this isn't an issue since hotplugging an adaptor will trigger a crtc mode change which in turn

[PATCH 3.4 24/92] hpfs: update ctime and mtime on directory modification

2016-04-18 Thread lizf
From: Mikulas Patocka 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit f49a26e7718dd30b49e3541e3e25aecf5e7294e2 upstream. Update ctime and mtime when a directory is modified. (though OS/2 doesn't update them anyway) Signed-off-by: Mikulas

[PATCH 3.4 19/92] SUNRPC: xs_reset_transport must mark the connection as disconnected

2016-04-18 Thread lizf
From: Trond Myklebust 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 0c78789e3a030615c6650fde89546cadf40ec2cc upstream. In case the reconnection attempt fails. Signed-off-by: Trond Myklebust [lizf: Backported to 3.4: add definition of

[PATCH 3.4 29/92] scsi_dh: fix randconfig build error

2016-04-18 Thread lizf
From: Christoph Hellwig 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 294ab783ad98066b87296db1311c7ba2a60206a5 upstream. It looks like the Kconfig check that was meant to fix this (commit fe9233fb6914a0eb20166c967e3020f7f0fba2c9 [SCSI]

[PATCH 3.4 35/92] x86/platform: Fix Geode LX timekeeping in the generic x86 build

2016-04-18 Thread lizf
From: David Woodhouse 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 03da3ff1cfcd7774c8780d2547ba0d995f7dc03d upstream. In 2007, commit 07190a08eef36 ("Mark TSC on GeodeLX reliable") bypassed verification of the TSC on Geode LX. However,

[PATCH 3.4 37/92] ipv6: Fix IPsec pre-encap fragmentation check

2016-04-18 Thread lizf
From: Herbert Xu 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 93efac3f2e03321129de67a3c0ba53048bb53e31 upstream. The IPv6 IPsec pre-encap path performs fragmentation for tunnel-mode packets. That is, we perform fragmentation pre-encap

[PATCH 3.4 39/92] MIPS: dma-default: Fix 32-bit fall back to GFP_DMA

2016-04-18 Thread lizf
From: James Hogan 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 53960059d56ecef67d4ddd546731623641a3d2d1 upstream. If there is a DMA zone (usually 24bit = 16MB I believe), but no DMA32 zone, as is the case for some 32-bit kernels, then

[PATCH 3.4 42/92] sched/core: Fix TASK_DEAD race in finish_task_switch()

2016-04-18 Thread lizf
From: Peter Zijlstra 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 95913d97914f44db2b81271c2e2ebd4d2ac2df83 upstream. So the problem this patch is trying to address is as follows: CPU0CPU1 c

[PATCH 3.4 41/92] iwlwifi: dvm: fix D3 firmware PN programming

2016-04-18 Thread lizf
From: Johannes Berg 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 5bd166872d8f99f156fac191299d24f828bb2348 upstream. The code to send the RX PN data (for each TID) to the firmware has a devastating bug: it overwrites the data for TID 0

[PATCH 3.4 46/92] md/raid10: don't clear bitmap bit when bad-block-list write fails.

2016-04-18 Thread lizf
From: NeilBrown 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit c340702ca26a628832fade4f133d8160a55c29cc upstream. When a write fails and a bad-block-list is present, we can update the bad-block-list instead of writing the data. If this

[PATCH 3.4 75/92] ALSA: synth: Fix conflicting OSS device registration on AWE32

2016-04-18 Thread lizf
From: Takashi Iwai 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 225db5762dc1a35b26850477ffa06e5cd0097243 upstream. When OSS emulation is loaded on ISA SB AWE32 chip, we get now kernel warnings like: WARNING: CPU: 0 PID: 2791 at fs/sy

[PATCH 3.4 61/92] ocfs2/dlm: fix deadlock when dispatch assert master

2016-04-18 Thread lizf
From: Joseph Qi 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 012572d4fc2e4ddd5c8ec8614d51414ec6cae02a upstream. The order of the following three spinlocks should be: dlm_domain_lock < dlm_ctxt->spinlock < dlm_lock_resource->spinlock B

[PATCH 3.4 78/92] iommu/vt-d: fix range computation when making room for large pages

2016-04-18 Thread lizf
From: Christian Zander 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit ba2374fd2bf379f933773811fdb06cb6a5445f41 upstream. In preparation for the installation of a large page, any small page tables that may still exist in the target IOV ad

[PATCH 3.4 85/92] mm: make sendfile(2) killable

2016-04-18 Thread lizf
From: Jan Kara 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 296291cdd1629c308114504b850dc343eabc2782 upstream. Currently a simple program below issues a sendfile(2) system call which takes about 62 days to complete in my test KVM insta

[PATCH 3.4 82/92] ASoC: wm8904: Correct number of EQ registers

2016-04-18 Thread lizf
From: Charles Keepax 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 97aff2c03a1e4d343266adadb52313613efb027f upstream. There are 24 EQ registers not 25, I suspect this bug came about because the registers start at EQ1 not zero. The bug i

[PATCH 3.4 80/92] xhci: Add spurious wakeup quirk for LynxPoint-LP controllers

2016-04-18 Thread lizf
From: Laura Abbott 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit fd7cd061adcf5f7503515ba52b6a724642a839c8 upstream. We received several reports of systems rebooting and powering on after an attempted shutdown. Testing showed that settin

[PATCH 3.4 71/92] USB: Add reset-resume quirk for two Plantronics usb headphones.

2016-04-18 Thread lizf
From: Yao-Wen Mao 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 8484bf2981b3d006426ac052a3642c9ce1d8d980 upstream. These two headphones need a reset-resume quirk to properly resume to original volume level. Signed-off-by: Yao-Wen Mao

[PATCH 3.4 69/92] mm: hugetlbfs: skip shared VMAs when unmapping private pages to satisfy a fault

2016-04-18 Thread lizf
From: Mel Gorman 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 2f84a8990ebbe235c59716896e017c6b2ca1200f upstream. SunDong reported the following on https://bugzilla.kernel.org/show_bug.cgi?id=103841 I think I find a linux bu

[PATCH 3.4 68/92] genirq: Fix race in register_irq_proc()

2016-04-18 Thread lizf
From: Ben Hutchings 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 95c2b17534654829db428f11bcf4297c059a2a7e upstream. Per-IRQ directories in procfs are created only when a handler is first added to the irqdesc, not when the irqdesc is cr

[PATCH 3.4 77/92] crypto: ahash - ensure statesize is non-zero

2016-04-18 Thread lizf
From: Russell King 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 8996eafdcbad149ac0f772fb1649fbb75c482a6a upstream. Unlike shash algorithms, ahash drivers must implement export and import as their descriptors may contain hardware state

[PATCH 3.4 56/92] usb: Use the USB_SS_MULT() macro to get the burst multiplier.

2016-04-18 Thread lizf
From: Mathias Nyman 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit ff30cbc8da425754e8ab96904db1d295bd034f27 upstream. Bits 1:0 of the bmAttributes are used for the burst multiplier. The rest of the bits used to be reserved (zero), but US

[PATCH 3.4 52/92] btrfs: skip waiting on ordered range for special files

2016-04-18 Thread lizf
From: Jeff Mahoney 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit a30e577c96f59b1e1678ea5462432b09bf7d5cbc upstream. In btrfs_evict_inode, we properly truncate the page cache for evicted inodes but then we call btrfs_wait_ordered_range f

[PATCH 3.4 60/92] cifs: use server timestamp for ntlmv2 authentication

2016-04-18 Thread lizf
From: Peter Seiderer 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 98ce94c8df762d413b3ecb849e2b966b21606d04 upstream. Linux cifs mount with ntlmssp against an Mac OS X (Yosemite 10.10.5) share fails in case the clocks differ more than +

[PATCH 3.4 51/92] spi: Fix documentation of spi_alloc_master()

2016-04-18 Thread lizf
From: Guenter Roeck 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit a394d635193b641f2c86ead5ada5b115d57c51f8 upstream. Actually, spi_master_put() after spi_alloc_master() must _not_ be followed by kfree(). The memory is already freed with

[PATCH 3.4 84/92] drm/nouveau/gem: return only valid domain when there's only one

2016-04-18 Thread lizf
From: Ilia Mirkin 3.4.112-rc1 review patch. If anyone has any objections, please let me know. -- commit 2a6c521bb41ce862e43db46f52e7681d33e8d771 upstream. On nv50+, we restrict the valid domains to just the one where the buffer was originally created. However after the buffer

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