[PATCH] serial: 8250_uniphier: call clk_disable_unprepare() on failure path

2015-07-23 Thread Masahiro Yamada
If serial8250_register_8250_port() fails, disable and unprepare the clock before exiting. Fixes: 1a8d2903cb6a ("serial: 8250_uniphier: add UniPhier serial driver") Signed-off-by: Masahiro Yamada --- drivers/tty/serial/8250/8250_uniphier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driv

Re: [patch] mmap.2: document the munmap exception for underlying page size

2015-07-23 Thread Michael Kerrisk (man-pages)
Hello David, On 23 July 2015 at 22:52, David Rientjes wrote: > On Thu, 23 Jul 2015, Michael Kerrisk (man-pages) wrote: > >> >> Should we also add a similar comment for the mmap offset? Currently >> >> the man page says: >> >> >> >> "offset must be a multiple of the page size as returned by >> >>

[PATCH 2/4] cp210x: Unify code for set/get config control messages

2015-07-23 Thread Petr Tesarik
From: Petr Tesarik There is a lot of overlap between the two functions (e.g. calculation of the buffer size), so this removes a bit of code duplication, but most importantly, a more generic function can be easily reused for other message types. Signed-off-by: Petr Tesarik --- drivers/usb/seria

[PATCH 1/4] cp210x: Replace USB magic numbers with symbolic names

2015-07-23 Thread Petr Tesarik
From: Petr Tesarik The request type is in fact made of three fields that already have symbolic constants. While I was rewriting those lines, I also converted the pre-processor defines into an enum, so they are seen by debuggers. Signed-off-by: Petr Tesarik --- drivers/usb/serial/cp210x.c | 14

Re: question about drivers/dma/dma-jz4780.c

2015-07-23 Thread Julia Lawall
On Fri, 24 Jul 2015, Vinod Koul wrote: > On Fri, Jul 24, 2015 at 07:51:28AM +0200, Julia Lawall wrote: > > > Yes for dmaengine drivers I do ask this question which typically ends up > > > in > > > driver invoking devm_irq_free() in driver's remove callback > > > > > > IMHO don't think devm irq c

[RESEND PATCH v2 1/6] usb: dwc3: ep0: Fix mem corruption on OUT transfers of more than 512 bytes

2015-07-23 Thread Kishon Vijay Abraham I
DWC3 uses bounce buffer to handle non max packet aligned OUT transfers and the size of bounce buffer is 512 bytes. However if the host initiates OUT transfers of size more than 512 bytes (and non max packet aligned), the driver throws a WARN dump but still programs the TRB to receive more than 512

[PATCH 3/4] cp210x: Store part number

2015-07-23 Thread Petr Tesarik
From: Petr Tesarik Query and store the CP210x part number. Signed-off-by: Petr Tesarik --- drivers/usb/serial/cp210x.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 69f03b6..dbfc722 100644 --- a/drivers

[PATCH v2 4/6] usb: dwc3; ep0: Modify _dwc3_ep0_start_trans_ API to take 'chain' parameter

2015-07-23 Thread Kishon Vijay Abraham I
No functional change. Added a new parameter in _dwc3_ep0_start_trans_ to indicate whether the TRB is a chained TRB or last TRB. This is in preparation for adding chained TRB support for ep0. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c | 15 --- 1 file changed,

[PATCH v2 1/6] usb: dwc3: ep0: Fix mem corruption on OUT transfers of more than 512 bytes

2015-07-23 Thread Kishon Vijay Abraham I
DWC3 uses bounce buffer to handle non max packet aligned OUT transfers and the size of bounce buffer is 512 bytes. However if the host initiates OUT transfers of size more than 512 bytes (and non max packet aligned), the driver throws a WARN dump but still programs the TRB to receive more than 512

[PATCH 0/4] Show CP210x part number in sysfs

2015-07-23 Thread Petr Tesarik
The cp210x driver can be used for several devices (CP2101/2/3/4). It is sometimes useful to know the actual part number, because there are slight differences in their capabilities. The first two patches are cleanups and not necessary to implement the feature. I can send them in a separate patch se

[PATCH 4/4] cp210x: Expose the part number in sysfs

2015-07-23 Thread Petr Tesarik
From: Petr Tesarik Make it possible to read the cp210x part number from userspace by making it a sysfs attribute. Signed-off-by: Petr Tesarik --- drivers/usb/serial/cp210x.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/cp210x.c b/

[PATCH v2 3/6] usb: dwc3: ep0: preparation for handling non maxpacket aligned transfers > 512

2015-07-23 Thread Kishon Vijay Abraham I
No functional change. This is in preparation for handling non maxpacket aligned transfers greater than bounce buffer size. This is basically to avoid code duplication when using chained TRB transfers to handle non maxpacket aligned transfers greater than bounce buffer size. Signed-off-by: Kishon V

[PATCH v2 6/6] usb: dwc3: ep0: handle non maxpacket aligned transfers > 512

2015-07-23 Thread Kishon Vijay Abraham I
Use chained TRB mechanism to handle non maxpacket aligned transfers greater than bounce buffer size. With this the first TRB will be programmed to receive 'ALIGN(ur->length - maxp, maxp)' data and the second TRB will be programmed to receive the remaining data using bounce buffer. Signed-off-by: K

[PATCH v2 5/6] usb: dwc3: ep0: Add chained TRB support

2015-07-23 Thread Kishon Vijay Abraham I
Add chained TRB support to ep0. Now TRB's can be chained just by invoking _dwc3_ep0_start_trans_ with 'chain' parameter set to true. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c| 16 +--- drivers/usb/dwc3/gadget.c |2 +- 2 files changed, 14 insertions(+)

[PATCH v2 2/6] usb: dwc3: ep0: use _roundup_ to calculate the transfer size

2015-07-23 Thread Kishon Vijay Abraham I
No functional change. Used _roundup_ macro to calculate the transfer size aligned to maxpacket in dwc3_ep0_complete_data. It also makes it similar to how transfer size is calculated in __dwc3_ep0_do_control_data. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c |4 +--- 1 fi

[PATCH v2 0/6] usb: dwc3: handle non maxpacket aligned transfers > 512

2015-07-23 Thread Kishon Vijay Abraham I
Patch series first fixes memory corruption and then adds support to handle non maxpacket aligned transfers. Patch series adds support to handle non maxpacket aligned transfers greater than bounce buffer size (512). It first adds chained TRB support and then uses it to handle non maxpacket aligned

Re: [RFC 1/4] mm, compaction: introduce kcompactd

2015-07-23 Thread Vlastimil Babka
On 07/23/2015 11:21 PM, David Rientjes wrote: On Thu, 23 Jul 2015, Vlastimil Babka wrote: When a khugepaged allocation fails for a node, it could easily kick off background compaction on that node and revisit the range later, very similar to how we can kick off background compaction in the page

Re: [PATCH v3 1/3] x86/ldt: Make modify_ldt synchronous

2015-07-23 Thread Borislav Petkov
On Wed, Jul 22, 2015 at 12:23:46PM -0700, Andy Lutomirski wrote: > 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 mul

[GIT PULL] Non-critical fixes for v4.3

2015-07-23 Thread Krzysztof Kozlowski
Dear Kukjin, Previously you did not picked up the fix for cpufreq memory leak. I am sending it again with respective acks from LKML. Also another minor improvement in the set. Best regards, Krzysztof The following changes since commit 1c4c7159ed2468f3ac4ce5a7f08d79663d381a93: Merge tag 'ext4

Re: [GIT PULL] ARM: defconfig: Improvements for 4.3

2015-07-23 Thread Krzysztof Kozlowski
2015-07-17 15:51 GMT+09:00 Krzysztof Kozlowski : > Dear Kukjin, > > Few defconfig related changes. > > Description along with a tag. > You can find them also on the lists with my reviewed-by. > > Best regards, > Krzysztof Any comments on this pull request? Best regards, Krzysztof > > > The foll

Re: [PATCH -next] serial: etraxfs-uart: Update gpiod API

2015-07-23 Thread Uwe Kleine-König
On Thu, Jul 23, 2015 at 03:23:49PM -0700, Greg Kroah-Hartman wrote: > On Tue, Jul 21, 2015 at 01:34:52PM -0700, Guenter Roeck wrote: > > Commit b17d1bf16cc7 ("gpio: make flags mandatory for gpiod_get functions") > > makes the flags argument to devm_gpiod_get_optional mandatory but does not > > upda

Re: [PATCH v2] thermal: consistently use int for temperatures

2015-07-23 Thread Sascha Hauer
On Thu, Jul 23, 2015 at 02:07:59PM +0200, Pavel Machek wrote: > On Tue 2015-07-21 09:21:32, Sascha Hauer wrote: > > The thermal code uses int, long and unsigned long for temperatures > > in different places. > > > > Using an unsigned type limits the thermal framework to positive > > temperatures w

Re: question about drivers/dma/dma-jz4780.c

2015-07-23 Thread Vinod Koul
On Fri, Jul 24, 2015 at 07:51:28AM +0200, Julia Lawall wrote: > > Yes for dmaengine drivers I do ask this question which typically ends up in > > driver invoking devm_irq_free() in driver's remove callback > > > > IMHO don't think devm irq calls are very useful, they do make stuff > > complicate >

Re: [PATCH V3 3/7] Drivers: hv: vmbus: add APIs to send/recv hvsock packet and get the r/w-ability

2015-07-23 Thread Sudip Mukherjee
On Thu, Jul 23, 2015 at 01:24:50PM +0300, Dan Carpenter wrote: > On Thu, Jul 23, 2015 at 01:10:57PM +0300, Dan Carpenter wrote: > > In this specific case, writing it as "if (ret != 0)" caused the bug. If > > we had written it as "if (ret) return ret;" then there are no zeroes so > > wouldn't have

Re: [RFC v5 PATCH 8/9] hugetlbfs: add hugetlbfs_fallocate()

2015-07-23 Thread Michal Hocko
I hope this is the current version of the pathc - I somehow got lost in last submissions where the discussion happens in v4 thread. This version seems to have the same issue: --- >From 04c37a979c5ce8cd39d3243e4e2c12905e4f1e6e Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Fri, 24 Jul 2015 08:14

Re: [PATCH] merge_config.sh: Add the ability to perform make with an ARCH

2015-07-23 Thread Masahiro Yamada
Hi Dan, 2015-07-24 5:51 GMT+09:00 Dan Murphy : > The script does not allow building for different architectures. > It may assume that the developer has set the ARCH as a global > variable. > > Add a switch argument to pass in the desired architecture. > Then verify that that architecture is suppo

Re: [PATCH v6 0/3] cpufreq: Use cpufreq-dt driver for Exynos3250

2015-07-23 Thread Krzysztof Kozlowski
On 24.07.2015 12:40, Kukjin Kim wrote: > On 07/24/15 09:30, Michael Turquette wrote: >> Quoting Kukjin Kim (2015-07-07 07:43:31) >>> Bartlomiej Zolnierkiewicz wrote: > > [...] > > Chanwoo Choi (3): > clk: samsung: exynos3250: Add cpu clock configuration data and > instaniate cpu cl

[PATCH] net: phy: dp83867: fix simple_return.cocci warnings

2015-07-23 Thread kbuild test robot
drivers/net/phy/dp83867.c:126:1-4: WARNING: end returns can be simpified drivers/net/phy/dp83867.c:74:5-8: WARNING: end returns can be simpified if tested value is negative or 0 Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/cocci

[PATCH v3] thermal: consistently use int for temperatures

2015-07-23 Thread Sascha Hauer
The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive temperatures without need. Also several drivers currently will report temperatures near UINT_MAX for temperatures below 0°C. This will probably im

Re: [PATCH RESEND] video: fbdev: s3c-fb: Constify platform_device_id

2015-07-23 Thread Krzysztof Kozlowski
2015-07-08 13:34 GMT+09:00 Jingoo Han : > > On 2015. 7. 7., at PM 10:00, Krzysztof Kozlowski > wrote: >> >> The platform_device_id is not modified by the driver and core uses it as >> const. >> >> Signed-off-by: Krzysztof Kozlowski > > Acked-by: Jingoo Han > > Best regards, > Jingoo Han Seems

Re: [RFC 1/4] mm, compaction: introduce kcompactd

2015-07-23 Thread Joonsoo Kim
On Thu, Jul 23, 2015 at 02:21:29PM -0700, David Rientjes wrote: > On Thu, 23 Jul 2015, Vlastimil Babka wrote: > > > > When a khugepaged allocation fails for a node, it could easily kick off > > > background compaction on that node and revisit the range later, very > > > similar to how we can kic

Re: [PATCH RFC] merge_config.sh: Add support to pass arguments to make

2015-07-23 Thread Masahiro Yamada
Hi Srinivas, 2015-07-21 22:22 GMT+09:00 Srinivas Kandagatla : > The issue is flags like ARCH can be passed to make via environment variable > or at command line by passing "ARCH=" argument to make file. The former case > works fine if used with merge_config but the later case would not work and >

Re: [PATCH 1/3] x86/entry/64: Refactor IRQ stacks and make then NMI-safe

2015-07-23 Thread Andy Lutomirski
On Thu, Jul 23, 2015 at 3:37 PM, Andy Lutomirski wrote: > This will allow IRQ stacks to nest inside NMIs or similar entries > that can happen during IRQ stack setup or teardown. > > The Xen code here has a confusing comment. > > Signed-off-by: Andy Lutomirski > --- > arch/x86/entry/entry_64.S

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

2015-07-23 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. R

linux-next: Tree for Jul 24

2015-07-23 Thread Stephen Rothwell
Hi all, Changes since 20150723: The ext4 tree still had its build failure so I used the version from next-20150722. The next-next tree lost its build failure. The wireless-drivers-next tree still had its build failure so I used the version from next-20150721. The input tree gained a build

[PATCH net v2 2/3] r8152: fix wakeup settings

2015-07-23 Thread Hayes Wang
Avoid the driver to enable WOL if the device doesn't support it. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index e3a0110..d537c30 100644

[PATCH net v2 1/3] r8152: fix the issue about U1/U2

2015-07-23 Thread Hayes Wang
- Disable U1/U2 during initialization. - Disable lpm when linking is on, and enable it when linking is off. - Disable U1/U2 when enabling runtime suspend. It is possible to let hw stop working, if the U1/U2 request occurs during some situations. The patch is used to avoid it. Signed-off-by: Hayes

[PATCH net v2 0/3] r8152: issues fix

2015-07-23 Thread Hayes Wang
v2: Replace patch #2 with "r8152: fix wakeup settings". v1: These patches are used to fix issues. Hayes Wang (3): r8152: fix the issue about U1/U2 - r8152: fix remote wakeup + r8152: fix wakeup settings r8152: don't enable napi before rx ready drivers/net/usb/r8152.c | 103 +++

[PATCH net v2 3/3] r8152: don't enable napi before rx ready

2015-07-23 Thread Hayes Wang
Adjust napi_disable() and napi_enable() to avoid r8152_poll() start working before rx ready. Otherwise, it may have race condition for rx_agg. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/r8152.c b

Re: question about drivers/dma/dma-jz4780.c

2015-07-23 Thread Julia Lawall
> Yes for dmaengine drivers I do ask this question which typically ends up in > driver invoking devm_irq_free() in driver's remove callback > > IMHO don't think devm irq calls are very useful, they do make stuff > complicate Would it be better then to just go back to request_irq (or whatever is a

Re: [RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-23 Thread Sascha Hauer
On Fri, Jul 24, 2015 at 10:02:03AM +0800, Scott Shu wrote: > On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote: > > Hi Scott, > > > > On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote: > > > This adds a CPU power domain driver for the Mediatek SCPSYS unit on > > > MT6580. > > > > This

linux-next: build failure after merge of the akpm-current tree

2015-07-23 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (i386 defconfig) failed like this: fs/hugetlbfs/inode.c: In function 'hugetlbfs_fallocate': fs/hugetlbfs/inode.c:578:13: error: 'struct vm_area_struct' has no member named 'vm_policy' pseudo_vma.vm_policy =

Re: [PATCH v3 5/6] iommu/mediatek: Add mt8173 IOMMU driver

2015-07-23 Thread Yong Wu
On Tue, 2015-07-21 at 15:59 +0100, Will Deacon wrote: > Hi Yong Wu, > > On Thu, Jul 16, 2015 at 10:04:34AM +0100, Yong Wu wrote: > > This patch adds support for mediatek m4u (MultiMedia Memory Management > > Unit). > > [...] > > > +static void mtk_iommu_tlb_flush_all(void *cookie) > > +{ > > +

[PATCH v4 1/2] dt-bindings: regulator: mt6311: Add document for mt6311 regulator

2015-07-23 Thread Henry Chen
This patch adds a list of supported regulator names to the devicetree binding documentation for Mediatek MT6311 PMIC. Signed-off-by: Henry Chen --- .../bindings/regulator/mt6311-regulator.txt| 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/

[PATCH v4 2/2] regulator: mt6311: Add support for mt6311 regulator

2015-07-23 Thread Henry Chen
Add regulator support for mt6311. It has 2 regulaotrs - Buck and LDO, provide the related buck/ldo voltage data to the driver, and creates the regulator_desc table. Supported operations for Buck are enabled/disabled and voltage change, only enabled/disabled for LDO. Signed-off-by: Henry Chen ---

Re: question about drivers/dma/dma-jz4780.c

2015-07-23 Thread Vinod Koul
On Thu, Jul 23, 2015 at 07:24:10PM +0200, Julia Lawall wrote: > > > On Thu, 23 Jul 2015, Vinod Koul wrote: > > > On Wed, Jul 22, 2015 at 03:26:01PM +0100, Alex Smith wrote: > > > > > >>>I think the explicit devm_free_irq() here is unnecessary, as when > > > >>>remove is > > > >>>called there sh

[PATCH v4] regulator: mt6311: Add support for MT6311 regulator

2015-07-23 Thread Henry Chen
This patch set adds support for the MediaTek PMIC mt6311 regulator driver, which adds mt6311 related buck/ldo voltage data to the driver, and creates the regulator_desc table. Changes in v4: - Removed the unnscessary check before return on mt6311_i2c_probe(). - Change the label on mt6311-regulat

[git pull] drm fixes

2015-07-23 Thread Dave Airlie
Hi Linus, some amdgpu, one i915, one ttm and one hlcdc, nothing too scary, all seems fine for about this time. Dave. The following changes since commit 45b4b782e8489bcf45a4331ee32f0f3037c5c3aa: Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespac

linux-next: build failure after merge of the akpm-current tree

2015-07-23 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc allnoconfig) failed like this: mm/built-in.o: In function `shrink_slab.part.73.constprop.83': vmscan.c:(.text+0xf760): undefined reference to `__srcu_read_lock' vmscan.c:(.text+0xf924): undefined reference to `__src

Re: Kernel broken on processors without performance counters

2015-07-23 Thread Borislav Petkov
On Thu, Jul 23, 2015 at 09:02:14PM +0200, Peter Zijlstra wrote: > On Thu, Jul 23, 2015 at 07:54:36PM +0200, Borislav Petkov wrote: > > On Thu, Jul 23, 2015 at 07:08:11PM +0200, Peter Zijlstra wrote: > > > That would be bad, how can we force it to emit 5 bytes? > > > > .byte 0xe9 like we used to do

Re: [RFC 1/4] mm, compaction: introduce kcompactd

2015-07-23 Thread Joonsoo Kim
On Thu, Jul 23, 2015 at 01:58:20PM -0700, David Rientjes wrote: > On Thu, 23 Jul 2015, Joonsoo Kim wrote: > > > > The slub allocator does try to allocate its high-order memory with > > > __GFP_WAIT before falling back to lower orders if possible. I would > > > think > > > that this would be th

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

2015-07-23 Thread Yong Wu
Hi Will, Thanks for your review so detail. When you are free, please help me check whether it's ok if it's changed like below. Thanks very much. On Tue, 2015-07-21 at 18:11 +0100, Will Deacon wrote: > Hello, > > This is looking better, but I still have some concerns. > > On Thu, Jul

[PATCH 1/2] kbuild: fixdep: optimize code slightly

2015-07-23 Thread Masahiro Yamada
If the target string matches "CONFIG_", move the pointer p forward. This saves several 7-chars adjustments. Signed-off-by: Masahiro Yamada --- scripts/basic/fixdep.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index

[PATCH 2/2] kbuild: fixdep: drop meaningless hash table initialization

2015-07-23 Thread Masahiro Yamada
The clear_config() is called just once at the beginning of this program, but the global variable hashtab[] is already zero-filled at the start-up. Signed-off-by: Masahiro Yamada --- scripts/basic/fixdep.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/scripts/basic/fixd

[PATCH 0/2] kbuild: Minor cleanups of fixdep

2015-07-23 Thread Masahiro Yamada
Masahiro Yamada (2): kbuild: fixdep: optimize code slightly kbuild: fixdep: drop meaningless hash table initialization scripts/basic/fixdep.c | 26 -- 1 file changed, 4 insertions(+), 22 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsub

[PATCH 2/3] input: cyapa: add of match device support and description document

2015-07-23 Thread Dudley Du
Add of_match_device mechanism support for Cypress trackpad device, and add the sample description document on how to adding the trackpad device node in the device tree. Signed-off-by: Dudley Du --- .../devicetree/bindings/input/cypress,cyapa.txt| 44 ++ .../devicetree/bin

[PATCH 1/3] input: cyapa: add regulator vcc support

2015-07-23 Thread Dudley Du
Add power management regulator vcc support. It's described to be supported in the cypress,cyapa.txt document. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa.c | 28 drivers/input/mouse/cyapa.h | 1 + 2 files changed, 29 insertions(+) diff --git a/drivers/in

[PATCH 3/3] input: cyapa: fix output unwanted warning issue

2015-07-23 Thread Dudley Du
Avoid the driver generate warning message when the cyapa driver working with the old Gen5 trackpad device which does not support the proximity function. Those old Gen5 trackpad device all have the platform version less than 2. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa_gen5.c | 11 ++

[PATCH 0/3] cyapa patches instruction

2015-07-23 Thread Dudley Du
These patches are made based on Dmitry's next tree. It's aimed to add regulator vcc and of match device tree supported, and also fix the output unwanted wanring message issue when working with old Gen5 Trackpad device that doesn't support the proximity function. Dudley Du (3): input: cyapa: add

Re: [PATCH 1/2] mailbox: switch to hrtimer for tx_complete polling

2015-07-23 Thread Jassi Brar
On Wed, Jul 22, 2015 at 5:58 PM, Sudeep Holla wrote: > we might end-up waiting > for atleast a jiffy even though the response for that message from the > remote is received via interrupt and processed in relatively smaller > time granularity. > That is wrong. If the controller supports TX inter

[PATCH 3/5] staging: rtl8712: remove duplicate struct

2015-07-23 Thread Joshua Clayton
struct ndis_wlan_bssid_ex is a dopelganger of struct wlan_bssid_ex, and is used about a third as often Switch all instances to wlan_bssid_ex This also gets rid of a use of typedef NDIS_802_11_RATES_EX Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/rtl871x_cmd.c | 17 ++--

[PATCH 5/5] staging: rtl8712: style fix:

2015-07-23 Thread Joshua Clayton
change instances SupportedRates to compliant and sane "rates" This change in no way harms readability, and brings several lines under the 80 character limit. Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/ieee80211.c | 22 +++--- drivers/staging/rtl8712/rtl87

[PATCH 4/5] staging: rtl8712: remove typedefs

2015-07-23 Thread Joshua Clayton
Coding style fix. Get rid of typedefs NDIS_802_11_RATES and NDIS_802_11_RATES_EX Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 4 ++-- drivers/staging/rtl8712/wlan_bssdef.h | 7 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/dri

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

2015-07-23 Thread Michal Simek
On 07/24/2015 12:51 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 Documentation/devicetree/bindings/reset/zynq-reset-pl.txt > > diff --git a/

[PATCH 2/5] staging: rtl8712: simplify size calculation

2015-07-23 Thread Joshua Clayton
replace item-by-item size calculation of a struct with the size of the struct. This gets rid of a use of typedef NDIS_802_11_RATES_EX Signed-off-by: Joshua Clayton --- drivers/staging/rtl8712/rtl871x_cmd.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/

[PATCH 0/5]

2015-07-23 Thread Joshua Clayton
The main goal of this series is to get rid of a needless and ugly typedef in the rtl8712 wlan driver. In the course of fixing that, I found a bug thati will can might (at least in theory) lead to a overrun during a memcpy, as well as a duplicate struct. Finally after cleaning up the typedef, I co

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

2015-07-23 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 Clay

[PATCH v2 0/2] PM / devfreq: exynos-ppmu: Add the support of PPMUv2

2015-07-23 Thread Chanwoo Choi
This patch-set add the support of PPMU ((Platform Performance Monitoring Unit) version 2.0 which is used on Exynos5433. The exynos-ppmu.c driver supports both PPMUv1.1 and PPMUv2. This patch-set is testd on Exynos5433-based board. The SoC list using PPMUv1.1 - Exynos4210/4212/4412, Exynos3250, Exy

[PATCH v2 1/2] PM / devfreq: exynos-ppmu: Add the support of PPMUv2 for Exynos5433

2015-07-23 Thread Chanwoo Choi
This patch adds the support for PPMU (Platform Performance Monitoring Unit) version 2.0 for Exynos5433 SoC. Exynos5433 SoC must need PPMUv2 which is quite different from PPMUv1.1. The exynos-ppmu.c driver supports both PPMUv1.1 and PPMUv2. Cc: MyungJoo Ham Cc: Kyungmin Park Signed-off-by: Chanwo

[PATCH v2 2/2] PM / devfreq: exynos-ppmu: Update documentation to support PPMUv2

2015-07-23 Thread Chanwoo Choi
This patch updates the documentation to include the information of PPMUv2. The PPMUv2 is used for Exynos5433 and Exynos7420 to monitor the performance of each IP in Exynos SoC. Cc: MyungJoo Ham Cc: Kyungmin Park Signed-off-by: Chanwoo Choi --- .../bindings/devfreq/event/exynos-ppmu.txt

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

2015-07-23 Thread He Kuang
Hi, Alexei On 2015/7/24 11:20, Alexei Starovoitov wrote: On 7/23/15 1:49 PM, Alexei Starovoitov wrote: On 7/23/15 4:54 AM, He Kuang wrote: trimmed cc-list, since it's not related to kernel. Thank you for your guidence, and by referencing your last mail and other llvm backends, I found settin

Re: [PATCH] can: xilinx: fix RX FIFO overflow error handling

2015-07-23 Thread Michal Simek
+ Kedar On 07/23/2015 11:13 PM, Andrea Scian wrote: > Simply resetting the peripheral on RX FIFO overflow in not enough, > because we also need to re-initialize the whole device. > Also always enable RX FIFO overflow interrupt otherwise we may hang > until another interrupt arrives (this happens i

Re: [PATCH v2 2/4] irqchip: bcm2835: If a parent interrupt is registered, chain from it.

2015-07-23 Thread Stephen Warren
On 07/22/2015 12:17 PM, Eric Anholt wrote: > Stephen Warren writes: > >> On 07/13/2015 07:35 PM, Eric Anholt wrote: >>> The BCM2836 (Raspberry Pi 2) uses two levels of interrupt >>> handling with the CPU-local interrupts being the root, so we >>> need to register ours as chained off of the CPU's

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

2015-07-23 Thread Du, Changbin
Thanks, Pietrasiewicz. > From: Andrzej Pietrasiewicz [mailto:andrze...@samsung.com] > W dniu 23.07.2015 o 14:34, Du, Changbin pisze: > >>From 0a8e0d63a9887735c6782d7b0c15c2c1fdf1952a Mon Sep 17 00:00:00 > > void composite_disconnect(struct usb_gadget *gadget) > > { > > struct usb_composite_

Re: [PATCH v2 1/3] RTC: make rtc_does_wakealarm() return boolean

2015-07-23 Thread Krzysztof Kozlowski
On 24.07.2015 08:01, Dmitry Torokhov wrote: > Users of rtc_does_wakealarm() return value treat it as boolean so let's > change the signature accordingly. > > Signed-off-by: Dmitry Torokhov > --- > drivers/rtc/rtc-sysfs.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Thanks for sp

Re: [PATCH v2 3/3] RTC: switch to using is_visible() to control sysfs attributes

2015-07-23 Thread Krzysztof Kozlowski
On 24.07.2015 08:01, Dmitry Torokhov wrote: > Instead of creating wakealarm attribute manually, after the device has been > registered, let's rely on facilities provided by the attribute groups to > control which attributes are visible and which are not. This allows to to > create all needed attrib

Re: [PATCH v2 2/3] RTC: switch wakealarm attribute to DEVICE_ATTR_RW

2015-07-23 Thread Krzysztof Kozlowski
On 24.07.2015 08:01, Dmitry Torokhov wrote: > Instead of using older style DEVICE_ATTR for wakealarm attribute let's > switch to using DEVICE_ATTR_RW that ensures consistent across the kernel > permissions on the attribute. > > Signed-off-by: Dmitry Torokhov > --- > drivers/rtc/rtc-sysfs.c | 8 +

Re: [PATCH v6 0/3] cpufreq: Use cpufreq-dt driver for Exynos3250

2015-07-23 Thread Kukjin Kim
On 07/24/15 12:40, Kukjin Kim wrote: > On 07/24/15 09:30, Michael Turquette wrote: >> Quoting Kukjin Kim (2015-07-07 07:43:31) >>> Bartlomiej Zolnierkiewicz wrote: > > [...] > > Chanwoo Choi (3): > clk: samsung: exynos3250: Add cpu clock configuration data and > instaniate cpu cloc

Re: [PATCH v2 1/5] clk: remove duplicated code with __clk_set_parent_after

2015-07-23 Thread Dong Aisheng
On Thu, Jul 23, 2015 at 05:11:35PM -0700, Michael Turquette wrote: > Quoting Dong Aisheng (2015-07-22 07:08:10) > > Ping... > > > > On Wed, Jul 15, 2015 at 08:29:56PM +0800, Dong Aisheng wrote: > > > On Wed, Jul 15, 2015 at 08:25:24PM +0800, Dong Aisheng wrote: > > > > Hi Mike, > > > > > > > > On

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-07-23 Thread Stephen Warren
On 07/22/2015 08:07 AM, Noralf Trønnes wrote: > > Den 18.06.2015 04:26, skrev Stephen Warren: >> On 06/12/2015 11:26 AM, Noralf Trønnes wrote: >>> Add a duplicate irq range with an offset on the hwirq's so the >>> driver can detect that enable_fiq() is used. >>> Tested with downstream dwc_otg USB

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

2015-07-23 Thread Stephen Rothwell
Hi Michael, Today's linux-next merge of the vhost tree got a conflict in: drivers/vhost/vhost.c between commit: 4de7255f7d2b ("vhost: extend memory regions allocation to vmalloc") from Linus' tree and commit: a4883f62470c ("vhost: extend memory regions allocation to vmalloc") from the

Re: [RFC] arm64:use set_fixmap_offset to make it more clear

2015-07-23 Thread yalin wang
> On Jul 23, 2015, at 21:03, Catalin Marinas wrote: > > On Thu, Jul 23, 2015 at 07:45:53PM +0800, yalin wang wrote: >> A little change to patch_map() function, >> use set_fixmap_offset() to make code more clear. >> >> Signed-off-by: yalin wang >> --- >> arch/arm64/kernel/insn.c | 5 ++--- >> 1

A problem about OX_ID reused by FCoE driver

2015-07-23 Thread Rui Xiang
From: Wu Yanjiang Hi all, On a system that was running 3.0.13-0.27-default, a problem that the OX_ID is reused by FCoE driver occurred. Which can be confirmed is that the problem is occurred at initiator side, but the reason how does it happen is unknown. By the trace captured by JDSU protoc

Re: [PATCH v6 1/3] clk: samsung: exynos3250: Add cpu clock configuration data and instaniate cpu clock

2015-07-23 Thread Kukjin Kim
On 07/20/15 09:23, Chanwoo Choi wrote: > Hi Sylwester, > Hi Chanwoo, > Please review this patch. > Applied with Mike's ack BTW please make sure your patch has no problem with checkpatch before submittingI've fixed them when I applied. Thanks, Kukjin ERROR: code indent should use tabs where

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

2015-07-23 Thread Juergen Gross
On 07/23/2015 09:08 PM, Greg KH wrote: On Thu, Jul 23, 2015 at 08:46:17AM +0200, Juergen Gross wrote: On 07/23/2015 06:36 AM, Greg KH wrote: On Thu, Jul 23, 2015 at 06:04:39AM +0200, Juergen Gross wrote: On 07/23/2015 01:46 AM, Greg KH wrote: On Tue, Jun 23, 2015 at 08:53:23AM +0200, Juergen

Re: [PATCH v3 1/4] clk: samsung: exynos5250: add cpu clock configuration data and instantiate cpu clock

2015-07-23 Thread Kukjin Kim
On 07/24/15 09:39, Michael Turquette wrote: > Quoting Bartlomiej Zolnierkiewicz (2015-07-01 06:10:35) >> From: Thomas Abraham >> >> With the addition of the new Samsung specific cpu-clock type, the >> arm clock can be represented as a cpu-clock type. Add the CPU clock >> configuration data and ins

Re: [PATCH v9 6/7] staging: add simple-fpga-bus

2015-07-23 Thread atull
On Thu, 23 Jul 2015, Jason Gunthorpe wrote: > On Thu, Jul 23, 2015 at 02:55:52PM -0700, Moritz Fischer wrote: > > Hi Alan, > > > > I saw that your socfpga driver doesn't support the partial reconfig > > use case (not a big deal). > > What I currently do for Zynq is if I'm doing a non-partial reco

Re: [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC

2015-07-23 Thread Michael Turquette
Quoting Paul Osmialowski (2015-07-04 14:50:03) > Hi Arnd, > > I'm attaching excerpt from Kinetis reference manual that may make > situation clearer. Hi Paul, Can you please post the patch in the body of the email instead of an attachment? It makes it easier to review. Another small nitpick is t

Re: [PATCH v6 0/3] cpufreq: Use cpufreq-dt driver for Exynos3250

2015-07-23 Thread Kukjin Kim
On 07/24/15 09:30, Michael Turquette wrote: > Quoting Kukjin Kim (2015-07-07 07:43:31) >> Bartlomiej Zolnierkiewicz wrote: [...] Chanwoo Choi (3): clk: samsung: exynos3250: Add cpu clock configuration data and instaniate cpu clock ARM: dts: Add CPU OPP and regulator suppl

Re: [patch] workqueue: schedule WORK_CPU_UNBOUND work on wq_unbound_cpumask CPUs

2015-07-23 Thread Mike Galbraith
On Wed, 2015-07-22 at 11:25 -0400, Tejun Heo wrote: > Hello, > > On Wed, Jul 22, 2015 at 05:19:00PM +0200, Mike Galbraith wrote: > > Ew, looking at the numbers, they may prefer to either a) pretend to not > > notice, or b) scurry off to HPC'R'US store if a) won't fly ;-) > > Yeah, there are a lot

Re: [PATCH v3 1/2] dt-bindings: regulator: mt6311: Add document for mt6311 regulator

2015-07-23 Thread Henry Chen
Hi Javier, On Thu, 2015-07-23 at 10:43 +0200, Javier Martinez Canillas wrote: > Hello Henry, > > On Thu, Jul 23, 2015 at 5:39 AM, Henry Chen wrote: > > This patch adds a list of supported regulator names to the devicetree > > binding documentation for Mediatek MT6311 PMIC. > > > > Signed-off-by:

Re: [PATCH v11 1/5] drm/layerscape: Add Freescale DCU DRM driver

2015-07-23 Thread jianwei wang
Hi Dave, I think Freescale DCU DRM driver is ready now, can it land? I have worked on this driver for about nine month. Daniel Vetter, Thierry Reding, Mark yao, Alexander Stein, Paul Bolle, Alison Wang, Stefan Agner reviewed this pathset. The latest version v11 has been send out about an week, an

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

2015-07-23 Thread Alexei Starovoitov
On 7/23/15 1:49 PM, Alexei Starovoitov wrote: On 7/23/15 4:54 AM, He Kuang wrote: trimmed cc-list, since it's not related to kernel. Thank you for your guidence, and by referencing your last mail and other llvm backends, I found setting BPFMCAsmInfo::SupportsDebugInformation = true in BPFMCAsm

Re: [PATCH 2/3] leds/class: Check snprintf return value

2015-07-23 Thread Alan Tull
On Mon, Mar 30, 2015 at 4:08 AM, Ricardo Ribalda Delgado wrote: > If the final name does not fit the string there is a potential > endless-loop. > > Reported-by: Geert Uytterhoeven > Signed-off-by: Ricardo Ribalda Delgado > --- > drivers/leds/led-class.c | 10 +- > 1 file changed, 9 ins

[PATCH] x86/mm/pat: Do a small optimization when dump PAT memtype list

2015-07-23 Thread Pan Xinhui
From: Pan Xinhui There are many nodes in the PAT memtype rb-tree. When we dump this tree we call kzalloc every time to copy nodes. Actually these kzalloc are not necessary. Lets do a optimization now. Let seq_file core create an *entry* when open and free it when release. *entry* is stored as se

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-23 Thread Jordan Hargrave
On Thu, Jul 23, 2015 at 9:31 PM, Jordan Hargrave wrote: > On Thu, Jul 23, 2015 at 12:24 PM, Bjorn Helgaas wrote: >> [+cc Matthew for PCIe-SSD perspective] >> >> On Wed, Jul 22, 2015 at 03:07:46PM -0500, Jordan Hargrave wrote: >>> On Tue, Jul 21, 2015 at 8:09 PM, Bjorn Helgaas wrote: >>> > On Tue

RE: [PATCH] target: add support for START_STOP_UNIT SCSI opcode

2015-07-23 Thread Elliott, Robert (Server Storage)
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Spencer Baugh > Sent: Thursday, July 23, 2015 5:28 PM > To: Christoph Hellwig ; Spencer Baugh > ... > Subject: Re: [PATCH] target: add support for START_STOP_UNIT S

Re: [RFT PATCH v3] PCI: move pci_read_bridge_bases to the generic PCI layer

2015-07-23 Thread Guenter Roeck
On 07/23/2015 10:52 AM, Lorenzo Pieralisi wrote: For alpha, PCI_PROBE_ONLY is set for two platforms, marvel and titan, out of ~20. mips sets the flag for 6 platforms out of >25. Unlikely that those are the only relevant ones. I could try to run some qemu tests for both architectures, but I have

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

2015-07-23 Thread James Liao
Remove the dependency from clk_null, and give all root clocks a typical rate, include clkph_mck_o, usb_syspll_125m and hdmitx_dig_cts. dpi_ck was removed due to no clock reference to it. Replace parent clock of infra_cpum with cpum_ck, which is an external clock and can be defined in the deivce t

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

2015-07-23 Thread James Liao
This patch adds device nodes providing subsystem clocks on MT8173, includes mmsys, imgsys, vdecsys, vencsys and vencltsys. Signed-off-by: James Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 37 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/

  1   2   3   4   5   6   7   8   9   10   >