Re: [RFC][PATCH 5/7] jump_label: Rework update logic

2015-07-27 Thread Heiko Carstens
On Mon, Jul 27, 2015 at 06:30:05PM +0200, Peter Zijlstra wrote: > On Mon, Jul 27, 2015 at 12:47:14PM +0200, Peter Zijlstra wrote: > > @@ -68,13 +63,8 @@ void static_key_slow_inc(struct static_k > > return; > > > > jump_label_lock(); > > + if (atomic_inc_and_test(>enabled)) > >

Re: [PATCH] rsi: Fix failure to load firmware after memory leak fix and fix the leak

2015-07-27 Thread Mike Looijmans
On 27-07-15 12:28, Kalle Valo wrote: Mike Looijmans writes: Fixes commit eae79b4f3e82ca63a53478a161b190a0d38fe526 ("rsi: fix memory leak in rsi_load_ta_instructions()") which stopped the driver from functioning. You can abbreviate the commit id: Fixes commit eae79b4f3e82 ("rsi: fix memory

[PATCH v2] rsi: Fix failure to load firmware after memory leak fix and fix the leak

2015-07-27 Thread Mike Looijmans
Fixes commit eae79b4f3e82 ("rsi: fix memory leak in rsi_load_ta_instructions()") which stopped the driver from functioning. Firmware data has been allocated using vmalloc(), resulting in memory that cannot be used for DMA. Hence the firmware was first copied to a buffer allocated with kmalloc()

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-27 Thread Kishon Vijay Abraham I
Hi, On Sunday 26 July 2015 08:21 AM, chunfeng yun wrote: > hi, > On Wed, 2015-07-22 at 09:21 -0500, Felipe Balbi wrote: >> Hi, >> >> On Wed, Jul 22, 2015 at 10:05:43PM +0800, Chunfeng Yun wrote: >>> support usb3.0 phy of mt65xx SoCs >>> >>> Signed-off-by: Chunfeng Yun >> >> you missed Kishon

Re: [PATCH] perf: fixing variable initialisation

2015-07-27 Thread Alexander Shishkin
Mathieu Poirier writes: > Variable 'max_order' needs to be initialised to log2 of the > number of pages invariant of the no scather-gather PMU option. > Otherwise 'rb_alloc_aux_page' gets an order that is equal to > '0', which prevents the private page information to be set > properly. But that

Re: [PATCH] mmc: sdhci-of-arasan: Get quirks from device tree

2015-07-27 Thread Michal Simek
On 07/28/2015 03:07 AM, Shawn Lin wrote: > On 2015/7/27 16:23, Michal Simek wrote: >> On 07/27/2015 10:04 AM, Shawn Lin wrote: >>> This patch adds the interface to get quirks from dts, and >>> there is no need to assign different quirks by condition statement >>> of arasan IP version. >>> >>>

Re: [RFCv2 3/3] reset: reset-zynq: Adding support for Xilinx Zynq reset controller.

2015-07-27 Thread Michal Simek
On 07/28/2015 06:59 AM, Moritz Fischer wrote: > Hi Michal, > > On Mon, Jul 27, 2015 at 12:12 AM, Michal Simek wrote: >> On 07/25/2015 02:21 AM, Moritz Fischer wrote: >>> This adds a reset controller driver to control the Xilinx Zynq >>> SoC's various resets. >>> >>> Signed-off-by: Moritz Fischer

Re: [RFCv2 2/3] dts: zynq: Add devicetree entry for Xilinx Zynq reset controller.

2015-07-27 Thread Michal Simek
On 07/28/2015 07:03 AM, Moritz Fischer wrote: > Hi Michal, > > I agree we need to be careful with changing the bindings. > > On Sun, Jul 26, 2015 at 11:56 PM, Michal Simek wrote: >> Hi Moritz, >> >> On 07/25/2015 02:21 AM, Moritz Fischer wrote: >>> Signed-off-by: Moritz Fischer >>> --- >>>

Re: [RFCv2 1/3] docs: dts: Added documentation for Xilinx Zynq Reset Controller bindings.

2015-07-27 Thread Michal Simek
On 07/28/2015 06:55 AM, Moritz Fischer wrote: > Hi Michal, > > On Sun, Jul 26, 2015 at 10:09 PM, Michal Simek wrote: >> On 07/25/2015 02:21 AM, Moritz Fischer wrote: >>> Signed-off-by: Moritz Fischer >>> --- >>> Documentation/devicetree/bindings/reset/zynq-reset-pl.txt | 13 >>> +

Re: [PATCH V3 3/3] devicetree: da9062: Add device tree bindings for DA9062 OnKey

2015-07-27 Thread Dmitry Torokhov
On Mon, Jul 27, 2015 at 03:43:00PM -0700, Dmitry Torokhov wrote: > On Thu, Jul 23, 2015 at 05:17:41PM +0100, S Twiss wrote: > > From: S Twiss > > > > Add device tree bindings for the DA9062 OnKey driver component > > > > Signed-off-by: Steve Twiss > > > > --- > > Changes in V3: > > - Child

RE: [RFC v2] genalloc:add an gen_pool_first_fit_align algo to genalloc

2015-07-27 Thread Zhao Qiang
On Tue, 2015-07-28 at 5:21, Scott Wood wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, July 28, 2015 5:21 AM > To: Zhao Qiang-B45475 > Cc: lau...@codeaurora.org; linux-kernel@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; a...@linux-foundation.org;

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

2015-07-27 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/video/fbdev/aty/atyfb_base.c: In function 'atyfb_setup_generic': drivers/video/fbdev/aty/atyfb_base.c:3447:2: error: implicit declaration of function 'ioremap_uc'

[PATCH v5 0/4] x86: modify_ldt improvement, test, and config option

2015-07-27 Thread Andy Lutomirski
This is intended for x86/urgent. Sorry for taking so long, but it seemed nice to avoid breaking Xen. This fixes the "dazed and confused" issue which was exposed by the CVE-2015-5157 fix. It's also probably a good general attack surface reduction, and it replaces some scary code with IMO less

[PATCH v5 3/4] selftests/x86, x86/ldt: Add a selftest for modify_ldt

2015-07-27 Thread Andy Lutomirski
This tests general modify_ldt behavior (only writes, so far) as well as synchronous updates via IPI. It fails on old kernels. I called this ldt_gdt because I'll add set_thread_area tests to it at some point. Signed-off-by: Andy Lutomirski --- tools/testing/selftests/x86/Makefile | 2 +-

Re: [PATCH v4 7/7] arm64: dts: mt8173: Add subsystem clock controller device nodes

2015-07-27 Thread James Liao
On Mon, 2015-07-27 at 03:21 -0700, Matthias Brugger wrote: > On Monday, July 27, 2015 10:56:22 AM James Liao wrote: > > Hi Daniel, > > > > On Fri, 2015-07-24 at 19:32 +0800, Daniel Kurtz wrote: > > > > @@ -88,6 +88,13 @@ > > > > > > > > #clock-cells = <0>; > > > > > > >

[PATCH v5 4/4] x86/ldt: Make modify_ldt optional

2015-07-27 Thread Andy Lutomirski
The modify_ldt syscall exposes a large attack surface and is unnecessary for modern userspace. Make it optional. Signed-off-by: Andy Lutomirski --- arch/x86/Kconfig | 17 + arch/x86/include/asm/mmu.h | 2 ++ arch/x86/include/asm/mmu_context.h | 31

[PATCH v5 1/4] x86/xen: Unmap aliases in xen_alloc_ldt and xen_free_ldt

2015-07-27 Thread Andy Lutomirski
I've been able to get an unmodified Xen guest to OOPS once after a lot of test iterations without this patch. I think this patch fixes the problem. I'm a bit surprised that we don't see much more severe LDT problems on Xen without this fix. Once the synchronous modify_ldt code causes modify_ldt

[PATCH v5 2/4] x86/ldt: Make modify_ldt synchronous

2015-07-27 Thread Andy Lutomirski
modify_ldt has questionable locking and does not synchronize threads. Improve it: redesign the locking and synchronize all threads' LDTs using an IPI on all modifications. This will dramatically slow down modify_ldt in multithreaded programs, but there shouldn't be any multithreaded programs

Re: [PATCH V3 0/8] clean up wlan_bssdef.h

2015-07-27 Thread Julia Lawall
Something horrible seems to have happened in your patch sending process, and you have the same message over and over. Also, you don't really need to seen the patch to everyone who has ever touched the file. The following arguments can be useful: --nokeywords --nogit --nogit-fallback

[PATCH 2/2] tools/power/acpi: Enable build for EC userspace tool.

2015-07-27 Thread Lv Zheng
This patch allows EC userspace tool to be built as an ACPI tool. Signed-off-by: Lv Zheng --- tools/power/acpi/Makefile | 16 tools/power/acpi/tools/ec/Makefile | 33 ++--- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git

[PATCH 1/2] tools/power/acpi: Add descend support in ACPI tools Makefile.

2015-07-27 Thread Lv Zheng
This patch splits tools/power/acpi/Makefile to support descend compling for ACPI tools. In this patch tools/ec related stuff is removed as it is originally not enabled. Also a missing .o (utnonansi.o) is added to the acpidump/Makefile. Signed-off-by: Lv Zheng --- tools/power/acpi/Makefile

Re: [PATCH] cpufreq: Correct a freq check in cpufreq_set_policy

2015-07-27 Thread Viresh Kumar
On 28-07-15, 11:34, Pan Xinhui wrote: > From: Pan Xinhui > > This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] > return error when failing to set minfreq").It attempt to return an error > on obviously incorrect limits when we echo xxx >.../scaling_max,min_freq > Actually we just

[PATCH 0/2] tools/power/acpi: Fix ACPI tools build issues.

2015-07-27 Thread Lv Zheng
Currently tools/power/acpi is broken: 1. acpidump build is broken because utnonansi.o is not linked. 2. ec build is broken because descend build is not supported. This patch fixes the above issues. Lv Zheng (2): tools/power/acpi: Add descend support in ACPI tools Makefile. tools/power/acpi:

[PATCH 4/7] usb: gadget: f_mass_storage: check quirk instead of UDC name

2015-07-27 Thread Robert Baldyga
Use generic mechanism to check if UDC controller supports stalling. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/function/f_mass_storage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_mass_storage.c

[PATCH 7/7] usb: gadget: remove gadget_chips.h

2015-07-27 Thread Robert Baldyga
This header file contains helpers for quirks based on UDC controller name. Since we have generic quirk bitfields in usb_gadget structure for all of these quirks we don't need to have this header any longer. This patch removes gadget_chips.h file and makes sure that it's no longer included

[PATCH 6/7] usb: gadget: apply generic altsetting support check mechanism

2015-07-27 Thread Robert Baldyga
Replace calls of gadget_supports_altsettings() function (which check altset support by comparing UDC controller name with hardcoded names) with gadget_is_altset_supported() which checks generic quirk bitfield. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/function/f_obex.c | 2 +-

[PATCH 5/7] usb: gadget: f_ecm/f_ncm: check quirk instead of UDC name

2015-07-27 Thread Robert Baldyga
Use generic mechanism to check if UDC controller supports zlp. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/function/f_ecm.c | 4 ++-- drivers/usb/gadget/function/f_ncm.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/function/f_ecm.c

[PATCH 1/7] usb: gadget: add 'quirk_altset_not_supp' to usb_gadget

2015-07-27 Thread Robert Baldyga
Due to some UDC controllers may not support altsettings, usb gadget layer needs to provide a generic way to inform gadget functions about non-standard hardware limitations. This patch adds 'quirk_altset_not_supp' field to struct usb_gadget and helper function gadget_is_altset_supported(). It also

Re: [PATCH] cpufreq: Add scaling frequency range support

2015-07-27 Thread Viresh Kumar
On 28-07-15, 11:32, Pan Xinhui wrote: > From: Pan Xinhui > > Userspace at most time do cpufreq tests very much inconveniently. > Currently they have to echo min and max cpu freq separately like below: > echo 48 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq > echo 224 >

[PATCH 3/7] usb: gadget: add 'quirk_zlp_not_supp' to usb_gadget

2015-07-27 Thread Robert Baldyga
Due to some UDC controllers may not support zlp, usb gadget layer needs to provide a generic way to inform gadget functions about non-standard hardware limitations. This patch adds 'quirk_zlp_not_supp' field to struct usb_gadget and helper function gadget_is_zlp_supported(). It also sets

[PATCH 2/7] usb: gadget: add 'quirk_stall_not_supp' to usb_gadget

2015-07-27 Thread Robert Baldyga
Due to some UDC controllers may not support stalling, usb gadget layer needs to provide a generic way to inform gadget functions about non-standard hardware limitations. This patch adds 'quirk_stall_not_supp' field to struct usb_gadget and helper function gadget_is_stall_supported(). It also sets

[PATCH 0/7] usb: gadget: get rid of UDC name-based quirks

2015-07-27 Thread Robert Baldyga
Hello, This patch set replaces quirks based on UDC name with generic quirk bitfields in struct usb_gadget. It allows to avoid checking for UDC name in USB function drivers. Instead we have few quirk bitfields informing rather about chip-specific limitations than specific chip name. Thanks to this

Re: [PATCH v4 2/7] clk: mediatek: Fix rate and dependency of MT8173 clocks

2015-07-27 Thread James Liao
Hi, On Mon, 2015-07-27 at 09:52 +0200, Heiko Stübner wrote: > Am Montag, 27. Juli 2015, 14:19:41 schrieb Daniel Kurtz: > > On Jul 27, 2015 12:52, "Sascha Hauer" wrote: > > > On Fri, Jul 24, 2015 at 07:10:14PM +0800, Daniel Kurtz wrote: > > > > > /* TOPCKGEN */ > > > > > > > > > > #define

Re: [PATCH] cpufreq: Correct a freq check in cpufreq_set_policy

2015-07-27 Thread Pan Xinhui
hi, Viresh thanks for your quick reply! :) On 2015年07月28日 12:41, Viresh Kumar wrote: > On 28-07-15, 11:34, Pan Xinhui wrote: >> From: Pan Xinhui >> >> This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] >> return error when failing to set minfreq").It attempt to return an

Re: [PATCH v4 1/7] clk: mediatek: Add fixed clocks support for Mediatek SoC.

2015-07-27 Thread James Liao
Hi Daniel, On Fri, 2015-07-24 at 19:33 +0800, Daniel Kurtz wrote: > Hi James, > > On Fri, Jul 24, 2015 at 11:01 AM, James Liao > wrote: > > > > +void mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks, int num, > > + struct clk_onecell_data *clk_data) > > > void

RE: [v5 15/19] KVM: eventfd: add irq bypass consumer management

2015-07-27 Thread Wu, Feng
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Monday, July 13, 2015 9:47 PM > To: Eric Auger; Wu, Feng; k...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: alex.william...@redhat.com; j...@8bytes.org > Subject: Re: [v5 15/19] KVM: eventfd: add irq

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

2015-07-27 Thread Yong Wu
On Mon, 2015-07-27 at 15:11 +0100, Will Deacon wrote: > On Mon, Jul 27, 2015 at 03:05:38PM +0100, Robin Murphy wrote: > > On 27/07/15 05:21, Yong Wu wrote: > > > + } else {/* page or largepage */ > > > + if (quirk & IO_PGTABLE_QUIRK_SHORT_MTK) { > > > +

Re: [RFCv2 2/3] dts: zynq: Add devicetree entry for Xilinx Zynq reset controller.

2015-07-27 Thread Moritz Fischer
Hi Michal, I agree we need to be careful with changing the bindings. On Sun, Jul 26, 2015 at 11:56 PM, Michal Simek wrote: > Hi Moritz, > > On 07/25/2015 02:21 AM, Moritz Fischer wrote: >> Signed-off-by: Moritz Fischer >> --- >> arch/arm/boot/dts/zynq-7000.dtsi| 43 - >

Re: [RFCv2 3/3] reset: reset-zynq: Adding support for Xilinx Zynq reset controller.

2015-07-27 Thread Moritz Fischer
Hi Michal, On Mon, Jul 27, 2015 at 12:12 AM, Michal Simek wrote: > On 07/25/2015 02:21 AM, Moritz Fischer wrote: >> This adds a reset controller driver to control the Xilinx Zynq >> SoC's various resets. >> >> Signed-off-by: Moritz Fischer >> --- >> drivers/reset/Makefile | 1 + >>

Re: [PATCH] cpufreq: Add scaling frequency range support

2015-07-27 Thread Pan Xinhui
hi, Viresh thanks for your reply :) On 2015年07月28日 12:29, Viresh Kumar wrote: > On 28-07-15, 11:32, Pan Xinhui wrote: >> From: Pan Xinhui >> >> Userspace at most time do cpufreq tests very much inconveniently. >> Currently they have to echo min and max cpu freq separately like below: >>

Re: [RFCv2 1/3] docs: dts: Added documentation for Xilinx Zynq Reset Controller bindings.

2015-07-27 Thread Moritz Fischer
Hi Michal, On Sun, Jul 26, 2015 at 10:09 PM, Michal Simek wrote: > On 07/25/2015 02:21 AM, Moritz Fischer wrote: >> Signed-off-by: Moritz Fischer >> --- >> Documentation/devicetree/bindings/reset/zynq-reset-pl.txt | 13 + >> 1 file changed, 13 insertions(+) >> create mode 100644

Re: [RFCv2 1/3] docs: dts: Added documentation for Xilinx Zynq Reset Controller bindings.

2015-07-27 Thread Moritz Fischer
Hi Sören, thanks for your feedback. On Mon, Jul 27, 2015 at 7:58 PM, Sören Brinkmann wrote: > Hi Moritz, > > On Fri, 2015-07-24 at 05:21PM -0700, Moritz Fischer wrote: >> Signed-off-by: Moritz Fischer >> --- >> Documentation/devicetree/bindings/reset/zynq-reset-pl.txt | 13 + >> 1

[REPOST PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-27 Thread Minfei Huang
Transforming PFN(Page Frame Number) to struct page is never failure, so we can simplify the code logic to do the image->control_page assignment directly in the loop, and remove the unnecessary conditional judgement. Signed-off-by: Minfei Huang Acked-by: Dave Young Acked-by: Vivek Goyal ---

[PATCH v2] usb/gadget: make composite gadget meet usb compliance for vbus draw

2015-07-27 Thread Du, Changbin
>From 08df419517694c4dd9ff328f5644b46a99c2999e Mon Sep 17 00:00:00 2001 From: "Du, Changbin" Date: Thu, 23 Jul 2015 20:08:04 +0800 Subject: [PATCH v2] usb/gadget: make composite gadget meet usb compliance for vbus draw USB-IF compliance requirement limits the vbus current according to current

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-27 Thread Minfei Huang
On 07/28/15 at 01:30pm, Simon Horman wrote: > On Mon, Jul 27, 2015 at 09:44:53AM -0400, Vivek Goyal wrote: > > On Sat, Jun 06, 2015 at 02:14:12PM +0800, Minfei Huang wrote: > > > From: Minfei Huang > > > > > > Transforming PFN(Page Frame Number) to struct page is never failure, so > > > we can

Re: [PATCH] cpufreq: Correct a freq check in cpufreq_set_policy

2015-07-27 Thread Viresh Kumar
On 28-07-15, 11:34, Pan Xinhui wrote: > From: Pan Xinhui > > This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] > return error when failing to set minfreq").It attempt to return an error > on obviously incorrect limits when we echo xxx >.../scaling_max,min_freq > Actually we just

[PATCH V3 4/8] staging: rtl8712: removed unused wrapper structs

2015-07-27 Thread Joshua Clayton
Remove wrapper structs that just wrap struct ndis_wlan_bssid_ex, and are unused. Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/rtl871x_cmd.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_cmd.h

[PATCH V3 1/8] staging: rtl8712: fix buggy size calculation

2015-07-27 Thread Joshua Clayton
r8712_get_ndis_wlan_bssid_ex_sz has a "6 * sizeof(unsigned long)" where the underlying struct has a 6 * unsigned char. Simplify the calculation by just subtracting the variable part from the size of the struct. This also gets rid of a use of typedef NDIS_802_11_RATES_EX Signed-off-by: Joshua

[PATCH V3 0/8] clean up wlan_bssdef.h

2015-07-27 Thread Joshua Clayton
The main goal of this series is to get rid of a needless typedef in the rtl8712 wlan driver. In the course of fixing that, I found a bug that can (at least in theory) lead to a overrun during a memcpy, as well as an identical struct with a different name, which use the typedef. Finally after

[PATCH V3 3/8] staging: rtl8712: fix comment

2015-07-27 Thread Joshua Clayton
The old comment refers to a typedef name which is being removed, and to a style of calculation which is no longer being used. It falsely states that IELength is variable length, instead of IEs. Change comment to simply state that the IEs field is a buffer of variable size and that IELength refers

Re: [PATCH v3 1/2] drivers/dma/iop-adma: Use dma_alloc_writecombine() kernel-style

2015-07-27 Thread Vinod Koul
On Mon, Jul 27, 2015 at 05:04:41PM -0700, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > dma_alloc_writecombine()'s call and return value check is tangled in all > in one call. Untangle both calls according to kernel coding style. Acked-by: Vinod Koul -- ~Vinod -- To unsubscribe

Re: [PATCH v2 2/5] mtd: nand: Qualcomm NAND controller driver

2015-07-27 Thread Archit Taneja
Hi, On 07/25/2015 06:21 AM, Stephen Boyd wrote: On 07/21/2015 03:34 AM, Archit Taneja wrote: diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 5b2806a..31951fc 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -538,4 +538,11 @@ config MTD_NAND_HISI504

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-27 Thread Simon Horman
On Mon, Jul 27, 2015 at 09:44:53AM -0400, Vivek Goyal wrote: > On Sat, Jun 06, 2015 at 02:14:12PM +0800, Minfei Huang wrote: > > From: Minfei Huang > > > > Transforming PFN(Page Frame Number) to struct page is never failure, so > > we can simplify the code logic to do the image->control_page

Re: [PATCH] cpufreq: Add scaling frequency range support

2015-07-27 Thread Viresh Kumar
On 28-07-15, 11:32, Pan Xinhui wrote: > From: Pan Xinhui > > Userspace at most time do cpufreq tests very much inconveniently. > Currently they have to echo min and max cpu freq separately like below: > echo 48 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq > echo 224 >

RE: [PATCH] usb/gadget: make composite gadget meet usb compliance for vbus draw

2015-07-27 Thread Du, Changbin
> > From: Andrzej Pietrasiewicz [mailto:andrze...@samsung.com] Hi, > > > > What I mean is that in my opinion it should be done in a separate > > patch, because the newly introduced USB_VBUS_DRAW_SUSPEND is not > used > > anywhere else in your patch. The meaning of this change is "use a > >

Re: [PATCH 3/5] Add calls to translate Always Running Timer (ART) to system time

2015-07-27 Thread John Stultz
On Mon, Jul 27, 2015 at 5:46 PM, Christopher Hall wrote: > +static bool checked_art_to_tsc(cycle_t *tsc) > +{ > + if (!has_art()) > + return false; > + *tsc = art_to_tsc(*tsc); > + return true; > +} > + > +static int art_to_rawmono64(struct timespec64 *rawmono,

[no subject]

2015-07-27 Thread Leon Zhang
Dear Purchasing manager, We supply kinds of PCB products, widely used in telecom, medical, LED and motor industries etc. Please kindly find our advantages as below. 1. 1-24layer, FR-4, Aluminum, also FPC board and PCBA assembly,ets… 2. Certificate: ISO14001, ISO 9001,TS16949,

Re

2015-07-27 Thread Mr Tan Wong
Please contact me urgently for a transaction. Kind Regards Tan Wong --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v4 6/7] clk: mediatek: Add USB clock support in MT8173 APMIXEDSYS

2015-07-27 Thread James Liao
Hi Daniel, On Fri, 2015-07-24 at 19:28 +0800, Daniel Kurtz wrote: > On Fri, Jul 24, 2015 at 11:02 AM, James Liao > wrote: > > +struct clk *mtk_clk_register_ref2usb_tx(const char *name, > > + const char *parent_name, void __iomem *reg) > > struct clk * __init

Re: [PATCH 1/5] Add functions producing system time given a backing counter value

2015-07-27 Thread John Stultz
On Mon, Jul 27, 2015 at 8:44 PM, John Stultz wrote: > On Mon, Jul 27, 2015 at 5:46 PM, Christopher Hall > wrote: >> * counter_to_rawmono64 >> * counter_to_mono64 >> * counter_to_realtime64 >> >> Enables drivers to translate a captured system clock counter to system >> time. This is useful for

[PATCH V2 1/1] serial: 8250_pci: add RS485 for F81504/508/512

2015-07-27 Thread Peter Hung
Add RS485 control for Fintek F81504/508/512 F81504/508/512 can control their RTS with H/W mode. PCI configuration space for each port is 0x40 + idx * 8 + 7. When it set with 0x01, it's configured with RS232 mode. RTS is controlled by MCR. When it set with 0x11, it's configured with RS485 mode.

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-27 Thread Boris Ostrovsky
On 07/27/2015 11:16 PM, Andy Lutomirski wrote: On Mon, Jul 27, 2015 at 7:20 PM, Andy Lutomirski wrote: On Mon, Jul 27, 2015 at 9:18 AM, Boris Ostrovsky wrote: On 07/27/2015 11:53 AM, Andy Lutomirski wrote: On Mon, Jul 27, 2015 at 8:36 AM, Boris Ostrovsky wrote: On 07/25/2015 01:36 AM,

Re: [PATCH 1/5] Add functions producing system time given a backing counter value

2015-07-27 Thread John Stultz
On Mon, Jul 27, 2015 at 5:46 PM, Christopher Hall wrote: > * counter_to_rawmono64 > * counter_to_mono64 > * counter_to_realtime64 > > Enables drivers to translate a captured system clock counter to system > time. This is useful for network and audio devices that capture timestamps > in terms of

Re: [PATCH v2] Yama: remove needless CONFIG_SECURITY_YAMA_STACKED

2015-07-27 Thread James Morris
On Thu, 23 Jul 2015, Kees Cook wrote: > Now that minor LSMs can cleanly stack with major LSMs, remove the unneeded > config for Yama to be made to explicitly stack. Just selecting the main > Yama CONFIG will allow it to work, regardless of the major LSM. Since > distros using Yama are already

[PATCH] i2c: mediatek: fix transfer error handling

2015-07-27 Thread Eddie Huang
From: Liguo Zhang Reset i2c dma engine in hw init function. When occur i2c ack error, mtk_i2c_irq may is twice, first is the ack error interrupt, then the complete interrupt, so i2c->irq_stat need keep the two interrupt value, and only call complete() for the complete interrupt. Signed-off-by:

[PATCH] cpufreq: Correct a freq check in cpufreq_set_policy

2015-07-27 Thread Pan Xinhui
From: Pan Xinhui This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] return error when failing to set minfreq").It attempt to return an error on obviously incorrect limits when we echo xxx >.../scaling_max,min_freq Actually we just need check if new_policy->min > new_policy->max.

Re: [Intel-gfx] [PULL] topic/crc-pmic

2015-07-27 Thread Kumar, Shobhit
On Monday 27 July 2015 04:51 PM, Thierry Reding wrote: On Thu, Jul 23, 2015 at 09:38:46AM +0200, Daniel Vetter wrote: [...] On Thu, Jul 23, 2015 at 9:31 AM, Daniel Vetter wrote: [...] Shobhit Kumar (8): [...] pwm: crc: Add Crystalcove (CRC) PWM driver Would you mind removing

[PATCH] cpufreq: Add scaling frequency range support

2015-07-27 Thread Pan Xinhui
From: Pan Xinhui Userspace at most time do cpufreq tests very much inconveniently. Currently they have to echo min and max cpu freq separately like below: echo 48 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq echo 224 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-27 Thread Andy Lutomirski
On Mon, Jul 27, 2015 at 8:16 PM, Andy Lutomirski wrote: > On Mon, Jul 27, 2015 at 7:20 PM, Andy Lutomirski wrote: >> On Mon, Jul 27, 2015 at 9:18 AM, Boris Ostrovsky >> wrote: >>> On 07/27/2015 11:53 AM, Andy Lutomirski wrote: On Mon, Jul 27, 2015 at 8:36 AM, Boris Ostrovsky

[PATCH v3 3/5] devicetree: soc: Add Qualcomm SMD based RPM DT binding

2015-07-27 Thread Bjorn Andersson
Add binding documentation for the Qualcomm Resource Power Manager (RPM) using shared memory (Qualcomm SMD) as transport mechanism. This is found in 8974 and newer based devices. The binding currently describes the rpm itself and the regulator subnodes. Signed-off-by: Bjorn Andersson ---

[PATCH v3 4/5] soc: qcom: Driver for the Qualcomm RPM over SMD

2015-07-27 Thread Bjorn Andersson
Driver for the Resource Power Manager (RPM) found in Qualcomm 8974 based devices. The driver exposes resources that child drivers can operate on; to implementing regulator, clock and bus frequency drivers. Signed-off-by: Bjorn Andersson --- Changes since v2: - Updated error handling path in RPM

[PATCH v3 5/5] regulator: Regulator driver for the Qualcomm RPM

2015-07-27 Thread Bjorn Andersson
Driver for regulators exposed by the Resource Power Manager (RPM) found in devices based on Qualcomm 8974 and newer platforms. Reviewed-by: Mark Brown Signed-off-by: Bjorn Andersson --- Changes since v2: - Updated Kconfig dependency to follow smd's move from mfd drivers/regulator/Kconfig

[PATCH v3 0/5] Qualcomm Shared Memory & RPM drivers

2015-07-27 Thread Bjorn Andersson
The third iteration of the patches to add support for the regulators provided by the RPM on family B Qualcomm devices. This depends on the SMEM implementation that Andy already picked up. Changes since v2: - Made smd copy functions work on words for the word access channels - Corrected access of

[PATCH v3 2/5] soc: qcom: Add Shared Memory Driver

2015-07-27 Thread Bjorn Andersson
This adds the Qualcomm Shared Memory Driver (SMD) providing communication channels to remote processors, ontop of SMEM. Signed-off-by: Bjorn Andersson --- Changes since v2: - Made smd copy functions work on words for the word access channels - Corrected access of smem items from secure heap -

[PATCH v3 1/5] soc: qcom: Add device tree binding for Shared Memory Device

2015-07-27 Thread Bjorn Andersson
Add device tree binding documentation for the Qualcomm Shared Memory Device, used for communication between the various CPUs in the Qualcomm SoCs. Signed-off-by: Bjorn Andersson --- No changes since v2 .../devicetree/bindings/soc/qcom/qcom,smd.txt | 79 ++ 1 file

Re: [PATCH v2 2/4] ARM: dts: vf500-colibri: Add device tree node for touchscreen support

2015-07-27 Thread Shawn Guo
On Thu, Jul 16, 2015 at 08:43:20PM +0530, Sanchayan Maity wrote: > Add device tree node for touchscreen support on Colibri VF50. The > touchscreen functionality on VF50 uses the ADC channels of Vybrid > and some GPIOs. Also add pinctrl nodes for proper pinmux. > > Signed-off-by: Sanchayan Maity

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-27 Thread Andy Lutomirski
On Mon, Jul 27, 2015 at 7:20 PM, Andy Lutomirski wrote: > On Mon, Jul 27, 2015 at 9:18 AM, Boris Ostrovsky > wrote: >> On 07/27/2015 11:53 AM, Andy Lutomirski wrote: >>> >>> On Mon, Jul 27, 2015 at 8:36 AM, Boris Ostrovsky >>> wrote: On 07/25/2015 01:36 AM, Andy Lutomirski wrote:

Re: Revised futex(2) man page for review

2015-07-27 Thread Davidlohr Bueso
On Mon, 2015-07-27 at 13:10 +0200, Michael Kerrisk (man-pages) wrote: > Hi David, > > On 03/31/2015 04:45 PM, Davidlohr Bueso wrote: > > On Sat, 2015-03-28 at 12:47 +0100, Peter Zijlstra wrote: > > > >>The condition is represented by the futex word, which is an address > >> in > >>

Re: [PATCH v2 1/4] ARM: dts: vfxxx: Add io-channel-cells property for ADC node

2015-07-27 Thread Shawn Guo
On Thu, Jul 16, 2015 at 08:43:19PM +0530, Sanchayan Maity wrote: > This commit adds io-channel-cells property to the ADC node. This > property is required in order for an IIO consumer driver to work. > Especially required for Colibri VF50, as the touchscreen driver > uses ADC channels with the ADC

Re: [RFCv2 1/3] docs: dts: Added documentation for Xilinx Zynq Reset Controller bindings.

2015-07-27 Thread Sören Brinkmann
Hi Moritz, On Fri, 2015-07-24 at 05:21PM -0700, Moritz Fischer wrote: > Signed-off-by: Moritz Fischer > --- > Documentation/devicetree/bindings/reset/zynq-reset-pl.txt | 13 + > 1 file changed, 13 insertions(+) > create mode 100644

[PATCH] mmc: dw_mmc: Fix coding style issues

2015-07-27 Thread Shawn Lin
This patch fixes the following issues reported by checkpatch.pl: - use -EINVAL instead of -ENOSYS, to fix warning message: "ENOSYS means 'invalid syscall nr' and nothing else" - split lines whose length is greater than 80 characters - avoid quoted string split across lines - use min_t instead of

Re: [PATCH v3 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider

2015-07-27 Thread Stephen Warren
On 07/24/2015 09:30 AM, Lee Jones wrote: > On Tue, 07 Jul 2015, Eric Anholt wrote: > >> Lee Jones writes: >> >>> If I were the Clock Maintainer, I would have probably missed this >>> patch. You _must_ intimate which subsystem you are submitting to. >>> The hardware clocks are not

Re: Revised futex(2) man page for review

2015-07-27 Thread Davidlohr Bueso
On Sat, 2015-03-28 at 12:47 +0100, Peter Zijlstra wrote: > SEE ALSO >get_robust_list(2), restart_syscall(2), futex(7) For pi futexes, I also suggest pthread_mutexattr_getprotocol(3), which is a common entry point. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH v2] Do not reserve crashkernel high memory if crashkernel low memory reserving failed

2015-07-27 Thread Yinghai Lu
On Mon, Jul 27, 2015 at 5:52 PM, Baoquan He wrote: > On 07/22/15 at 04:47pm, Yinghai Lu wrote: > > Sorry for late reply. This problem is reported by customers. They usulay > don't like to make these things public. While for those systems with > good hard iommu support, it could also fail to

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

2015-07-27 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: arch/arm/mach-mvebu/board-v7.c: In function 'mvebu_init_irq': arch/arm/mach-mvebu/board-v7.c:138:3: error: implicit declaration of function 'gic_set_irqchip_flags'

Re: [PATCH] LSM: LoadPin for module and firmware loading restrictions

2015-07-27 Thread Kees Cook
On Mon, Jul 27, 2015 at 7:36 PM, James Morris wrote: > On Mon, 27 Jul 2015, Kees Cook wrote: > >> On Sun, Jul 26, 2015 at 9:26 PM, James Morris wrote: >> > On Thu, 23 Jul 2015, Kees Cook wrote: >> > >> >> + >> >> +/* >> >> + * Return an allocated string that has been escaped of special

Re: [PATCH v2] ARM: dts: ls1021a: audio: Add dts nodes for audio on LS1021A

2015-07-27 Thread Shawn Guo
On Wed, Jul 15, 2015 at 04:02:46PM +0800, Alison Wang wrote: > This patch adds dts nodes for audio on LS1021A. > > Signed-off-by: Alison Wang > Signed-off-by: Shawn Guo Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH] LSM: LoadPin for module and firmware loading restrictions

2015-07-27 Thread James Morris
On Mon, 27 Jul 2015, Kees Cook wrote: > On Sun, Jul 26, 2015 at 9:26 PM, James Morris wrote: > > On Thu, 23 Jul 2015, Kees Cook wrote: > > > >> + > >> +/* > >> + * Return an allocated string that has been escaped of special characters > >> + * and double quotes, making it safe to log in quotes.

RE: [Linaro-mm-sig] [PATCH v3 0/2] RFC: Secure Memory Allocation Framework

2015-07-27 Thread Xiaoquan Li
Hi Benjamin, It looks like this framework only allows user space client to talk with trust application, it there a plan to provide kernel side APIs for kernel space client? Please correct me if my understanding is wrong. Thanks Xiaoquan -Original Message- From: Linaro-mm-sig

Re: [PATCH v4 2/2] dt: power: st: Provide bindings for ST's OPPs

2015-07-27 Thread Viresh Kumar
Cc'ing few people (whom I cc'd last time as well :)). On 27-07-15, 16:20, Lee Jones wrote: > These OPPs are used in ST's CPUFreq implementation. > > Signed-off-by: Lee Jones > --- > > Changelog: > - None, new patch > > Documentation/devicetree/bindings/power/opp-st.txt | 76 >

Re: [PATCH v4 1/2] dt: cpufreq: st: Provide bindings for ST's CPUFreq implementation

2015-07-27 Thread Viresh Kumar
On 27-07-15, 16:20, Lee Jones wrote: > Cc: devicet...@vger.kernel.org > Signed-off-by: Lee Jones > --- > > Changelog: > - Using OPP-v2 > - Moved (and linked) a bunch of documentation to ../power/ > > .../devicetree/bindings/cpufreq/cpufreq-st.txt | 40 > ++ > 1 file

Re: [Update][PATCH 7/7] cpufreq: Separate CPU device registration from CPU online

2015-07-27 Thread Viresh Kumar
On 27-07-15, 23:55, Rafael J. Wysocki wrote: > +static void cpufreq_online(unsigned int cpu) As I said in the earlier message, I need the return value of this to be used for add_dev() callback. Which is required to retry probing the device if it wasn't ready on a earlier call, i.e. it returns

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-27 Thread Andy Lutomirski
On Mon, Jul 27, 2015 at 9:18 AM, Boris Ostrovsky wrote: > On 07/27/2015 11:53 AM, Andy Lutomirski wrote: >> >> On Mon, Jul 27, 2015 at 8:36 AM, Boris Ostrovsky >> wrote: >>> >>> On 07/25/2015 01:36 AM, Andy Lutomirski wrote: Here's v3. It fixes the "dazed and confused" issue, I hope.

linux-next: manual merge of the tip tree with the arm-soc tree

2015-07-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/arm/mach-shmobile/intc-sh73a0.c between commit: 30f8925a57d8 ("ARM: shmobile: Remove legacy board code for KZM-A9-GT") from the arm-soc tree and commit: 0d3f2c92e004 ("irqchip/gic: Remove redundant

Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event

2015-07-27 Thread Alexei Starovoitov
On 7/25/15 3:04 AM, He Kuang wrote: I noticed that for 64-bit elf format, the reloc sections have 'Addend' in the entry, but there's no 'Addend' info in bpf elf file(64bit). I think there must be something wrong in the process of .s -> .o, which related to 64bit/32bit. Anyway, we can parse out

[PATCH 2/3] net: mdio-octeon: Fix octeon_mdiobus_probe function for return values

2015-07-27 Thread mohun106
From: Radha Mohan Chintakuntla This patch fixes a possible crash in the octeon_mdiobus_probe function if the return values are not handled properly. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Tomasz Nowicki --- drivers/net/phy/mdio-octeon.c | 14 +- 1 files changed,

[PATCH 3/3] net: thunderx: Select CONFIG_MDIO_OCTEON for ThunderX NIC

2015-07-27 Thread mohun106
From: Radha Mohan Chintakuntla The CONFIG_MDIO_OCTEON is required so that the ThunderX NIC driver can talk to the PHY drivers. Signed-off-by: Radha Mohan Chintakuntla --- drivers/net/ethernet/cavium/Kconfig |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

Re: [V2 PATCH 2/3] kexec: Fix race between panic() and crash_kexec() called directly

2015-07-27 Thread Hidehiro Kawai
Hi, (2015/07/27 23:55), Michal Hocko wrote: > On Mon 27-07-15 10:58:50, Hidehiro Kawai wrote: > [...] >> @@ -1472,6 +1472,18 @@ void __weak crash_unmap_reserved_pages(void) >> >> void crash_kexec(struct pt_regs *regs) >> { >> +int old_cpu, this_cpu; >> + >> +/* >> + * `old_cpu ==

linux-next: manual merge of the tip tree with the renesas tree

2015-07-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/arm/mach-shmobile/setup-r8a7779.c between commit: 3fecc170e5b7 ("ARM: shmobile: r8a7779: Remove legacy SoC code") from the renesas tree and commit: 0d3f2c92e004 ("irqchip/gic: Remove redundant

[PATCH 1/3] net: mdio-octeon: Modify driver to work on both ThunderX and Octeon

2015-07-27 Thread mohun106
From: Radha Mohan Chintakuntla This patch modifies the mdio-octeon driver to work on both ThunderX and Octeon SoCs from Cavium Inc. Signed-off-by: Sunil Goutham Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: David Daney --- drivers/net/phy/Kconfig |9 ++-

  1   2   3   4   5   6   7   8   9   10   >