[PATCH] spi: dw: Use SPI_TMOD_TR rather than magic const 0 to set tmode

2015-12-23 Thread Jisheng Zhang
The TMODE available value is well defined and documented in the header file. Use it and remove the comment. Signed-off-by: Jisheng Zhang --- drivers/spi/spi-dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c index 882cd66..c09bb74

Re: [PATCH v2 1/9] ARM: mvebu: ix4-300d: Add compatible property to "partitions" node

2015-12-23 Thread Gregory CLEMENT
Hi Olof, On mar., déc. 22 2015, Olof Johansson wrote: > On Mon, Dec 21, 2015 at 05:48:48PM +0100, Gregory CLEMENT wrote: >> Hi Geert, >> >> On lun., d??c. 21 2015, Geert Uytterhoeven wrote: >> >> > As of commit e488ca9f8d4f62c2 ("doc: dt: mtd: partitions: add compatible >> > property to "

Re: [GIT PULL 5/9] ARM: EXYNOS: Drivers for v4.5

2015-12-23 Thread Krzysztof Kozlowski
W dniu 23.12.2015 o 20:06, Tomasz Figa pisze: > 2015-12-23 19:58 GMT+09:00 Krzysztof Kozlowski : >> W dniu 23.12.2015 o 19:54, Tomasz Figa pisze: >>> Hi, >>> >>> 2015-12-23 19:51 GMT+09:00 Krzysztof Kozlowski : W dniu 22.12.2015 o 13:50, Olof Johansson pisze: > On Wed, Dec 02, 2015 at 10:3

[PATCH 1/2] kexec: Introduce a protection mechanism for the crashkernel reserved memory

2015-12-23 Thread Xunlei Pang
For the cases that some kernel (module) path stamps the crash reserved memory(already mapped by the kernel) where has been loaded the second kernel data, the kdump kernel will probably fail to boot when panic happens (or even not happens) leaving the culprit at large, this is unacceptable. The pat

[PATCH 2/2] kexec: Provide arch_kexec_protect(unprotect)_crashkres()

2015-12-23 Thread Xunlei Pang
Implement the protection method for the crash kernel memory reservation for the 64-bit x86 kdump. Signed-off-by: Xunlei Pang --- Only provided x86_64 implementation, as I've only tested on x86_64 so far. arch/x86/kernel/machine_kexec_64.c | 43 ++ 1 file chan

Re: KVM: memory ballooning bug?

2015-12-23 Thread Rafael Aquini
On Wed, Dec 23, 2015 at 02:22:28PM +0900, Minchan Kim wrote: > During my compaction-related stuff, I encountered some problems with > ballooning. > > Firstly, with repeated inflating and deflating cycle, guest memory(ie, > cat /proc/meminfo | grep MemTotal) decreased and couldn't recover. > > Whe

RE: [PATCH v2] r8152: fix lockup when runtime PM is enabled

2015-12-23 Thread Hayes Wang
Oliver Neukum [mailto:oneu...@suse.com] > Sent: Wednesday, December 23, 2015 6:46 PM [...] > That is indeed a problem and I need to think a bit about finding > a good solution. If you are happy with an inelegant solution, you can > use a pm_notifier, which will tell you that the system is going > t

Re: ARC AXS101 problems with linux next-20151221

2015-12-23 Thread Vineet Gupta
Hi Christoph, Andrew > On Tuesday 22 December 2015 12:00 AM, Carlos Palminha wrote: > Hi guys, > > I just compiled the kernel for axs101_defconfig based on linux next tag > 'next-20151221'. > I can't boot it due to the following errors causing strange stack traces > after freeing unused kernel

Re: [PATCH 2/2] ixgbe: Use core to device locality interface

2015-12-23 Thread kbuild test robot
Hi Daniel, [auto build test ERROR on pci/next] [also build test ERROR on v4.4-rc6 next-20151223] url: https://github.com/0day-ci/linux/commits/Daniel-J-Blueman/PCI-Add-mechanism-to-find-topologically-near-cores/20151223-181947 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas

Re: [PATCH] cpufreq: scpi-cpufreq: signedness bug in scpi_get_dvfs_info()

2015-12-23 Thread Sudeep Holla
Hi Rafael, On Tue, Dec 15, 2015 at 11:16 AM, Sudeep Holla wrote: > From: Dan Carpenter > > The "domain" variable needs to be signed for the error handling to work. > > Fixes: 8def31034d03 ('cpufreq: arm_big_little: add SCPI interface driver') > Signed-off-by: Dan Carpenter > Acked-by: Viresh Ku

Re: [PATCH 13/19] ARM: dts: tegra: replace legacy *,wakeup property with wakeup-source

2015-12-23 Thread Sudeep Holla
On Wed, Oct 21, 2015 at 11:10 AM, Sudeep Holla wrote: > Though the keyboard and other driver will continue to support the legacy > "gpio-key,wakeup", "nvidia,wakeup-source" boolean property to enable the > wakeup source, "wakeup-source" is the new standard binding. > > This patch replaces all the

[RFC] spi: dw: support setting tmode dynamically

2015-12-23 Thread Jisheng Zhang
Hi all, Currently the spi-dw tmode is fixed to SPI_TMOD_TR if cs_control is NULL, but we need to set it as SPI_TMOD_EPROMREAD to read nor flash, my solution is to add and export one functions to set the tmode, then the nor flash driver call it before reading and set back to SPI_TMOD_TR after done

[PATCH 1/3] clockevents/arm_arch_timer: Implement ->set_state_oneshot_stopped()

2015-12-23 Thread Viresh Kumar
set_state_oneshot_stopped() is called by the clkevt core, when the next event is required at an expiry time of 'KTIME_MAX'. This normally happens with NO_HZ_{IDLE|FULL} in both LOWRES/HIGHRES modes. This patch makes the clockevent device to stop on such an event, to avoid spurious interrupts, as e

[PATCH 0/3] clockevents/arm: Implement ->set_state_oneshot_stopped()

2015-12-23 Thread Viresh Kumar
Hi Daniel/Thomas, ONESHOT-STOPPED state was merged into mainline sometime back and doesn't have any users until now. This series implements the set_state_oneshot_stopped() callback for few ARM clkevt drivers. Which other clkevt drivers will you advice to update, if any? Tested on ARM Exynos 525

[PATCH 3/3] clockevents/exynos_mct: Implement ->set_state_oneshot_stopped()

2015-12-23 Thread Viresh Kumar
set_state_oneshot_stopped() is called by the clkevt core, when the next event is required at an expiry time of 'KTIME_MAX'. This normally happens with NO_HZ_{IDLE|FULL} in both LOWRES/HIGHRES modes. This patch makes the clockevent device to stop on such an event, to avoid spurious interrupts, as e

[PATCH 2/3] clockevents/arm_global_timer: Implement ->set_state_oneshot_stopped()

2015-12-23 Thread Viresh Kumar
set_state_oneshot_stopped() is called by the clkevt core, when the next event is required at an expiry time of 'KTIME_MAX'. This normally happens with NO_HZ_{IDLE|FULL} in both LOWRES/HIGHRES modes. This patch makes the clockevent device to stop on such an event, to avoid spurious interrupts, as e

[PATCH v2 00/11] KVM: x86: track guest page access

2015-12-23 Thread Xiao Guangrong
Changelog in v2: - fix a issue that the track memory of memslot is freed if we only move the memslot or change the flags of memslot - do not track the gfn which is not mapped in memslots - introduce the nolock APIs at the begin of the patchset - use 'unsigned short' as the track counter to reduce

[PATCH v2 04/11] KVM: page track: add the framework of guest page tracking

2015-12-23 Thread Xiao Guangrong
The array, gfn_track[mode][gfn], is introduced in memory slot for every guest page, this is the tracking count for the gust page on different modes. If the page is tracked then the count is increased, the page is not tracked after the count reaches zero We use 'unsigned short' as the tracking coun

[PATCH v2 08/11] KVM: MMU: use page track for non-leaf shadow pages

2015-12-23 Thread Xiao Guangrong
non-leaf shadow pages are always write protected, it can be the user of page track Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index b23f9fc..5a2ca73 1

[PATCH v2 11/11] KVM: MMU: apply page track notifier

2015-12-23 Thread Xiao Guangrong
Register the notifier to receive write track event so that we can update our shadow page table It makes kvm_mmu_pte_write() be the callback of the notifier, no function is changed Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h | 5 +++-- arch/x86/kvm/mmu.c | 19

[PATCH v2 10/11] KVM: MMU: clear write-flooding on the fast path of tracked page

2015-12-23 Thread Xiao Guangrong
If the page fault is caused by write access on write tracked page, the real shadow page walking is skipped, we lost the chance to clear write flooding for the page structure current vcpu is using Fix it by locklessly waking shadow page table to clear write flooding on the shadow page structure out

[PATCH v2 06/11] KVM: MMU: let page fault handler be aware tracked page

2015-12-23 Thread Xiao Guangrong
The page fault caused by write access on the write tracked page can not be fixed, it always need to be emulated. page_fault_handle_page_track() is the fast path we introduce here to skip holding mmu-lock and shadow page table walking However, if the page table is not present, it is worth making th

Re: [PATCH] drivers/char/mem.c: Add /dev/ioports, supporting 16-bit and 32-bit ports

2015-12-23 Thread Santosh Shukla
On 23 December 2015 at 03:26, Arnd Bergmann wrote: > On Tuesday 22 December 2015, Santosh Shukla wrote: >> } >> >> So I care for /dev/ioport types interface who could do more than byte >> data copy to/from user-space. I tested this patch with little >> modification and could able to run pmd driver

[PATCH v2 07/11] KVM: page track: add notifier support

2015-12-23 Thread Xiao Guangrong
Notifier list is introduced so that any node wants to receive the track event can register to the list Two APIs are introduced here: - kvm_page_track_register_notifier(): register the notifier to receive track event - kvm_page_track_unregister_notifier(): stop receiving track event by unregis

[PATCH v2 09/11] KVM: MMU: simplify mmu_need_write_protect

2015-12-23 Thread Xiao Guangrong
Now, all non-leaf shadow page are page tracked, if gfn is not tracked there is no non-leaf shadow page of gfn is existed, we can directly make the shadow page of gfn to unsync Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 26 -- 1 file changed, 8 insertions(+), 1

[PATCH v2 05/11] KVM: page track: introduce kvm_page_track_{add,remove}_page

2015-12-23 Thread Xiao Guangrong
These two functions are the user APIs: - kvm_page_track_add_page(): add the page to the tracking pool after that later specified access on that page will be tracked - kvm_page_track_remove_page(): remove the page from the tracking pool, the specified access on the page is not tracked after the

[PATCH v2 02/11] KVM: MMU: introduce kvm_mmu_gfn_{allow,disallow}_lpage

2015-12-23 Thread Xiao Guangrong
Abstract the common operations from account_shadowed() and unaccount_shadowed(), then introduce kvm_mmu_gfn_disallow_lpage() and kvm_mmu_gfn_allow_lpage() These two functions will be used by page tracking in the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 38 +

[PATCH v2 01/11] KVM: MMU: rename has_wrprotected_page to mmu_gfn_lpage_is_disallowed

2015-12-23 Thread Xiao Guangrong
kvm_lpage_info->write_count is used to detect if the large page mapping for the gfn on the specified level is allowed, rename it to disallow_lpage to reflect its purpose, also we rename has_wrprotected_page() to mmu_gfn_lpage_is_disallowed() to make the code more clearer Later we will extend this

[PATCH v2 03/11] KVM: MMU: introduce kvm_mmu_slot_gfn_write_protect

2015-12-23 Thread Xiao Guangrong
Split rmap_write_protect() and introduce the function to abstract the write protection based on the slot This function will be used in the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 16 +++- arch/x86/kvm/mmu.h | 2 ++ 2 files changed, 13 insertions(+), 5 del

Re: [PATCH] regulator: s2m,s5m: constify regulator_ops structures

2015-12-23 Thread Mark Brown
On Wed, Dec 23, 2015 at 08:20:43AM +0100, Julia Lawall wrote: > On Wed, 23 Dec 2015, Mark Brown wrote: > > On Sat, Dec 19, 2015 at 03:58:00PM +0100, Julia Lawall wrote: > > > The regulator_ops structures are never modified, so declare them as const. > > > Done with the help of Coccinelle. > > Th

Re: [PATCH 3/6] ASoC: da7219: Update REFERENCES reg default, in-line with HW

2015-12-23 Thread Mark Brown
On Wed, Dec 23, 2015 at 09:47:23AM +, Opensource [Adam Thomson] wrote: > On December 23, 2015 00:10, Mark Brown wrote: > > This is the sort of thing where a register patch would normally be used > > - if you put in a register patch for the older silicon then the driver > > can correct for the

Re: [PATCH 3/6] regulator: lp872x: Remove warning about invalid DVS GPIO

2015-12-23 Thread Mark Brown
On Wed, Dec 23, 2015 at 11:58:36AM +0100, Paul Kocialkowski wrote: > Some devices don't hook the DVS pin to a GPIO but to ground or VCC. > In those cases, it is not a problem to have no DVS GPIO. I would expect the driver at least needs to know how the pins or strapped, or otherwise have configura

Re: [PATCH] IMA: policy can be updated zero times

2015-12-23 Thread Petko Manolov
On 15-12-22 16:50:01, Sasha Levin wrote: > On 12/22/2015 04:40 PM, Petko Manolov wrote: > >> Thanks, Sasha. By the time ima_update_policy() is called > >> >ima_release_policy() has already output the policy update status > >> >message. I guess an empty policy could be considered a valid policy. >

Re: [RFC LINUX PATCH] dt: xilinx: xadc: provision to control clock frequency

2015-12-23 Thread Sören Brinkmann
On Wed, 2015-12-23 at 03:58PM +0530, Ranjit Waghmode wrote: > This patch adds parameter to the xilinx-xadc node for controlling > clock frequency. > > Following are the possible options for user to control the frequency: > * 00 : 1/2 of clock frequency > * 01 : 1/4 of clock frequency >

Re: [PATCH 1/2] usb: gadget: f_midi: refactor state machine

2015-12-23 Thread Felipe Ferreri Tonello
Hi Clemens, On 22/12/15 17:10, Clemens Ladisch wrote: > Felipe F. Tonello wrote: >> This refactor includes the following: >> * Cleaner state machine code; > > It does not correctly handle system real time messages inserted between > the status and data bytes of other messages. True, thanks for

Re: [PATCH] PM / Domains: Release mutex when powering on master domain

2015-12-23 Thread Ulf Hansson
On 22 December 2015 at 14:13, Daniel Kurtz wrote: > Commit ba2bbfbf6307 (PM / Domains: Remove intermediate states from the > power off sequence) removed the mutex_unlock()/_lock() around powering on > a genpd's master domain in __genpd_poweron(). > > Since all genpd's share a mutex lockdep class,

Re: [PATCH 3/6] regulator: lp872x: Remove warning about invalid DVS GPIO

2015-12-23 Thread Paul Kocialkowski
Le mercredi 23 décembre 2015 à 11:41 +, Mark Brown a écrit : > On Wed, Dec 23, 2015 at 11:58:36AM +0100, Paul Kocialkowski wrote: > > Some devices don't hook the DVS pin to a GPIO but to ground or VCC. > > In those cases, it is not a problem to have no DVS GPIO. > > I would expect the driver a

Suspend To RAM failure in >= 4.1 - bissected to "drm/i915: Track GEN6 page table usage"

2015-12-23 Thread Sylvain Munaut
Hi, When trying to upgrade my kernel yesterday to the latest 4.3.3 I noticed that the suspend to ram was not working. Basically it goes to sleep but never wakes up. It seems to power up but no screen, not available through ssh either and afaict nothing runs afterwards. I first tried a couple off

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-23 Thread Mark Brown
On Wed, Dec 23, 2015 at 11:58:37AM +0100, Paul Kocialkowski wrote: > + gpio = lp->pdata->enable_gpio; > + if (!gpio_is_valid(gpio)) > + return 0; > + > + /* Always set enable GPIO high. */ > + ret = devm_gpio_request_one(lp->dev, gpio, GPIOF_OUT_INIT_HIGH, "LP872X > EN

[PATCH] BugFix in XHCI controller driver for scatter gather DMA

2015-12-23 Thread Vikas Bansal
From: Sumit Batra Pre-Condition URB with Scatter Gather list is queued to bulk OUT endpoint. Every buffer in scatter gather list is not a multiple of maximum packet size for that endpoint(short packet). CHAIN bit is set for all TRBs in a TD so that the DMA happens to all of them at once. Is

Re: [PATCH 3/6] regulator: lp872x: Remove warning about invalid DVS GPIO

2015-12-23 Thread Mark Brown
On Wed, Dec 23, 2015 at 12:50:20PM +0100, Paul Kocialkowski wrote: > Le mercredi 23 décembre 2015 à 11:41 +, Mark Brown a écrit : > > I would expect the driver at least needs to know how the pins or > > strapped, or otherwise have configuration for ignoring the input on the > > pins. This jus

Re: [PATCH] regulator: mt6397: convert to arch_initcall

2015-12-23 Thread Mark Brown
On Wed, Dec 23, 2015 at 06:16:08PM +0800, Henry Chen wrote: Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. > Due to some device may need reulator operation in earlier boo

[PATCH] vfio/iommu_type1: make use of info.flags

2015-12-23 Thread Pierre Morel
The flags entry is there to tell the user that some optional information is available. Since we report the iova_pgsizes signal it to the user by setting the flags to VFIO_IOMMU_INFO_PGSIZES. Signed-off-by: Pierre Morel --- drivers/vfio/vfio_iommu_type1.c | 2 +- 1 file changed, 1 insertion(+),

Applied "regulator: lp872x: Get rid of duplicate reference to DVS GPIO" to the regulator tree

2015-12-23 Thread Mark Brown
The patch regulator: lp872x: Get rid of duplicate reference to DVS GPIO has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the nex

Applied "regulator: lp872x: Add missing of_match in regulators descriptions" to the regulator tree

2015-12-23 Thread Mark Brown
The patch regulator: lp872x: Add missing of_match in regulators descriptions has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in th

Re: [RFC] spi: dw: support setting tmode dynamically

2015-12-23 Thread Mark Brown
On Wed, Dec 23, 2015 at 07:23:38PM +0800, Jisheng Zhang wrote: > Currently the spi-dw tmode is fixed to SPI_TMOD_TR if cs_control is NULL, but > we > need to set it as SPI_TMOD_EPROMREAD to read nor flash, my solution is to add > and > export one functions to set the tmode, then the nor flash dr

Re: [PATCH v9 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410

2015-12-23 Thread Krzysztof Kozlowski
W dniu 18.12.2015 o 18:16, Pavel Fedin pisze: > Hello! > >> 4. This branch is not pushed to linux-next. I will sort it out if my >> previous pull requests get in. I will be out of office for Christmas so >> depending on the timing of {arm-soc,Christmas,Kukjin} this may or may >> not go into v4.5

Re: [PATCH powerpc/next v6 0/4] atomics: powerpc: Implement relaxed/acquire/release variants

2015-12-23 Thread Davidlohr Bueso
On Wed, 23 Dec 2015, Boqun Feng wrote: There is one thing we should be aware of, that is the bug: http://lkml.kernel.org/r/5669d5f2.5050...@caviumnetworks.com which though has been fixed by: http://lkml.kernel.org/r/20151217160549.gh6...@twins.programming.kicks-ass.net Right, and fwiw the te

RE: [PATCH 0/7][v4] Add OTG support for FSL socs

2015-12-23 Thread Ramneek Mehresh
> -Original Message- > From: Jun Li [mailto:jun...@nxp.com] > Sent: Wednesday, December 23, 2015 10:36 AM > To: Felipe Balbi ; Mehresh Ramneek-B31383 > ; linux-kernel@vger.kernel.org > Cc: st...@rowland.harvard.edu; gre...@linuxfoundation.org; linux- > u...@vger.kernel.org > Subject: RE:

Re: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c

2015-12-23 Thread Mauro Carvalho Chehab
Em Wed, 23 Dec 2015 01:07:31 +0200 Laurent Pinchart escreveu: > Hi Mauro, > > On Tuesday 22 December 2015 16:33:50 Mauro Carvalho Chehab wrote: > > Em Tue, 22 Dec 2015 20:06:38 +0200 Laurent Pinchart escreveu: > > > On Tuesday 22 December 2015 09:40:43 Javier Martinez Canillas wrote: > > > > On

Re: [PATCH] IMA: policy can be updated zero times

2015-12-23 Thread Mimi Zohar
On Wed, 2015-12-23 at 13:47 +0200, Petko Manolov wrote: > On 15-12-22 16:50:01, Sasha Levin wrote: > > On 12/22/2015 04:40 PM, Petko Manolov wrote: > > >> Thanks, Sasha. By the time ima_update_policy() is called > > >> >ima_release_policy() has already output the policy update status > > >> >mess

[PATCH v2 2/2] clk: qcom: common: check for failure

2015-12-23 Thread Sudip Mukherjee
We were not checking the return from devm_add_action() which can fail. Start using the helper and devm_add_action_or_reset() and return directly as we know that the cleanup has been done by this helper. Signed-off-by: Sudip Mukherjee --- v2: added the helper in patch 1/2 and used that helper her

[PATCH 1/2] devm: add helper devm_add_action_or_reset()

2015-12-23 Thread Sudip Mukherjee
Add a helper function devm_add_action_or_reset() which will internally call devm_add_action(). But if devm_add_action() fails then it will execute the action mentioned and return the error code. Signed-off-by: Sudip Mukherjee --- Next patch of the series will use this helper. And from a first gl

[PATCH v12 0/18] Add Analogix Core Display Port Driver

2015-12-23 Thread Yakir Yang
Hi all, The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller share the same IP, so a lot of parts can be re-used. I split the common code into bridge directory, then rk3288 and exynos only need to keep some platform code. Cause I can't find the exact IP name of exynos dp contro

[PATCH 2/2] PCI: label, sysfs: use kobj_to_dev

2015-12-23 Thread Geliang Tang
Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/pci/pci-label.c | 4 ++-- drivers/pci/pci-sysfs.c | 40 +++- 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/drivers/pci/pci-label.c b/drivers/pci/pci-label.

[PATCH 1/2] PCI: use to_pci_dev

2015-12-23 Thread Geliang Tang
Use to_pci_dev() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/pci/hotplug/shpchp_sysfs.c | 2 +- drivers/pci/pci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/hotplug/shpchp_sysfs.c b/drivers/pci/hotplug/shpchp_sysfs.

[PATCH v12 02/18] drm: bridge: analogix/dp: fix some obvious code style

2015-12-23 Thread Yakir Yang
Fix some obvious alignment problems, like alignment and line over 80 characters problems, make this easy to be maintained later. Signed-off-by: Yakir Yang Acked-by: Jingoo Han Reviewed-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas --- Changes in v12: - Add the ack from Jingoo Ch

[PATCH v12 03/18] drm: bridge: analogix/dp: remove duplicate configuration of link rate and link count

2015-12-23 Thread Yakir Yang
link_rate and lane_count already configured in analogix_dp_set_link_train(), so we don't need to config those repeatly after training finished, just remove them out. Beside Display Port 1.2 already support 5.4Gbps link rate, the maximum sets would change from {1.62Gbps, 2.7Gbps} to {1.62Gbps, 2.7G

[PATCH v12 04/18] drm: bridge: analogix/dp: dynamic parse sync_pol & interlace & dynamic_range

2015-12-23 Thread Yakir Yang
Both hsync/vsync polarity and interlace mode can be parsed from drm display mode, and dynamic_range and ycbcr_coeff can be judge by the video code. But presumably Exynos still relies on the DT properties, so take good use of mode_fixup() in to achieve the compatibility hacks. Signed-off-by: Yakir

[PATCH v12 06/18] ARM: dts: exynos/dp: remove some properties that deprecated by analogix_dp driver

2015-12-23 Thread Yakir Yang
After exynos_dp have been split the common IP code into analogix_dp driver, the analogix_dp driver have deprecated some Samsung platform properties which could be dynamically parsed from EDID/MODE/DPCD message, so this is an update for Exynos DTS file for dp-controller. Beside the backward compati

[PATCH v12 05/18] dt-bindings: add document for analogix display port driver

2015-12-23 Thread Yakir Yang
Analogix dp driver is split from exynos dp driver, so we just make an copy of exynos_dp.txt, and then simplify exynos_dp.txt Beside update some exynos dtsi file with the latest change according to the devicetree binding documents. Signed-off-by: Yakir Yang Acked-by: Rob Herring --- Changes in v

Re: [PATCH v3 00/23] Unrestricted media entity ID range support

2015-12-23 Thread Mauro Carvalho Chehab
Em Wed, 16 Dec 2015 16:03:01 +0200 Sakari Ailus escreveu: > Hi Javier, > > On Wed, Dec 16, 2015 at 03:32:15PM +0200, Sakari Ailus wrote: > > This is the third version of the unrestricted media entity ID range > > support set. I've taken Mauro's comments into account and fixed a number > > of bug

Re: [RFC] spi: dw: support setting tmode dynamically

2015-12-23 Thread Jisheng Zhang
Dear Mark, On Wed, 23 Dec 2015 12:15:12 + Mark Brown wrote: > On Wed, Dec 23, 2015 at 07:23:38PM +0800, Jisheng Zhang wrote: > > > Currently the spi-dw tmode is fixed to SPI_TMOD_TR if cs_control is NULL, > > but we > > need to set it as SPI_TMOD_EPROMREAD to read nor flash, my solution is

[PATCH v12 07/18] drm: rockchip: dp: add rockchip platform dp driver

2015-12-23 Thread Yakir Yang
Rockchip have three clocks for dp controller, we leave pclk_edp to analogix_dp driver control, and keep the sclk_edp_24m and sclk_edp in platform driver. Signed-off-by: Yakir Yang --- Changes in v12: None Changes in v11: None Changes in v10: - Correct the ROCKCHIP_ANALOGIX_DP indentation in Kconf

[PATCH v12 08/18] dt-bindings: add document for rockchip variant of analogix_dp

2015-12-23 Thread Yakir Yang
Rockchip DP driver is a helper driver of analogix_dp coder driver, so most of the DT property should be descriped in analogix_dp document. Signed-off-by: Yakir Yang Acked-by: Rob Herring Reviewed-by: Heiko Stuebner --- Changes in v12: None Changes in v11: None Changes in v10: - Add the ack from

Re: Suspend To RAM failure in >= 4.1 - bissected to "drm/i915: Track GEN6 page table usage"

2015-12-23 Thread Sylvain Munaut
Hi, > I then ran a git bissect between v4.0 and v4.1 from Linus's tree and > found the "guilty" commit was > > commit 317b4e903636305cfe702ab3e5b3d68547a69e72 > Author: Ben Widawsky > Date: Mon Mar 16 16:00:55 2015 + > > drm/i915: Extract context switch skip and add pd load logic Damni

[PATCH v12 09/18] phy: Add driver for rockchip Display Port PHY

2015-12-23 Thread Yakir Yang
Add phy driver for the Rockchip DisplayPort PHY module. This is required to get DisplayPort working in Rockchip SoCs. Signed-off-by: Yakir Yang Reviewed-by: Heiko Stuebner --- Changes in v12: - Re-order the include headers file alphabetically in phy-rockchip-dp.c (Jingoo) Changes in v11: None C

[PATCH v12 10/18] dt-bindings: add document for rockchip dp phy

2015-12-23 Thread Yakir Yang
Add dt binding documentation for rockchip display port PHY. Signed-off-by: Yakir Yang Acked-by: Rob Herring Reviewed-by: Heiko Stuebner --- Changes in v12: None Changes in v11: - Correct the title of this rockchip dp phy document(Rob) - Add the ack from Rob Herring Changes in v10: None Changes

[PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag

2015-12-23 Thread Rameshwar Prasad Sahu
For interrupt controller that doesn't support irq_disable and hardware with level interrupt, an extra interrupt can be pending. This patch fixes the issue by setting IRQ_DISABLE_UNLAZY flag for the interrupt line. Reference: http://git.kernel.org/tip/e9849777d0e27cdd2902805be51da73e7c79578c Signe

[PATCH v12 11/18] drm: bridge: analogix/dp: add some rk3288 special registers setting

2015-12-23 Thread Yakir Yang
RK3288 need some special registers setting, we can separate them out by the dev_type of plat_data. Signed-off-by: Yakir Yang --- Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Chang

[PATCH 2/2] bridge: use kobj_to_dev instead of to_dev

2015-12-23 Thread Geliang Tang
kobj_to_dev has been defined in linux/device.h, so I replace to_dev with it. Signed-off-by: Geliang Tang --- net/bridge/br_sysfs_br.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/bridge/br_sysfs_br.c b/net/bridge/br_sysfs_br.c index 8365bd5..6b80914 100644 --- a/net/

[PATCH 1/2] bonding: drop unused to_dev macro in bond_sysfs.c

2015-12-23 Thread Geliang Tang
to_dev is not used anymore so drop it. Signed-off-by: Geliang Tang --- drivers/net/bonding/bond_sysfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index f4ae720..313dbac 100644 --- a/drivers/net/bonding/bond_sysfs.c +++

Re: [PATCH 1/4] x86/efi: show actual ending addresses in efi_print_memmap

2015-12-23 Thread Matt Fleming
On Tue, 22 Dec, at 08:08:19PM, Elliott, Robert (Persistent Memory) wrote: > > While investigating the grub persistent memory corruption > issues, it was helpful to make this table match the ending > address convention used by: > * the kernel's e820 table prints > * the kernel's nosave memory print

[PATCH v12 12/18] drm: bridge: analogix/dp: add max link rate and lane count limit for RK3288

2015-12-23 Thread Yakir Yang
There are some IP limit on rk3288 that only support 4 physical lanes of 2.7/1.6 Gbps/lane, so seprate them out by device_type flag. Signed-off-by: Yakir Yang Tested-by: Javier Martinez Canillas --- Changes in v12: None Changes in v11: None Changes in v10: - Remove the surplus "plat_data" check.

[PATCH char-misc-next] misc: mic: return proper error code

2015-12-23 Thread Sudip Mukherjee
On error we are supposed to return negative error code but here we missed giving the nagative sign. It was never a problem because the pointer returned from scif_add_mmu_notifier() was never tested. But even though we should be returning negative error. Signed-off-by: Sudip Mukherjee --- drivers

Re: [PATCH 1/4] x86/efi: show actual ending addresses in efi_print_memmap

2015-12-23 Thread Matt Fleming
On Mon, 21 Dec, at 04:44:19PM, Elliott, Robert (Persistent Memory) wrote: > > The format of that line is architecture-specific and only appears > under the efi=debug kernel parameter, so I don't know how much > anyone relies on the specific format. Good question for the lists. Both kernel and n

[PATCH v12 13/18] drm: bridge: analogix/dp: try force hpd after plug in lookup failed

2015-12-23 Thread Yakir Yang
Some edp screen do not have hpd signal, so we can't just return failed when hpd plug in detect failed. This is an hardware property, so we need add a devicetree property "analogix,need-force-hpd" to indicate this sutiation. Signed-off-by: Yakir Yang Acked-by: Rob Herring Tested-by: Javier Marti

Re: [Linux-ima-devel] [PATCH] IMA: policy can be updated zero times

2015-12-23 Thread Mimi Zohar
On Wed, 2015-12-23 at 07:24 -0500, Mimi Zohar wrote: > On Wed, 2015-12-23 at 13:47 +0200, Petko Manolov wrote: > > > On 15-12-22 16:50:01, Sasha Levin wrote: > > > On 12/22/2015 04:40 PM, Petko Manolov wrote: > > > >> Thanks, Sasha. By the time ima_update_policy() is called > > > >> >ima_release_

[PATCH v12 14/18] drm: bridge: analogix/dp: move hpd detect to connector detect function

2015-12-23 Thread Yakir Yang
This change just make a little clean to make code more like drm core expect, move hdp detect code from bridge->enable(), and place them into connector->detect(). Note: Gustavo Padovan try to remove the controller and phy power on function in bind time at bellow commit: drm/exynos: do not s

[PATCH] crypto: ccp - use to_pci_dev and to_platform_device

2015-12-23 Thread Geliang Tang
Use to_pci_dev() and to_platform_device() instead of open-coding. Signed-off-by: Geliang Tang --- drivers/crypto/ccp/ccp-pci.c | 8 drivers/crypto/ccp/ccp-platform.c | 6 ++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/ccp/ccp-pci.c b/drivers/cr

[PATCH v12 15/18] drm: bridge: analogix/dp: add edid modes parse in get_modes method

2015-12-23 Thread Yakir Yang
Display Port monitor could support kinds of mode which indicate in monitor edid, not just one single display resolution which defined in panel or devivetree property display timing. Note: Gustavo Padovan try to remove the controller and phy power on function in bind time at bellow commit:

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-23 Thread Paul Kocialkowski
Le mercredi 23 décembre 2015 à 11:56 +, Mark Brown a écrit : > On Wed, Dec 23, 2015 at 11:58:37AM +0100, Paul Kocialkowski wrote: > > > + gpio = lp->pdata->enable_gpio; > > + if (!gpio_is_valid(gpio)) > > + return 0; > > + > > + /* Always set enable GPIO high. */ > > + ret =

[PATCH v12 16/18] drm: bridge: analogix/dp: expand the wait time for looking AUX CH reply flag

2015-12-23 Thread Yakir Yang
On Rockchip platform, sometimes driver would failed at reading EDID message, and it's caused by the AUX reply flag wouldn't received under the 100*10us wait time. But after expand the wait time a little, the AUX reply flag would be set, so maybe the wait time is a little critical. Besides the anal

[PATCH v12 17/18] drm: bridge: analogix/dp: add panel prepare/unprepare in suspend/resume time

2015-12-23 Thread Yakir Yang
Turn off the panel power in suspend time would help to reduce power waste. Signed-off-by: Yakir Yang --- Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes i

[PATCH] rtc: ds1305: use to_spi_device and kobj_to_dev

2015-12-23 Thread Geliang Tang
For better readability, use to_spi_device() and kobj_to_dev() instead of container_of(). Signed-off-by: Geliang Tang --- drivers/rtc/rtc-ds1305.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-ds1305.c b/drivers/rtc/rtc-ds1305.c index f39691e..8e41c46 100

[PATCH v12 18/18] drm: bridge: analogix/dp: Fix the possible dead lock in bridge disable time

2015-12-23 Thread Yakir Yang
It may caused a dead lock if we flush the hpd work in bridge disable time. The normal flow would like: IN --> DRM IOCTL 1. Acquire crtc_ww_class_mutex (DRM IOCTL) IN --> analogix_dp_bridge 2. Acquire hpd work lock (Flush hpd work) 3. HPD work already in idle, no need to

Re: [PATCH] um: Fix build error and kconfig for i386

2015-12-23 Thread Mickaël Salaün
On 22/12/2015 23:28, Richard Weinberger wrote: > Am 22.12.2015 um 22:44 schrieb Mickaël Salaün: >> Fix build error by selecting COREDUMP when X86_32 is selected: >> >> arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs': >> (.text+0x3e62): undefined reference to `dump_emit' >> arch/x8

[PATCH v2] usb: gadget: f_midi: refactor state machine

2015-12-23 Thread Felipe F. Tonello
This refactor results in a cleaner state machine code and as a result fixed a bug when packaging a MIDI-USB packet right after a non-conformant MIDI byte stream. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 205 +-- 1 file changed,

Re: [PATCHV3 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks

2015-12-23 Thread Borislav Petkov
On Tue, Dec 22, 2015 at 11:38:07AM -0800, Tony Luck wrote: > I interpreted that comment as "stop playing with %rax in the fault > handler ... just change the IP to point the the .fixup location" ... > the target of the fixup being the "landing pad". > > Right now this function has only one set of

[PATCH v2] um: Fix build error and kconfig for i386

2015-12-23 Thread Mickaël Salaün
Fix build error by selecting COREDUMP when X86_32 is selected: arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs': (.text+0x3e62): undefined reference to `dump_emit' arch/x86/um/built-in.o: In function `elf_core_write_extra_data': (.text+0x3eef): undefined reference to `dump_emit' F

[PATCH] ASoC: twl6040, fsl: use to_platform_device

2015-12-23 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- sound/soc/codecs/twl6040.c | 3 +-- sound/soc/fsl/mpc8610_hpcd.c | 3 +-- sound/soc/fsl/p1022_ds.c | 3 +-- sound/soc/fsl/p1022_rdk.c| 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git

[PATCH v4.1 03/13] tools lib traceevent: Factor out and export print_event_field[s]

2015-12-23 Thread Namhyung Kim
The print_event_field() and print_event_fields() are to print basic information of a given field or event without the print format. They'll be used by dynamic sort keys later. Cc: Steven Rostedt Signed-off-by: Namhyung Kim --- Fix typo. The branch was also updated. tools/lib/traceevent/event

[PATCH] dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag

2015-12-23 Thread Rameshswar Prasad Sahu
From: Rameshwar Prasad Sahu For interrupt controller that doesn't support irq_disable and hardware with level interrupt, an extra interrupt can be pending. This patch fixes the issue by setting IRQ_DISABLE_UNLAZY flag for the interrupt line. Reference: http://git.kernel.org/tip/e9849777d0e27cdd2

Re: [PATCHSET 00/10] perf tools: Support dynamic sort keys for tracepoints (v4)

2015-12-23 Thread Namhyung Kim
Hi Jiri, On Wed, Dec 23, 2015 at 09:46:23AM +0100, Jiri Olsa wrote: > On Wed, Dec 23, 2015 at 02:06:57AM +0900, Namhyung Kim wrote: > > Hello, > > > > This is an attempt to improve perf to deal with tracepoint events > > better. The perf tools can handle tracepoint events but perf report > > on

Re: [PATCH 1/3] ASoC: fsl_ssi: mark SACNT register volatile

2015-12-23 Thread Fabio Estevam
On Sun, Dec 20, 2015 at 6:30 PM, Maciej S. Szmigiero wrote: > SACNT register should be marked volatile since > its WR and RD bits are cleared by SSI after > completing the relevant operation. > This unbreaks AC'97 register access. > > Fixes: 05cf237972fe ("ASoC: fsl_ssi: Add driver suspend and res

Re: [PATCH 2/3] ASoC: fsl_ssi: mark some registers precious

2015-12-23 Thread Fabio Estevam
On Sun, Dec 20, 2015 at 6:31 PM, Maciej S. Szmigiero wrote: > Mark some registers precious since their > reads have side effects (like clearing flags). > > Signed-off-by: Maciej S. Szmigiero Reviewed-by: Fabio Estevam -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2015-12-23 Thread Fabio Estevam
On Sun, Dec 20, 2015 at 6:33 PM, Maciej S. Szmigiero wrote: > There is no guarantee that on fsl_ssi module load > SSI registers will have their power-on-reset values. > > In fact, if the driver is reloaded the values in > registers will be whatever they were set to previously. > > This fixes hard

[PATCH v2] um: Fix pointer cast

2015-12-23 Thread Mickaël Salaün
Fix a pointer cast typo introduced in v4.4-rc5 especially visible for the i386 subarchitecture where it results in a kernel crash. Fixes: 8090bfd2bb9a ("um: Fix fpstate handling") Signed-off-by: Mickaël Salaün Cc: Jeff Dike Cc: Richard Weinberger Cc: Linus Torvalds Cc: Al Viro --- arch/x86/u

[PATCH 4/4] HID: usbhid: use to_usb_device

2015-12-23 Thread Geliang Tang
Use to_usb_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/hid/usbhid/usbhid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/usbhid/usbhid.h b/drivers/hid/usbhid/usbhid.h index 807922b..fa47d66 100644 --- a/drivers/hid/usbhid/usbhid.h

[PATCH 2/4] USB: core, wusbcore: use bus_to_hcd

2015-12-23 Thread Geliang Tang
Use bus_to_hcd() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/usb/core/hcd.c| 6 +++--- drivers/usb/core/hub.c| 2 +- drivers/usb/core/usb.c| 2 +- drivers/usb/wusbcore/wusbhc.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/d

<    1   2   3   4   5   6   >