Re: [PATCH] ARM: dts: sun6i-a31: Add pins definitions for more UARTs

2015-10-25 Thread Chen-Yu Tsai
On Mon, Oct 26, 2015 at 1:05 PM, Luis Araneda wrote: > Hi, > > You're right on that these pins aren't currently in use by any .dts > file, but the manufacturer, Sinovoip, > should be submitting a .dts file for the board soon, and if they > don't, I'm sure the Linux-Sunxi community will do. > You c

[PATCH v3 28/35] nfc: netlink: Add mode parameter to deactivate_target functions

2015-10-25 Thread Christophe Ricard
In order to manage in a better way the nci poll mode state machine, add mode parameter to deactivate_target functions. This way we can manage different target state. mode parameter make sense only in nci core. Signed-off-by: Christophe Ricard --- include/net/nfc/nfc.h | 2 +- net/nfc/core.c

[PATCH v3 30/35] nfc: st21nfca: Add few code style fixes

2015-10-25 Thread Christophe Ricard
Add a minor code style fixes Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.c | 2 -- drivers/nfc/st21nfca/i2c.c | 1 + drivers/nfc/st21nfca/se.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/st21nfca/core.c b/dri

[PATCH v3 32/35] nfc: st21nfca: Add error messages when an unexpected HCI event occurs

2015-10-25 Thread Christophe Ricard
Potentially an unexpected HCI event may occur because of a firmware bug. It could be transparent for the user but at least log this. Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.c | 2 ++ drivers/nfc/st21nfca/dep.c | 1 + drivers/nfc/st21nfca/se.c | 4 3 files changed,

[PATCH v3 34/35] nfc: st-nci: remove duplicated skb dump

2015-10-25 Thread Christophe Ricard
Remove SPI_DUMP_SKB and I2C_DUMP_SKB as skb is already dumped in ndlc layer. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/i2c.c | 11 --- drivers/nfc/st-nci/spi.c | 11 --- 2 files changed, 22 deletions(-) diff --git a/drivers/nfc/st-nci/i2c

[PATCH v3 31/35] nfc: st21nfca: Add support for proprietary commands for factory tests

2015-10-25 Thread Christophe Ricard
Add support for proprietary commands useful mainly for factory testings. Here is a list: - FACTORY_MODE: Allow to set the driver into a mode where no secure element are activated. It does not consider any NFC_ATTR_VENDOR_DATA. - HCI_CLEAR_ALL_PIPES: Allow to execute a HCI clear all pipes command. I

[PATCH v3 27/35] nfc: st21nfca: Fix host_list verification after secure element activation

2015-10-25 Thread Christophe Ricard
A secure element can be activated in different order. The host_list is updated keeping a fixed order: . Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/se.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/nfc/st21nfca/se.c b

[PATCH v3 26/35] nfc: st-nci: Fix host_list verification after secure element activation

2015-10-25 Thread Christophe Ricard
A secure element can be activated in different order. The host_list is updated keeping a fixed order: . Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/nfc/st-nci/se.c b/dri

[PATCH v3 29/35] nfc: st-nci: Add few code style fixes

2015-10-25 Thread Christophe Ricard
Add some few code style fixes. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/i2c.c | 2 +- drivers/nfc/st-nci/se.c | 2 +- net/nfc/nci/hci.c| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/

[PATCH v3 33/35] nfc: st-nci: Make sure irq is not already active when powering the device

2015-10-25 Thread Christophe Ricard
Upon some conditions (timing, CLF errors, platform errors...), the irq might be already active when powering the device. Add irq_active variable as a guard to avoid kernel warning message Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/i2c.c | 8 +++- drivers/nfc/st-nci/spi.c | 8 ++

[PATCH v3 35/35] nfc: st-nci: Replace st21nfcb by st_nci in makefile

2015-10-25 Thread Christophe Ricard
Replace 1 missing st21nfcb by st_nci Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st-nci/Makefile b/drivers/nfc/st-nci/Makefile index ea40ace..439b2fa 100644 --- a/drivers/nfc/st-nci/Makefile +++

[PATCH v3 14/35] nfc: st21nfca: Open NFC_HCI_LINK_MGMT_PIPE

2015-10-25 Thread Christophe Ricard
NFC_HCI_LINK_MGMT_PIPE was never open in nfc_hci_load_session. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/nfc/st21nfca/core.c b/drivers/nfc/st21nfca/c

[PATCH v3 20/35] nfc: st21nfca: Change st21nfca_gates offset when looking for a pipe in the table

2015-10-25 Thread Christophe Ricard
It is useless to start from index 0 when looking for a gate because only dynamic pipes are retrieved with ST21NFCA_DM_GETINFO(ST21NFCA_DM_GETINFO_PIPE_LIST). The first dynamic pipe is present at index 3. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.

[PATCH v3 23/35] nfc: netlink: Add missing NFC_ATTR comments

2015-10-25 Thread Christophe Ricard
NFC_CMD_ACTIVATE_TARGET and NFC_ATTR_SE_PARAMS comments are missing. Signed-off-by: Christophe Ricard --- include/uapi/linux/nfc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/nfc.h b/include/uapi/linux/nfc.h index dd3f753..399f39f 100644 --- a/include/uapi/linux/nfc.

[PATCH v3 17/35] nfc: st-nci: initialize gate_count in st_nci_hci_network_init

2015-10-25 Thread Christophe Ricard
When initializing ndev->hci_dev->init_data, only gates field was set. gate_count needs to be initialized as well. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-n

[PATCH v4] Documentation: dt: binding: fsl: add devicetree binding for describing RCPM

2015-10-25 Thread Dongsheng Wang
From: Wang Dongsheng RCPM is the Run Control and Power Management module performs all device-level tasks associated with device run control and power management. Add this for freescale powerpc platform and layerscape platform. Signed-off-by: Chenhui Zhao Signed-off-by: Tang Yuantian Signed-of

[PATCH v3 25/35] nfc: st-nci: Increase waiting time between 2 secure element activation

2015-10-25 Thread Christophe Ricard
After internal discussion, it appears this timing should be increase to 20 ms for interoperability reason. Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-nci/se.c index 147e

[PATCH v3 19/35] nfc: st-nci: Change st_nci_gates offset when looking for a pipe in the table

2015-10-25 Thread Christophe Ricard
It is useless to start from index 0 when looking for a gate because only dynamic pipes are retrieved with ST_NCI_DM_GETINFO(ST_NCI_DM_GETINFO_PIPE_LIST). The first dynamic pipe is present at index 3. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 2 +-

[PATCH v3 16/35] nfc: st21nfca: Keep st21nfca_gates unchanged in load_session

2015-10-25 Thread Christophe Ricard
We need to keep initial st_nci_gates values in order for nfc_hci_dev_connect_gates to create and open pipe when necessary. For example after a firmware update CLF pipes are cleared. Changing pipe values in st21nfca_gates was causing nfc_hci_dev_connect_gates not using accurate pipes value. Cc: st

[PATCH v3 18/35] nfc: st-nci: Add support for NCI_HCI_IDENTITY_MGMT_GATE

2015-10-25 Thread Christophe Ricard
NCI_HCI_IDENTITY_MGMT_GATE might be useful to get information for example about hardware or firmware version. Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c| 3 +++ include/net/nfc/nci_core.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/nfc/st-nci/se.c b/driver

[PATCH v3 22/35] nfc: st-nci: Add error messages when an unexpected HCI event occurs

2015-10-25 Thread Christophe Ricard
Potentially an unexpected HCI event may occur because of a firmware bug. It could be transparent for the user but at least log this. Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-nci

[PATCH v3 21/35] nfc: st-nci: Add support for proprietary commands for factory tests

2015-10-25 Thread Christophe Ricard
Add support for proprietary commands useful mainly for factory testings. Here is a list: - FACTORY_MODE: Allow to set the driver into a mode where no secure element are activated. It does not consider any NFC_ATTR_VENDOR_DATA. - HCI_CLEAR_ALL_PIPES: Allow to execute a HCI clear all pipes command. I

[PATCH v3 15/35] nfc: st-nci: Keep st_nci_gates unchanged in load_session

2015-10-25 Thread Christophe Ricard
We need to keep initial st_nci_gates values in order for nci_hci_dev_connect_gates to create and open pipe when necessary. For example after a firmware update CLF pipes are cleared. Changing pipe values in st_nci_gates was causing nci_hci_dev_connect_gates not using accurate pipes value. Cc: sta.

[PATCH v3 24/35] nfc: st-nci: Add ese-present/uicc-present dts properties

2015-10-25 Thread Christophe Ricard
In order to align with st21nfca, dts configuration properties ese_present and uicc_present are made available in st-nci driver. So far, in early development firmware, because nci_nfcee_mode_set(DISABLE) was not supported pushed us to try to enable during the secure element discovery phase. After

[PATCH v3 11/35] nfc: st-nci: Remove ndev->hci_dev->init_data.gates initialization in load_session

2015-10-25 Thread Christophe Ricard
ndev->hci_dev->init_data.gates is already initialized in st_nci_hci_network. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-nci/se.c index 4acb945..3ffac0e 1006

[PATCH v3 09/35] nfc: nci: Add a call to nci_hci_clear_all_pipes at HCI initial activation.

2015-10-25 Thread Christophe Ricard
When session_id is filled to ff, the pipe configuration is probably incorrect. Signed-off-by: Christophe Ricard --- net/nfc/nci/hci.c | 4 1 file changed, 4 insertions(+) diff --git a/net/nfc/nci/hci.c b/net/nfc/nci/hci.c index 43d7931..a937bc6 100644 --- a/net/nfc/nci/hci.c +++ b/net/nfc/

[PATCH v3 00/35] Few fixes and st21nfca/st-nci vendor_cmds support

2015-10-25 Thread Christophe Ricard
Hi Samuel, Please find in the following patchset severals fixes as well as vendor_cmds support for st21nfca and st-nci. vendor_cmds includes production test, trimmings & firmware update commands. v3: - Fix st21nfca vendor_cmds by exporting nfc_llc_start/stop - Remove #include "st21nfca_vendor_cm

[PATCH v3 08/35] nfc: nci: add nci_hci_clear_all_pipes functions

2015-10-25 Thread Christophe Ricard
nci_hci_clear_all_pipes might be use full in some cases for example after a firmware update. Signed-off-by: Christophe Ricard --- include/net/nfc/nci_core.h | 1 + net/nfc/nci/hci.c | 15 +++ 2 files changed, 16 insertions(+) diff --git a/include/net/nfc/nci_core.h b/inclu

[PATCH v3 03/35] nfc: st21nfca: Align st21nfca driver with other nfc driver

2015-10-25 Thread Christophe Ricard
Align st21nfca driver with or nfc driver: - Remove st21nfca_ prefix - Merge st21nfca_se.h, st21nfca_dep.h in st21nfca.h Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/Makefile |2 +- drivers/nfc/st21nfca/core.c | 1062 ++ drivers/nfc/s

[PATCH v3 07/35] nfc: nci: extract pipe value using NCI_HCP_MSG_GET_PIPE

2015-10-25 Thread Christophe Ricard
When receiving data in nci_hci_msg_rx_work, extract pipe value using NCI_HCP_MSG_GET_PIPE macro. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- net/nfc/nci/hci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/nfc/nci/hci.c b/net/nfc/nci/hci.c index 7

[PATCH v3 04/35] nfc: st-nci: Fix incorrect spi buffer size

2015-10-25 Thread Christophe Ricard
When sending data over SPI, the maximum expected length is the maximum nci packet payload + data header size + the frame head room (1 for the ndlc header) + the frame trail room (0). Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/spi.c | 4 +++- 1 file changed

[PATCH v3 02/35] nfc: st-nci: include st-nci.h instead of ndlc.h

2015-10-25 Thread Christophe Ricard
st-nci.h already include ndlc.h. Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/i2c.c | 2 +- drivers/nfc/st-nci/ndlc.c | 1 - drivers/nfc/st-nci/spi.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/st-nci/i2c.c index 707e

[PATCH v3 10/35] nfc: nci: add capability to create pipe on specific gate in nci_hci_connect_gate

2015-10-25 Thread Christophe Ricard
Some gates might be interesting to have their pipes created. Add in nci_hci_connect_gate a call to nci_hci_create_pipe for every gate different than NCI_HCI_LINK_MGMT_GATE or NCI_HCI_ADMIN_GATE. In case of an error when opening a pipe, like in hci layer, delete the pipe if it was created. Signed-

[PATCH v3 06/35] nfc: nci: Fix improper management of HCI return code

2015-10-25 Thread Christophe Ricard
When sending HCI data over NCI, HCI return code is part of the NCI data. In order to get correctly the HCI return code, we assume the NCI communication is successful and extract the return code for the nci_hci functions return code. This is done because nci_to_errno does not match hci return code

[PATCH v3 05/35] nfc: nci: Fix incorrect data chaining when sending data

2015-10-25 Thread Christophe Ricard
When sending HCI data over NCI, cmd information should be present only on the first packet. Each packet shall be specifically allocated and sent to the NCI layer. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- net/nfc/nci/hci.c | 19 --- 1 file changed, 12 insert

[PATCH v3 13/35] nfc: st-nci: Open NCI_HCI_LINK_MGMT_PIPE

2015-10-25 Thread Christophe Ricard
NCI_HCI_LINK_MGMT_PIPE was never open in st_nci_hci_load_session. Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-nci/se.c index 3ffac0e..3522165 100644 --- a/drivers/nfc/st-nci/se.c

[PATCH v3 12/35] nfc: st21nfca: Remove hdev->init_data.gates initialization in load_session

2015-10-25 Thread Christophe Ricard
hdev->init_data.gates is already initialized in st21nfca_hci_probe. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nfc/st21nfca/core.c b/drivers/nfc/st21nfca/core.c index 42f1974..67d1c27 1006

[PATCH v3 01/35] nfc: st-nci: Align st-nci driver with other nfc driver

2015-10-25 Thread Christophe Ricard
Align st-nci driver with or nfc driver: - Remove st-nci_ prefix - Merge se.h in st-nci.h Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/core.c | 1 - drivers/nfc/st-nci/se.c | 1 - drivers/nfc/st-nci/se.h | 61 - drivers/nfc/st-nci

[PATCH v2 1/3] gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin

2015-10-25 Thread Y Vo
Add support to configure GPIO line as input, output or external IRQ pin. Signed-off-by: Y Vo --- drivers/gpio/gpio-xgene-sb.c | 234 +++-- 1 files changed, 199 insertions(+), 35 deletions(-) diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene

[PATCH v2 0/3] gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin

2015-10-25 Thread Y Vo
V2 Changes: - support X-Gene standby GPIO as an interrupt controller. Y Vo (3): gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding arm64: dts: Upda

[PATCH v2 2/3] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-10-25 Thread Y Vo
Update description for X-Gene standby GPIO controller DTS binding to support GPIO line configuration as input, output or external IRQ pin. Signed-off-by: Y Vo --- .../devicetree/bindings/gpio/gpio-xgene-sb.txt | 23 +--- 1 files changed, 15 insertions(+), 8 deletions(-) di

[PATCH v2 3/3] arm64: dts: Update APM X-Gene standby GPIO controller DTS entries

2015-10-25 Thread Y Vo
Update APM X-Gene standby GPIO controller DTS entries to support GPIO line configuration as input, output or external IRQ pin. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts

Re: [PATCH v2 00/35] Few fixes and st21nfca/st-nci vendor_cmds support

2015-10-25 Thread Christophe Ricard
Hi Samuel, I believe there was an issue when you applied my last series. drivers/nfc/st-nci/vendor_cmds.c is not present and this introduce a build fix already reported by kbuild robot. I am sending a new version fixing the points you mention. Best Regards Christophe On 26/10/2015 07:01, Sam

Re: [PATCH v2 00/35] Few fixes and st21nfca/st-nci vendor_cmds support

2015-10-25 Thread Samuel Ortiz
Hi Christophe, On Sun, Oct 25, 2015 at 10:54:15PM +0100, Christophe Ricard wrote: > Hi Samuel, > > Please find in the following patchset severals fixes as well as vendor_cmds > support > for st21nfca and st-nci. > vendor_cmds includes production test, trimmings & firmware update commands. > > v

Re: [PATCH v6 1/4] arm64, numa: adding numa support for arm64 platforms.

2015-10-25 Thread Ganapatrao Kulkarni
On Wed, Oct 21, 2015 at 2:24 PM, Ganapatrao Kulkarni wrote: > On Tue, Oct 20, 2015 at 8:17 PM, Mark Rutland wrote: >> Hi, >> >> I'm away for the rest of this week and don't have the time to give this >> a full review, but I've given this a first pass and have some high-level >> comments: >> >> Fi

Re: [PATCH 5/5] arm64: dts: spi bus dts support multiple devices

2015-10-25 Thread lei liu
Hi Sascha, On Wed, 2015-10-14 at 07:58 +0200, Sascha Hauer wrote: > On Wed, Oct 14, 2015 at 11:23:35AM +0800, Leilk Liu wrote: > > This patch support multiple devices for MT8173. > > The subject of this patch and also the above sentence should contain the > board name this patch is changing so th

Re: [PATCH 0/5] mt8173 spi multiple devices support

2015-10-25 Thread lei liu
Hi Mark, On Mon, 2015-10-19 at 20:27 +0100, Mark Brown wrote: > On Wed, Oct 14, 2015 at 11:23:30AM +0800, Leilk Liu wrote: > > This series are based on 4.3-rc1 and provide 5 patches to support > > mt8173 spi multiple devices. > > This doesn't apply against current code, please check and resend.

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

2015-10-25 Thread Yong Wu
On Wed, 2015-10-14 at 14:53 +0200, Joerg Roedel wrote: > On Fri, Oct 09, 2015 at 10:23:07AM +0800, Yong Wu wrote: > > + /* > > +* There is a domain for each a iommu device in normal case. > > +* But MTK only has one iommu domain called the m4u domain which all > > +* the multimedia HW

Re: [PATCH] ARM: dts: uniphier: add I2C aliases for ProXstream2 boards

2015-10-25 Thread Olof Johansson
On Sat, Oct 24, 2015 at 12:25:31PM +0900, Masahiro Yamada wrote: > Add aliases to fix the I2C indexes like the other UniPhier boards. > > Signed-off-by: Masahiro Yamada Thanks, applied! -Olof -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to

Re: [PATCH] ARM: dts: sun6i-a31: Add pins definitions for more UARTs

2015-10-25 Thread Luis Araneda
Hi, You're right on that these pins aren't currently in use by any .dts file, but the manufacturer, Sinovoip, should be submitting a .dts file for the board soon, and if they don't, I'm sure the Linux-Sunxi community will do. You can see a work-in-progress device tree at: https://github.com/BPI-SI

Re: [PATCH v6 3/4] arm64/arm, numa, dt: adding numa dt binding implementation for arm64 platforms

2015-10-25 Thread Ming Lei
On Mon, Oct 26, 2015 at 11:50 AM, Ganapatrao Kulkarni wrote: > On Mon, Oct 26, 2015 at 7:14 AM, Ming Lei wrote: >> On Tue, Oct 20, 2015 at 6:45 PM, Ganapatrao Kulkarni >> wrote: >>> Adding numa dt binding support for arm64 based platforms. >>> dt node parsing for numa topology is done using devi

[PATCH v5 7/8] ARM: dts: enable smp for rk3036

2015-10-25 Thread Xing Zheng
Enable smp for rk3036, and add the smp sram name for adapting. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v5: None arch/arm/boot/dts/rk3036.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi

[PATCH v5 6/8] ARM: rockchip: add support smp for rk3036

2015-10-25 Thread Xing Zheng
From: Heiko Stuebner The dual-core Cortex A7 rk3036 is a bit special in that it does not allow to control the actual powerdomain of the cpu cores, while the rest of the smp-bringup like reset control and entry address handling stays the same. Its bigger sibling, the quad-core rk3128 again allows

[PATCH v5 5/8] ARM: dts: rockchip: add core rk3036 dts

2015-10-25 Thread Xing Zheng
Initial release for rk3036, node definitions rk3036 sdk board. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v5: None arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/rk3036-evb.dts | 64 + arch/arm/boot/dts/rk3036.dtsi| 536 ++

[PATCH v5 0/8] Build and support rk3036 SoC platform

2015-10-25 Thread Xing Zheng
Hi, We need to support rk3036 soc platform via upstream, there are 3 primary parts for the initial release of minimum system: dts, pinctrl, and clock tree for rk3036, and additional, we can use these startup and run to init processs. Thanks. Changed in v5: - don't use clk_ APIs in the pll init

[PATCH v5 2/8] clk: rockchip: add dt-binding header for rk3036

2015-10-25 Thread Xing Zheng
Add the dt-bindings header for the rk3036, that gets shared between the clock controller and the clock references in the dts. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v5: None include/dt-bindings/clock/rk3036-cru.h | 195 1 file ch

[PATCH v5 1/8] dt-bindings: add documentation of rk3036 clock controller

2015-10-25 Thread Xing Zheng
Add the devicetree binding for the cru on the rk3036 which quite similar structured as previous clock controllers. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v5: None .../bindings/clock/rockchip,rk3036-cru.txt | 56 1 file changed, 56 i

Re: [PATCH v3 0/3] ARM: uniphier: add outer cache support and rework SMP operations

2015-10-25 Thread Masahiro Yamada
Hi Arnd, 2015-10-10 15:59 GMT+09:00 Masahiro Yamada : > Hi Arnd, > > > 2015-10-06 15:22 GMT+01:00 Arnd Bergmann : >> On Tuesday 06 October 2015 16:20:23 Arnd Bergmann wrote: >>> On Friday 18 September 2015 13:37:31 Masahiro Yamada wrote: >>> > Hi Olof, >>> > >>> > Now Linux 4.3-rc1 is out, so I a

Re: [PATCH v6 3/4] arm64/arm, numa, dt: adding numa dt binding implementation for arm64 platforms

2015-10-25 Thread Ganapatrao Kulkarni
On Mon, Oct 26, 2015 at 7:14 AM, Ming Lei wrote: > On Tue, Oct 20, 2015 at 6:45 PM, Ganapatrao Kulkarni > wrote: >> Adding numa dt binding support for arm64 based platforms. >> dt node parsing for numa topology is done using device property >> proximity and device node distance-map. >> >> Reviewe

Re: [PATCH] ARM: dts: sun6i-a31: Add pins definitions for more UARTs

2015-10-25 Thread Chen-Yu Tsai
Hi, On Mon, Oct 26, 2015 at 11:07 AM, Luis Araneda wrote: > Two additional UARTs tested on the GPIO pins from the > Banana Pi M2 board > > Signed-off-by: Luis Araneda > --- IIRC the policy we have is only add stuff that is actually used. I don't see a follow up patch using these in any boards.

Re: [PATCH v6 04/22] of: add function to allow probing a device from a OF node

2015-10-25 Thread Mark Brown
On Mon, Oct 26, 2015 at 03:48:44AM +0100, Rafael J. Wysocki wrote: > On Mon, Oct 26, 2015 at 1:13 AM, Mark Brown wrote: > > Should we try to schedule an ad-hoc session today (Monday) for those of > > us who are here to talk this over? > I won't mind doing that, what about after the Linus+Dirk se

[PATCH] ARM: dts: sun6i-a31: Add pins definitions for more UARTs

2015-10-25 Thread Luis Araneda
Two additional UARTs tested on the GPIO pins from the Banana Pi M2 board Signed-off-by: Luis Araneda --- arch/arm/boot/dts/sun6i-a31.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 83c1879..eb02d57

Re: [PATCH v6 04/22] of: add function to allow probing a device from a OF node

2015-10-25 Thread Rafael J. Wysocki
On Mon, Oct 26, 2015 at 1:13 AM, Mark Brown wrote: > On Sat, Oct 24, 2015 at 03:09:06PM -0500, Rob Herring wrote: > >> Let's get agreement on the flow and structure and how to address other >> issues like suspend, then we can worry about whether this needs to be >> abstracted from subsystems. We c

Re: [PATCH v4 5/5] [RFC] clk: shmobile: r8a7795: Add new CPG/MSSR driver

2015-10-25 Thread Laurent Pinchart
Hi Geert, On Saturday 24 October 2015 19:34:03 Geert Uytterhoeven wrote: > On Sat, Oct 24, 2015 at 3:10 AM, Stephen Boyd wrote: > > On 10/22, Geert Uytterhoeven wrote: > >> On Tue, Oct 20, 2015 at 3:07 PM, Geert Uytterhoeven wrote: > >>> On Tue, Oct 20, 2015 at 3:00 PM, Michael Turquette wrote: >

Re: [PATCH v2 2/3] ARM: dts: sun8i: Add Allwinner A83T dtsi

2015-10-25 Thread Chen-Yu Tsai
On Fri, Oct 23, 2015 at 7:46 AM, Vishnu Patekar wrote: > Allwinner A83T is new octa-core cortex-a7 SOC. > This adds the basic dtsi, the clocks differs from > earlier sun8i SOCs. > > Signed-off-by: Vishnu Patekar > --- > arch/arm/boot/dts/sun8i-a83t.dtsi | 247 > +

Re: [PATCH v6 3/4] arm64/arm, numa, dt: adding numa dt binding implementation for arm64 platforms

2015-10-25 Thread Ming Lei
On Tue, Oct 20, 2015 at 6:45 PM, Ganapatrao Kulkarni wrote: > Adding numa dt binding support for arm64 based platforms. > dt node parsing for numa topology is done using device property > proximity and device node distance-map. > > Reviewed-by: Robert Richter > Signed-off-by: Ganapatrao Kulkarni

Re: [GIT PULL] On-demand device probing

2015-10-25 Thread Mark Brown
On Sun, Oct 25, 2015 at 02:54:39PM +0100, Rafael J. Wysocki wrote: > On Sun, Oct 25, 2015 at 12:06 AM, Mark Brown wrote: > > There's also the understanding people had that the order things get > > bound changes the ordering for some of the other cases (perhaps it's a > > good idea to do that, it

Re: [PATCH v5 4/5] ARM: dts: mt8135: enable basic SMP bringup for mt8135

2015-10-25 Thread Kevin Hilman
Hello, On Sat, Oct 3, 2015 at 12:19 AM, Yingjoe Chen wrote: > Add arch timer node to enable arch-timer support. MT8135 firmware > doesn't correctly setup arch-timer frequency and CNTVOFF, add > properties to workaround this. > > This also set cpu enable-method to enable SMP. > > Signed-off-by: Yi

Re: [PATCH] arm: Test for CONFIG_USE_OF to handle the USE_OF=n/OF=y case

2015-10-25 Thread Rob Herring
On Sun, Oct 25, 2015 at 10:25 AM, Geert Uytterhoeven wrote: > Until commit 0166dc11be911213 ("of: make CONFIG_OF user selectable"), > CONFIG_OF=y implied CONFIG_USE_OF=y on ARM, as the former could solely > be enabled by being selected by the latter. Arnd sent a similar fix[1] which I prefer. >

Re: [PATCH v4 4/5] regulator: tps65912: Add regulator driver for the TPS65912 PMIC

2015-10-25 Thread Mark Brown
On Sun, Oct 25, 2015 at 03:45:43PM -0500, Andrew F. Davis wrote: > On 10/24/2015 05:14 PM, Mark Brown wrote: > >Tbe binding document is buggy and doesn't reflect the code, there's no > >compatible string in the driver. > Sure there is: > drivers/mfd/mt6397-core.c:48: > .of_compatible = "mediatek

Re: [PATCH v6 04/22] of: add function to allow probing a device from a OF node

2015-10-25 Thread Dmitry Torokhov
On October 26, 2015 9:13:01 AM GMT+09:00, Mark Brown wrote: >On Sat, Oct 24, 2015 at 03:09:06PM -0500, Rob Herring wrote: > >> Let's get agreement on the flow and structure and how to address >other >> issues like suspend, then we can worry about whether this needs to be >> abstracted from subsyst

Re: [PATCH v6 04/22] of: add function to allow probing a device from a OF node

2015-10-25 Thread Mark Brown
On Sat, Oct 24, 2015 at 03:09:06PM -0500, Rob Herring wrote: > Let's get agreement on the flow and structure and how to address other > issues like suspend, then we can worry about whether this needs to be > abstracted from subsystems. We can discuss more this week at KS. Should we try to schedul

Re: [PATCH v6 04/22] of: add function to allow probing a device from a OF node

2015-10-25 Thread Rob Herring
On 10/24/2015 08:55 AM, Rafael J. Wysocki wrote: > On Thursday, October 22, 2015 03:03:37 PM Tomeu Vizoso wrote: >> On 22 October 2015 at 03:06, Rafael J. Wysocki wrote: >>> On Monday, September 21, 2015 04:02:44 PM Tomeu Vizoso wrote: Walks the OF tree up and finds the closest ancestor that

[PATCH v2 25/35] nfc: st-nci: Increase waiting time between 2 secure element activation

2015-10-25 Thread Christophe Ricard
After internal discussion, it appears this timing should be increase to 20 ms for interoperability reason. Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-nci/se.c index 147e

[PATCH v2 22/35] nfc: st-nci: Add error messages when an unexpected HCI event occurs

2015-10-25 Thread Christophe Ricard
Potentially an unexpected HCI event may occur because of a firmware bug. It could be transparent for the user but at least log this. Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-nci

[PATCH v2 23/35] nfc: netlink: Add missing NFC_ATTR comments

2015-10-25 Thread Christophe Ricard
NFC_CMD_ACTIVATE_TARGET and NFC_ATTR_SE_PARAMS comments are missing. Signed-off-by: Christophe Ricard --- include/uapi/linux/nfc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/nfc.h b/include/uapi/linux/nfc.h index dd3f753..399f39f 100644 --- a/include/uapi/linux/nfc.

[PATCH v2 26/35] nfc: st-nci: Fix host_list verification after secure element activation

2015-10-25 Thread Christophe Ricard
A secure element can be activated in different order. The host_list is updated keeping a fixed order: . Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/nfc/st-nci/se.c b/dri

[PATCH v2 27/35] nfc: st21nfca: Fix host_list verification after secure element activation

2015-10-25 Thread Christophe Ricard
A secure element can be activated in different order. The host_list is updated keeping a fixed order: . Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/se.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/nfc/st21nfca/se.c b

[PATCH v2 35/35] nfc: st-nci: Replace st21nfcb by st_nci in makefile

2015-10-25 Thread Christophe Ricard
Replace 1 missing st21nfcb by st_nci Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st-nci/Makefile b/drivers/nfc/st-nci/Makefile index ea40ace..439b2fa 100644 --- a/drivers/nfc/st-nci/Makefile +++

[PATCH v2 24/35] nfc: st-nci: Add ese-present/uicc-present dts properties

2015-10-25 Thread Christophe Ricard
In order to align with st21nfca, dts configuration properties ese_present and uicc_present are made available in st-nci driver. So far, in early development firmware, because nci_nfcee_mode_set(DISABLE) was not supported pushed us to try to enable during the secure element discovery phase. After

[PATCH v2 28/35] nfc: netlink: Add mode parameter to deactivate_target functions

2015-10-25 Thread Christophe Ricard
In order to manage in a better way the nci poll mode state machine, add mode parameter to deactivate_target functions. This way we can manage different target state. mode parameter make sense only in nci core. Signed-off-by: Christophe Ricard --- include/net/nfc/nfc.h | 2 +- net/nfc/core.c

[PATCH v2 06/35] nfc: nci: Fix improper management of HCI return code

2015-10-25 Thread Christophe Ricard
When sending HCI data over NCI, HCI return code is part of the NCI data. In order to get correctly the HCI return code, we assume the NCI communication is successful and extract the return code for the nci_hci functions return code. This is done because nci_to_errno does not match hci return code

[PATCH v2 17/35] nfc: st-nci: initialize gate_count in st_nci_hci_network_init

2015-10-25 Thread Christophe Ricard
When initializing ndev->hci_dev->init_data, only gates field was set. gate_count needs to be initialized as well. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-n

[PATCH v2 30/35] nfc: st21nfca: Add few code style fixes

2015-10-25 Thread Christophe Ricard
Add a minor code style fixes Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.c | 2 -- drivers/nfc/st21nfca/i2c.c | 1 + drivers/nfc/st21nfca/se.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/st21nfca/core.c b/dri

[PATCH v2 32/35] nfc: st21nfca: Add error messages when an unexpected HCI event occurs

2015-10-25 Thread Christophe Ricard
Potentially an unexpected HCI event may occur because of a firmware bug. It could be transparent for the user but at least log this. Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.c | 2 ++ drivers/nfc/st21nfca/dep.c | 1 + drivers/nfc/st21nfca/se.c | 4 3 files changed,

[PATCH v2 31/35] nfc: st21nfca: Add support for proprietary commands for factory tests

2015-10-25 Thread Christophe Ricard
Add support for proprietary commands useful mainly for factory testings. Here is a list: - FACTORY_MODE: Allow to set the driver into a mode where no secure element are activated. It does not consider any NFC_ATTR_VENDOR_DATA. - HCI_CLEAR_ALL_PIPES: Allow to execute a HCI clear all pipes command. I

[PATCH v2 15/35] nfc: st-nci: Keep st_nci_gates unchanged in load_session

2015-10-25 Thread Christophe Ricard
We need to keep initial st_nci_gates values in order for nci_hci_dev_connect_gates to create and open pipe when necessary. For example after a firmware update CLF pipes are cleared. Changing pipe values in st_nci_gates was causing nci_hci_dev_connect_gates not using accurate pipes value. Cc: sta.

[PATCH v2 34/35] nfc: st-nci: remove duplicated skb dump

2015-10-25 Thread Christophe Ricard
Remove SPI_DUMP_SKB and I2C_DUMP_SKB as skb is already dumped in ndlc layer. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/i2c.c | 11 --- drivers/nfc/st-nci/spi.c | 11 --- 2 files changed, 22 deletions(-) diff --git a/drivers/nfc/st-nci/i2c

[PATCH v2 05/35] nfc: nci: Fix incorrect data chaining when sending data

2015-10-25 Thread Christophe Ricard
When sending HCI data over NCI, cmd information should be present only on the first packet. Each packet shall be specifically allocated and sent to the NCI layer. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- net/nfc/nci/hci.c | 19 --- 1 file changed, 12 insert

[PATCH v2 29/35] nfc: st-nci: Add few code style fixes

2015-10-25 Thread Christophe Ricard
Add some few code style fixes. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/i2c.c | 2 +- drivers/nfc/st-nci/se.c | 2 +- net/nfc/nci/hci.c| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/

[PATCH v2 04/35] nfc: st-nci: Fix incorrect spi buffer size

2015-10-25 Thread Christophe Ricard
When sending data over SPI, the maximum expected length is the maximum nci packet payload + data header size + the frame head room (1 for the ndlc header) + the frame trail room (0). Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/spi.c | 4 +++- 1 file changed

[PATCH v2 16/35] nfc: st21nfca: Keep st21nfca_gates unchanged in load_session

2015-10-25 Thread Christophe Ricard
We need to keep initial st_nci_gates values in order for nfc_hci_dev_connect_gates to create and open pipe when necessary. For example after a firmware update CLF pipes are cleared. Changing pipe values in st21nfca_gates was causing nfc_hci_dev_connect_gates not using accurate pipes value. Cc: st

[PATCH v2 33/35] nfc: st-nci: Make sure irq is not already active when powering the device

2015-10-25 Thread Christophe Ricard
Upon some conditions (timing, CLF errors, platform errors...), the irq might be already active when powering the device. Add irq_active variable as a guard to avoid kernel warning message Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/i2c.c | 8 +++- drivers/nfc/st-nci/spi.c | 8 ++

[PATCH v2 14/35] nfc: st21nfca: Open NFC_HCI_LINK_MGMT_PIPE

2015-10-25 Thread Christophe Ricard
NFC_HCI_LINK_MGMT_PIPE was never open in nfc_hci_load_session. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/nfc/st21nfca/core.c b/drivers/nfc/st21nfca/c

[PATCH v2 20/35] nfc: st21nfca: Change st21nfca_gates offset when looking for a pipe in the table

2015-10-25 Thread Christophe Ricard
It is useless to start from index 0 when looking for a gate because only dynamic pipes are retrieved with ST21NFCA_DM_GETINFO(ST21NFCA_DM_GETINFO_PIPE_LIST). The first dynamic pipe is present at index 3. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.

[PATCH v2 02/35] nfc: st-nci: include st-nci.h instead of ndlc.h

2015-10-25 Thread Christophe Ricard
st-nci.h already include ndlc.h. Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/i2c.c | 2 +- drivers/nfc/st-nci/ndlc.c | 1 - drivers/nfc/st-nci/spi.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/st-nci/i2c.c index 707e

[PATCH v2 03/35] nfc: st21nfca: Align st21nfca driver with other nfc driver

2015-10-25 Thread Christophe Ricard
Align st21nfca driver with or nfc driver: - Remove st21nfca_ prefix - Merge st21nfca_se.h, st21nfca_dep.h in st21nfca.h Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/Makefile |2 +- drivers/nfc/st21nfca/core.c | 1062 ++ drivers/nfc/s

[PATCH v2 07/35] nfc: nci: extract pipe value using NCI_HCP_MSG_GET_PIPE

2015-10-25 Thread Christophe Ricard
When receiving data in nci_hci_msg_rx_work, extract pipe value using NCI_HCP_MSG_GET_PIPE macro. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- net/nfc/nci/hci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/nfc/nci/hci.c b/net/nfc/nci/hci.c index 7

[PATCH v2 12/35] nfc: st21nfca: Remove hdev->init_data.gates initialization in load_session

2015-10-25 Thread Christophe Ricard
hdev->init_data.gates is already initialized in st21nfca_hci_probe. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st21nfca/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nfc/st21nfca/core.c b/drivers/nfc/st21nfca/core.c index 42f1974..67d1c27 1006

[PATCH v2 19/35] nfc: st-nci: Change st_nci_gates offset when looking for a pipe in the table

2015-10-25 Thread Christophe Ricard
It is useless to start from index 0 when looking for a gate because only dynamic pipes are retrieved with ST_NCI_DM_GETINFO(ST_NCI_DM_GETINFO_PIPE_LIST). The first dynamic pipe is present at index 3. Cc: sta...@vger.kernel.org Signed-off-by: Christophe Ricard --- drivers/nfc/st-nci/se.c | 2 +-

  1   2   >