Re: [alsa-devel] [PATCH V4 0/2] refine esai for tdm support

2014-08-07 Thread Nicolin Chen
On Fri, Aug 08, 2014 at 02:47:20PM +0800, Shengjiu Wang wrote: > These patchs is to refine esai for tdm support. > > Changes for V4 > - update the comments for patch 2 > > Changes for V3 > - update the comments for patch 2 > > Changes for V2 > - update the comments according the reviewer's sugge

[PATCH V4 2/2] Revert "ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support."

2014-08-07 Thread Shengjiu Wang
This reverts commit a603c8ee526f5ea9ad9b40710308766299ad8a69. fsl_asoc_xlate_tdm_slot_mask() is different with snd_soc_xlate_tdm_slot_mask(). fsl_asoc_xlate_tdm_slot_mask() will set the enabled bit to 0, disabled bit to 1. snd_soc_xlate_tdm_slot_mask() will set the enabled bit to 1, disabled bit t

[PATCH V4 0/2] refine esai for tdm support

2014-08-07 Thread Shengjiu Wang
These patchs is to refine esai for tdm support. Changes for V4 - update the comments for patch 2 Changes for V3 - update the comments for patch 2 Changes for V2 - update the comments according the reviewer's suggestion - add init value for slots and change pin to pins. Shengjiu Wang (2): ASo

T1040QDS warm reboot

2014-08-07 Thread Vineeth
Was wondering how "reboot" works from linux kernel for t1040qds. When checked, @arch/powerpc/sysdev/fsl_soc.c __setup_rstcr, an ioremap is done for the offset 0xb0 and writes 0x2 to that to reboot the machine. and it works properly. when checked the reference manual for T1040QDS, it was given tha

[PATCH V3 0/2] refine esai for tdm support

2014-08-07 Thread Shengjiu Wang
These patchs is to refine esai for tdm support. Changes for V3 - update the comments for patch 2 Changes for V2 - update the comments according the reviewer's suggestion - add init value for slots and change pin to pins. Shengjiu Wang (2): ASoC: fsl_esai: refine esai for TDM support Revert

[PATCH V3 1/2] ASoC: fsl_esai: refine esai for TDM support

2014-08-07 Thread Shengjiu Wang
Original driver didn't store the number of slots, just fix the slot number to 2, use this default number to calculate bclk and pins for TX/RX. In this patch, add one parameter for slots, and update the calculation of bclk and pins of TX/RX. Then driver will be compatible with slots > 2 in TDM mode.

[PATCH V3 2/2] Revert "ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support."

2014-08-07 Thread Shengjiu Wang
This reverts commit a603c8ee526f5ea9ad9b40710308766299ad8a69. fsl_asoc_xlate_tdm_slot_mask() will invert the mask, for esai the enabled bit is changed to be disabled, So the esai will work abnormally. when there is no definition of .xlate_tdm_slot_mask, there is default function snd_soc_xlate_tdm_

Re: [PATCH v4 2/5] powerpc/eeh: Add warning message in eeh_dev_open()

2014-08-07 Thread Alex Williamson
On Fri, 2014-08-08 at 13:50 +1000, Benjamin Herrenschmidt wrote: > On Thu, 2014-08-07 at 12:47 +1000, Gavin Shan wrote: > > The patch adds one warning message in eeh_dev_open() in case the > > PCI device can't be marked as passed through. > > > > Suggested-by: Alexey Kardashevskiy > > Signed-off-

Re: [PATCH v4 2/5] powerpc/eeh: Add warning message in eeh_dev_open()

2014-08-07 Thread Benjamin Herrenschmidt
On Thu, 2014-08-07 at 12:47 +1000, Gavin Shan wrote: > The patch adds one warning message in eeh_dev_open() in case the > PCI device can't be marked as passed through. > > Suggested-by: Alexey Kardashevskiy > Signed-off-by: Gavin Shan > --- Acked-by: Benjamin Herrenschmidt Alex, are you takin

Re: [PATCH v4 1/5] powerpc/eeh: Export eeh_iommu_group_to_pe()

2014-08-07 Thread Benjamin Herrenschmidt
On Thu, 2014-08-07 at 12:47 +1000, Gavin Shan wrote: > The function is used by VFIO driver, which might be built as a > dynamic module. So it should be exported. > > Signed-off-by: Gavin Shan Acked-by: Benjamin Herrenschmidt Alex, are you taking this or should I ? > --- > arch/powerpc/kernel

[PATCH] powerpc: Move htab_remove_mapping function prototype into header file

2014-08-07 Thread Anton Blanchard
A recent patch added a function prototype for htab_remove_mapping in c code. Fix it. Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/include/asm/mmu-hash64.h b/arch/powerpc/include/asm/mmu-hash64.h index d765144..92bc3a6 100644 --- a/arch/powerpc/include/asm/mmu-hash64.h +++ b/arch

[PATCH] powerpc: Remove ppc_md.remove_memory

2014-08-07 Thread Anton Blanchard
We have an extra level of indirection on memory hot remove which is not matched on memory hot add. Memory hotplug is book3s only, so there is no need for it. This also enables means remove_memory() (ie memory hot unplug) works on powernv. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc

Re: [PATCH 3/3] net: ucc_geth: Don't use the MAC as PHY without a fixed link

2014-08-07 Thread David Miller
From: Uwe Kleine-König Date: Thu, 7 Aug 2014 23:48:26 +0200 > This matches what the other drivers using fixed-link support do and > restores the behaviour before commit 87009814cdbb ("ucc_geth: use the > new fixed PHY helpers") for the affected device trees (i.e. no > phy-handle and no fixed-lin

Re: [PATCH 2/3] net: ucc_geth: make probe consistently acquire a reference to the phy node

2014-08-07 Thread David Miller
From: Uwe Kleine-König Date: Thu, 7 Aug 2014 23:48:25 +0200 > When the driver attaches to a device that has a phy handle the probe > routine returns with a reference to that node. This reference is > correctly dropped in the error path and the remove function. In the > fixed phy case however no

Re: [PATCH 1/3] net: ucc_geth: drop acquired references in probe error path and remove

2014-08-07 Thread David Miller
From: Uwe Kleine-König Date: Thu, 7 Aug 2014 23:48:24 +0200 > The ucc_geth_probe function assigns to ug_info->tbi_node and > ug_info->phy_node a value returned by of_parse_phandle which returns a > new reference. Put this reference again in the error path of > ucc_geth_probe and when removing th

Re: [PATCH] net: fs_enet: fix reference counting for phy_node

2014-08-07 Thread David Miller
From: Uwe Kleine-König Date: Thu, 7 Aug 2014 23:06:00 +0200 > Make sure that fs_enet_probe is left with a reference to the phy node. > In the presence of a phy handle this is already the case as > of_parse_phandle returns a reference. In the fixed phy case a call to > of_node_get is necessary. O

[PATCH 3/3] net: ucc_geth: Don't use the MAC as PHY without a fixed link

2014-08-07 Thread Uwe Kleine-König
This matches what the other drivers using fixed-link support do and restores the behaviour before commit 87009814cdbb ("ucc_geth: use the new fixed PHY helpers") for the affected device trees (i.e. no phy-handle and no fixed-link). Fixes: 87009814cdbb ("ucc_geth: use the new fixed PHY helpers") Si

[PATCH 2/3] net: ucc_geth: make probe consistently acquire a reference to the phy node

2014-08-07 Thread Uwe Kleine-König
When the driver attaches to a device that has a phy handle the probe routine returns with a reference to that node. This reference is correctly dropped in the error path and the remove function. In the fixed phy case however no reference is acquired and so the error path might drop a reference the

[PATCH 1/3] net: ucc_geth: drop acquired references in probe error path and remove

2014-08-07 Thread Uwe Kleine-König
The ucc_geth_probe function assigns to ug_info->tbi_node and ug_info->phy_node a value returned by of_parse_phandle which returns a new reference. Put this reference again in the error path of ucc_geth_probe and when removing the device. Signed-off-by: Uwe Kleine-König --- No Fixes: footer here.

Re: [PATCH v2 00/12] defconfigs: add MTD_SPI_NOR (new subsystem dependency for M25P80)

2014-08-07 Thread Geert Uytterhoeven
Hi Brian, On Thu, May 1, 2014 at 8:26 AM, Brian Norris wrote: > v1 --> v2: split ARM defconfig changes into their sub-architectures. No change >in the overall diff. > > Hi all, > > We are introducing a new SPI-NOR subsystem/framework for MTD, to support > various types of SPI-NOR flas

[PATCH] net: fs_enet: fix reference counting for phy_node

2014-08-07 Thread Uwe Kleine-König
Make sure that fs_enet_probe is left with a reference to the phy node. In the presence of a phy handle this is already the case as of_parse_phandle returns a reference. In the fixed phy case a call to of_node_get is necessary. Otherwise the error path and remove function drop a reference the driver

[PATCH] deb-pkg: support ppc64 and ppc64el Debian archs

2014-08-07 Thread Thadeu Lima de Souza Cascardo
Signed-off-by: Thadeu Lima de Souza Cascardo --- scripts/package/builddeb |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 35d5a58..c26c28b 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -3

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Timur Tabi
On 08/07/2014 03:11 PM, Scott Wood wrote: > >Do you have a better suggestion? > >Leave it where it is? We need it on ARM as well. In that case, drivers/soc is the least-bad option. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https:

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Scott Wood
On Thu, 2014-08-07 at 15:09 -0500, Timur Tabi wrote: > On 08/07/2014 03:08 PM, Scott Wood wrote: > >> >Scott suggests drivers/soc. I'm not crazy about that, but I don't > >> >maintain that code any more. > > > Do you have a better suggestion? > > Leave it where it is? We need it on ARM as well.

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Timur Tabi
On 08/07/2014 03:08 PM, Scott Wood wrote: >Scott suggests drivers/soc. I'm not crazy about that, but I don't >maintain that code any more. Do you have a better suggestion? Leave it where it is? ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozla

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Scott Wood
On Thu, 2014-08-07 at 13:57 -0500, Timur Tabi wrote: > On Wed, Aug 6, 2014 at 3:53 AM, qiang.z...@freescale.com > wrote: > > > > Actually qe is a kind of IP block, so in my opinion, it is proper to put it > > under driver/(just in my opinion). > > The QE library is not a driver, however. It doe

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Timur Tabi
On Wed, Aug 6, 2014 at 3:53 AM, qiang.z...@freescale.com wrote: > > Actually qe is a kind of IP block, so in my opinion, it is proper to put it > under driver/(just in my opinion). The QE library is not a driver, however. It doesn't register as a driver with the kernel. Scott suggests drivers/

Re: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread Scott Wood
On Thu, 2014-08-07 at 04:15 -0500, Zhao Qiang-B45475 wrote: > On Thu, Aug 7, 2014 at 4:16 AM, Wood Scott wrote: > > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Thursday, August 07, 2014 4:16 AM > > To: Zhao Qiang-B45475 > > Cc: linuxppc-dev@lists.ozlabs.org; Xie Xiaobo-R6

Re: [alsa-devel] [PATCH V2 2/2] Revert "ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support."

2014-08-07 Thread Nicolin Chen
Hi Shengjiu, On Thu, Aug 07, 2014 at 05:33:25PM +0800, Shengjiu Wang wrote: > This reverts commit a603c8ee526f5ea9ad9b40710308766299ad8a69. > > fsl_asoc_xlate_tdm_slot_mask() will invert the mask, which isn't fit for > esai. The default function snd_soc_xlate_tdm_slot_mask() is ok for esai. Y

Re: [PATCH] ASoC: fsl_sai: Add asynchronous mode support

2014-08-07 Thread Mark Brown
On Tue, Aug 05, 2014 at 03:32:05PM +0800, Nicolin Chen wrote: > From: Nicolin Chen > > SAI supports these operation modes: > 1) asynchronous mode >Both Tx and Rx are set to be asynchronous. Applied, thanks. signature.asc Description: Digital signature __

Re: [PATCH] ASoC: fsl_sai: Add asynchronous mode support

2014-08-07 Thread Mark Brown
On Thu, Aug 07, 2014 at 05:44:05PM +0800, Nicolin Chen wrote: > On Thu, Aug 07, 2014 at 10:45:27AM +0100, Mark Brown wrote: > > Might be worth printing an error here. > Hmm...Do I need to send a v2? Send an incremental patch. signature.asc Description: Digital signature ___

Re: [PATCH] ASoC: fsl_sai: Add asynchronous mode support

2014-08-07 Thread Nicolin Chen
On Thu, Aug 07, 2014 at 10:45:27AM +0100, Mark Brown wrote: > On Tue, Aug 05, 2014 at 03:32:05PM +0800, Nicolin Chen wrote: > > From: Nicolin Chen > > > > SAI supports these operation modes: > > 1) asynchronous mode > >Both Tx and Rx are set to be asynchronous. > > 2) synchronous mode (Rx syn

Re: [PATCH] ASoC: fsl_sai: Add asynchronous mode support

2014-08-07 Thread Mark Brown
On Tue, Aug 05, 2014 at 03:32:05PM +0800, Nicolin Chen wrote: > From: Nicolin Chen > > SAI supports these operation modes: > 1) asynchronous mode >Both Tx and Rx are set to be asynchronous. > 2) synchronous mode (Rx sync with Tx) >Tx is set to be asynchronous, Rx is set to be synchronous.

Re: [PATCH] ASoC: fsl_sai: Initialize with software reset

2014-08-07 Thread Mark Brown
On Tue, Aug 05, 2014 at 05:20:21PM +0800, Nicolin Chen wrote: > This patch adds software reset code in dai_probe() so as to make a true init > by clearing SAI's internal logic, including the bit clock generation, status > flags, and FIFO pointers. Applied, thanks. signature.asc Description: Digi

[PATCH V2 2/2] Revert "ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support."

2014-08-07 Thread Shengjiu Wang
This reverts commit a603c8ee526f5ea9ad9b40710308766299ad8a69. fsl_asoc_xlate_tdm_slot_mask() will invert the mask, which isn't fit for esai. The default function snd_soc_xlate_tdm_slot_mask() is ok for esai. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/Kconfig|1 - sound/soc/fsl/fsl_e

[PATCH V2 1/2] ASoC: fsl_esai: refine esai for TDM support

2014-08-07 Thread Shengjiu Wang
Original driver didn't store the number of slots, just fix the slot number to 2, use this default number to calculate bclk and pins for TX/RX. In this patch, add one parameter for slots, and update the calculation of bclk and pins of TX/RX. Then driver will be compatible with slots > 2 in TDM mode.

[PATCH V2 0/2] refine esai for tdm support

2014-08-07 Thread Shengjiu Wang
These patchs is to refine esai for tdm support. Changes for V2 - update the comments according the reviewer's suggestion - add init value for slots and change pin to pins. Shengjiu Wang (2): ASoC: fsl_esai: refine esai for TDM support Revert "ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support

RE: qe: move qe from arch/powerpc to drivers

2014-08-07 Thread qiang.z...@freescale.com
On Thu, Aug 7, 2014 at 4:16 AM, Wood Scott wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, August 07, 2014 4:16 AM > To: Zhao Qiang-B45475 > Cc: linuxppc-dev@lists.ozlabs.org; Xie Xiaobo-R63061 > Subject: Re: qe: move qe from arch/powerpc to drivers > > On Wed, 20

Re: mm: BUG in unmap_page_range

2014-08-07 Thread Aneesh Kumar K.V
Mel Gorman writes: > On Wed, Aug 06, 2014 at 12:44:45PM +0530, Aneesh Kumar K.V wrote: >> > -#define pmd_mknonnuma pmd_mknonnuma >> > -static inline pmd_t pmd_mknonnuma(pmd_t pmd) >> > +/* >> > + * Generic NUMA pte helpers expect pteval_t and pmdval_t types to exist >> > + * which was inherited f

[PATCH] powerpc/mm: Unindent htab_dt_scan_page_sizes()

2014-08-07 Thread Michael Ellerman
We can unindent the bulk of htab_dt_scan_page_sizes() by returning early if the property is not found. That is nice in and of itself, but also has the advantage of making it clear that we always return success once we have found the ibm,segment-page-sizes property. Signed-off-by: Michael Ellerman