[linux-yocto] [PATCH 3/4] mmc: block: Always switch back to main area after RPMB access

2016-06-16 Thread Lim Key Seong
From: Adrian Hunter In preparation to support the use of the RPMB partition with transfer modes that might require re-tuning, always switch back to the main area after RPMB access. RPMB is accessible only via IOCTL so only those paths are affected. Signed-off-by: Adrian Hunter Signed-off-by: U

[linux-yocto] [PATCH 4/4] mmc: block: Pause re-tuning while switched to the RPMB partition

2016-06-16 Thread Lim Key Seong
From: Adrian Hunter Re-tuning is not possible when switched to the RPMB partition. However re-tuning should not be needed if re-tuning is done immediately before switching, a small set of operations is done, and then we immediately switch back to the main partition. A previous patch ensured tha

[linux-yocto] [PATCH 2/4] mmc: core: Add a facility to "pause" re-tuning

2016-06-16 Thread Lim Key Seong
From: Adrian Hunter Re-tuning is not possible when switched to the RPMB partition. However re-tuning should not be needed if re-tuning is done immediately before switching, a small set of operations is done, and then we immediately switch back to the main partition. To ensure that re-tuning can

[linux-yocto] [PATCH 1/4] mmc: block: Add new ioctl to send multi commands

2016-06-16 Thread Lim Key Seong
From: Jon Hunter Certain eMMC devices allow vendor specific device information to be read via a sequence of vendor commands. These vendor commands must be issued in sequence and an atomic fashion. One way to support this would be to add an ioctl function for sending a sequence of commands to the

[linux-yocto] [PATCH 0/4] mmc: block: Pause re-tuning while switched to the RPMB partition

2016-06-16 Thread Lim Key Seong
Hi Bruce, These patches are backport to resolve MMC re-tune issue on RPMB partition. Three patches upstream to mainline by Adrian Hunter, are required to resolve RPMB re-tune issue completely. The patch upstream to mainline by Jon Hunter is the dependency patch, so that the RPMB re-tune patches

Re: [linux-yocto] [PULL REQUEST] CPU idle/power patches for linux-yocto-4.1

2016-06-16 Thread Yong, Jonathan
On 06/17/2016 12:03, Yong, Jonathan wrote: git URL: https://github.com/jyong2/yocto-backports.git branch: for-linux-yocto-4.1-power 10 patches regarding CPU idle/scheduler, tested with Apollo Lake. All patches from Linus's tree, for linux-yocto-4.1 standard/base. for-linux-yocto-4.1-power is ba

[linux-yocto] [PULL REQUEST] Support async probe for linux-yocto-4.1

2016-06-16 Thread Yong, Jonathan
git URL: https://github.com/jyong2/yocto-backports.git branch: for-linux-yocto-4.1-power 10 patches regarding CPU idle/scheduler, tested with Apollo Lake. All patches from Linus's tree, for linux-yocto-4.1 standard/base. for-linux-yocto-4.1-power is based on the latest standard/base as of writ

[linux-yocto] [PULL REQUEST] Support async probe for linux-yocto-4.1

2016-06-16 Thread Yong, Jonathan
git URL: https://github.com/jyong2/yocto-backports.git branch: for-linux-yocto-4.1-core This series allows drivers to be loaded asynchronously. All patches from Linus's tree, for linux-yocto-4.1 standard/base. for-linux-yocto-4.1-core is based on the latest standard/base as of writing. Dmitr

[linux-yocto] [PULL REQUEST] Support async probe for linux-yocto-4.1

2016-06-16 Thread Yong, Jonathan
git URL: https://github.com/jyong2/yocto-backports.git branch: for-linux-yocto-4.1-core This series allows drivers to be loaded asynchronously. All patches from Linus's tree, for linux-yocto-4.1 standard/base. for-linux-yocto-4.1-core is based on the latest standard/base as of writing. Dmitr

Re: [linux-yocto] [PULL REQUEST] Watchdog parenting fix for linux-yocto-4.1

2016-06-16 Thread Yong, Jonathan
On 06/16/2016 20:52, Bruce Ashfield wrote: On 2016-06-15 9:47 PM, Yong, Jonathan wrote: On 06/15/2016 11:53, Bruce Ashfield wrote: These 2 branches should also go into linux-yocto-4.1 standard/base: for-linux-yocto-4.1-core (driver core backports from Linus's) for-linux-yocto-4.1-power (CPU i

Re: [linux-yocto] [PATCH 00/14] Backport SPI from mainline to linux-yocto-4.1

2016-06-16 Thread Bruce Ashfield
On 2016-06-16 04:25 AM, Weifeng Voon wrote: This changeset from mainline are for BXT/APL. The commits are for linux-yocto4.1 standard/base branch. Staged. Once my sanity tests have passed, I'll send SRCREV updates. Bruce Alexandre Belloni (1): spi: atmel: remove warning when !CONFIG_PM_S

Re: [linux-yocto] [PATCH 0/2] Backport MFD from mainline to linux-yocto-4.1

2016-06-16 Thread Bruce Ashfield
On 2016-06-16 03:56 AM, Weifeng Voon wrote: This changeset from mainline are for BXT/APL. The commits are for linux-yocto4.1 standard/base branch. They look fine to me, and are now staged. Bruce Heikki Krogerus (1): mfd: intel-lpss: Save register context on suspend Mika Westerberg (1):

Re: [linux-yocto] [PATCH 0/2] Improve perf reporting on x86 for linux-yocto-4.1

2016-06-16 Thread Bruce Ashfield
On 2016-06-16 03:40 AM, jonathan.y...@intel.com wrote: From: "Yong, Jonathan" These 2 patches improve the perf tools reporting based on captured TSC times. These should apply to linux-yocto-4.1 standard/base. They do apply cleanly and are now staged. Bruce Adrian Hunter (2): perf/x86:

Re: [linux-yocto] [PATCH 0/7] ALSA: hda preparation to Migrate to cAVS1.5

2016-06-16 Thread Bruce Ashfield
On 2016-06-15 04:54 AM, seng.kai@intel.com wrote: From: "SengKai,Tan" The patches are to backport Intel Broxton / Apollo Lake patches that are available in the mainline Linux kernel. These patch are the move in as for the preparation to Migrate to cAVS1.5 code base for Intel Broxton/Apol

Re: [linux-yocto] [PULL REQUEST] Watchdog parenting fix for linux-yocto-4.1

2016-06-16 Thread Bruce Ashfield
On 2016-06-15 9:47 PM, Yong, Jonathan wrote: On 06/15/2016 11:53, Bruce Ashfield wrote: These 2 branches should also go into linux-yocto-4.1 standard/base: for-linux-yocto-4.1-core (driver core backports from Linus's) for-linux-yocto-4.1-power (CPU idle/powercap backports from Linus's) Can y

[linux-yocto] [PATCH 14/14] spi: pxa2xx: Fix too early chipselect deassert

2016-06-16 Thread Weifeng Voon
From: Jarkko Nikula There is a chance that chipselect is deasserted too early while the last clock cycle is still running. Protocol analyzers will see this as a failed last byte. This is more likely to occur with slow bitrates, for instance at 25 kbps. Reason for this is when using SPI mode 0 th

[linux-yocto] [PATCH 12/14] spi: pxa2xx: Print actual DMA/PIO transfer mode in debug messages

2016-06-16 Thread Weifeng Voon
From: Jarkko Nikula Transfer debug messages don't actually show is the transfer really using DMA. Driver may fall back to PIO in case transfer size is not within the certain limits or fails to map DMA buffers but debug messages don't reveal that. Move these debug messages further in pump_transfe

[linux-yocto] [PATCH 11/14] spi: atmel: remove warning when !CONFIG_PM_SLEEP

2016-06-16 Thread Weifeng Voon
From: Alexandre Belloni When CONFIG_PM is defined but not CONFIG_PM_SLEEP (this happens when CONFIG_SUSPEND is not defined), there is the following warning: drivers/spi/spi-atmel.c:1723:12: warning: ‘atmel_spi_suspend’ defined but not used [-Wunused-function] drivers/spi/spi-atmel.c:1741:12: wa

[linux-yocto] [PATCH 13/14] spi: pxa2xx: Update comment in int_transfer_complete()

2016-06-16 Thread Weifeng Voon
From: Jarkko Nikula The register writes here actually don't stop the SSP but clean and disable interrupts and set the receive FIFO inactivity timeout to zero. Signed-off-by: Jarkko Nikula Signed-off-by: Mark Brown (cherry picked from commit 07550df04712c88717d2ab6578bb36bbd4305e35) Signed-off-

[linux-yocto] [PATCH 08/14] spi: meson: Fix module autoload for OF platform driver

2016-06-16 Thread Weifeng Voon
From: Luis de Bethencourt This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt Signed-off-by: Mark Brown (cherry picked from commit c9e97b3cb2b80deb94c092a2022a6d385b838d84) Signed-

[linux-yocto] [PATCH 06/14] spi: bcm2835: fix overflow in calculation of transfer time

2016-06-16 Thread Weifeng Voon
From: Martin Sperl This resulted in the use of polling mode when other approaches (dma or interrupts) would have been more appropriate. Happened for transfers longer than 477 bytes. Reported-by: Noralf Tronnes Signed-off-by: Martin Sperl Signed-off-by: Mark Brown (cherry picked from commit 0

[linux-yocto] [PATCH 10/14] spi: fix kernel-doc warnings in spi.h

2016-06-16 Thread Weifeng Voon
From: Geliang Tang Fix the following 'make htmldocs' warnings: .//include/linux/spi/spi.h:71: warning: No description found for parameter 'lock' .//include/linux/spi/spi.h:71: warning: Excess struct/union/enum/typedef member 'clock' description in 'spi_statistics' Signed-off-by: Geliang T

[linux-yocto] [PATCH 03/14] spi: bcm2835: enable dma modes for transfers meeting certain conditions

2016-06-16 Thread Weifeng Voon
From: Martin Sperl Conditions per spi_transfer are: * transfer.len >= 96 bytes (to avoid mapping overhead costs) * transfer.len < 65536 bytes (limitaion by spi-hw block - could get extended) * an individual scatter/gather transfer length must be a multiple of 4 for anything but the last transfe

[linux-yocto] [PATCH 09/14] spi: expose spi_master and spi_device statistics via sysfs

2016-06-16 Thread Weifeng Voon
From: Martin Sperl per spi-master statistics accessible as: /sys/class/spi_master/spi*/statistics/* per spi-device statistics accessible via: /sys/class/spi_master/spi*/spi*.*/statistics/* The following statistics are exposed as separate "files" inside these directories: * messages

[linux-yocto] [PATCH 07/14] spi: bcm2835: BUG: fix wrong use of PAGE_MASK

2016-06-16 Thread Weifeng Voon
From: Martin Sperl There is a bug in the alignment checking of transfers, that results in DMA not being used for un-aligned transfers that do not cross page-boundries, which is valid. This is due to a missconception of the meaning PAGE_MASK when implementing that check originally - (PAGE_SIZE -

[linux-yocto] [PATCH 04/14] spi: bcm2835: fix kbuild compile warnings/errors and a typo

2016-06-16 Thread Weifeng Voon
From: Martin Sperl fixes several warnings/error emmitted by the kbuild system: * warn: cast from pointer to integer of different size using size_t instead of u32 * error: 'SZ_4K' undeclared moved to PAGE_SIZE and PAGE_MASK instead Review showed also a typo in the same code where tx_buff was

[linux-yocto] [PATCH 01/14] spi: spi-pxa2xx: Remove unused legacy null dma buffer and allocation for it

2016-06-16 Thread Weifeng Voon
From: Jarkko Nikula Remove null_dma_buf variable and extra allocation for it. It is not needed since commit 6356437e65c2 ("spi: spi-pxa2xx: remove legacy PXA DMA bits"). Signed-off-by: Jarkko Nikula Signed-off-by: Mark Brown (cherry picked from commit 757fe8d514a9bab55156dfb2c4a03e56ba96a028)

[linux-yocto] [PATCH 00/14] Backport SPI from mainline to linux-yocto-4.1

2016-06-16 Thread Weifeng Voon
This changeset from mainline are for BXT/APL. The commits are for linux-yocto4.1 standard/base branch. Alexandre Belloni (1): spi: atmel: remove warning when !CONFIG_PM_SLEEP Geliang Tang (1): spi: fix kernel-doc warnings in spi.h Jarkko Nikula (4): spi: spi-pxa2xx: Remove unused legacy nu

[linux-yocto] [PATCH 02/14] spi: bcm2835: fallback to interrupt for polling timeouts exceeding 2 jiffies

2016-06-16 Thread Weifeng Voon
From: Martin Sperl The polling mode of the driver is designed for transfers that run less than 30us - it will only execute under those circumstances. So it should run comfortably without getting interrupted by the scheduler. But there are situations where the raspberry pi is so overloaded that i

[linux-yocto] [PATCH 05/14] spi: bcm2835: bcm2835_dma_release() can be static

2016-06-16 Thread Weifeng Voon
From: kbuild test robot Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown (cherry picked from commit 29ad1a7a9e08f1d2b6795c5278a0c0fd23679ded) Signed-off-by: Weifeng Voon --- drivers/spi/spi-bcm2835.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-

[linux-yocto] [PATCH 2/2] mfd: intel-lpss: Save register context on suspend

2016-06-16 Thread Weifeng Voon
From: Heikki Krogerus All configurations are lost and the registers will have default values when the hardware is suspended and resumed, so saving the private register space context on suspend, and restoring it on resume. Fixes: 4b45efe85263 (mfd: Add support for Intel Sunrisepoint LPSS devices)

[linux-yocto] [PATCH 1/2] mfd: intel-lpss: Pass I2C configuration via properties on BXT

2016-06-16 Thread Weifeng Voon
From: Mika Westerberg I2C host controller need to be configured properly in order to meet I2C timings specified in the I2C protocol specification. Some Intel Broxton based machines do not have this information in the ACPI namespace (or the boot firmware does not support ACPI at all) so we use bui

[linux-yocto] [PATCH 0/2] Backport MFD from mainline to linux-yocto-4.1

2016-06-16 Thread Weifeng Voon
This changeset from mainline are for BXT/APL. The commits are for linux-yocto4.1 standard/base branch. Heikki Krogerus (1): mfd: intel-lpss: Save register context on suspend Mika Westerberg (1): mfd: intel-lpss: Pass I2C configuration via properties on BXT drivers/mfd/intel-lpss-acpi.c | 12

[linux-yocto] [PATCH 1/2] perf/x86: Improve accuracy of perf/sched clock

2016-06-16 Thread jonathan . yong
From: Adrian Hunter When TSC is stable perf/sched clock is based on it. However the conversion from cycles to nanoseconds is not as accurate as it could be. Because CYC2NS_SCALE_FACTOR is 10, the accuracy is +/- 1/2048 The change is to calculate the maximum shift that results in a multiplier th

[linux-yocto] [PATCH 2/2] perf/x86: Fix time_shift in perf_event_mmap_page

2016-06-16 Thread jonathan . yong
From: Adrian Hunter Commit: b20112edeadf ("perf/x86: Improve accuracy of perf/sched clock") allowed the time_shift value in perf_event_mmap_page to be as much as 32. Unfortunately the documented algorithms for using time_shift have it shifting an integer, whereas to work correctly with the v

[linux-yocto] [PATCH 0/2] Improve perf reporting on x86 for linux-yocto-4.1

2016-06-16 Thread jonathan . yong
From: "Yong, Jonathan" These 2 patches improve the perf tools reporting based on captured TSC times. These should apply to linux-yocto-4.1 standard/base. Adrian Hunter (2): perf/x86: Improve accuracy of perf/sched clock perf/x86: Fix time_shift in perf_event_mmap_page arch/x86/kernel/tsc.