[PATCH] qmi_wwan: apply SET_DTR quirk to Sierra WP7607

2019-02-15 Thread Beniamino Galvani
The 1199:68C0 USB ID is reused by Sierra WP7607 which requires the DTR quirk to be detected. Apply QMI_QUIRK_SET_DTR unconditionally as already done for other IDs shared between different devices. Signed-off-by: Beniamino Galvani --- drivers/net/usb/qmi_wwan.c | 4 ++-- 1 file changed, 2

Re: [PATCH] pinctrl: meson: fix gpio request disabling other modes

2016-12-11 Thread Beniamino Galvani
addition when calling meson_pmx_disable_other_groups. > > Fixes: 6ac730951104 ("pinctrl: add driver for Amlogic Meson SoCs") > CC: Beniamino Galvani <b.galv...@gmail.com> > Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> Acked-by: Beniamino Galvani <b.galv...@gmail.com>

Re: [PATCH] pinctrl: meson: fix gpio request disabling other modes

2016-12-11 Thread Beniamino Galvani
addition when calling meson_pmx_disable_other_groups. > > Fixes: 6ac730951104 ("pinctrl: add driver for Amlogic Meson SoCs") > CC: Beniamino Galvani > Signed-off-by: Neil Armstrong Acked-by: Beniamino Galvani

[PATCH] pinctrl: meson: get rid of unneeded domain structures

2016-08-13 Thread Beniamino Galvani
Therefore, now the 'meson_domain' and 'meson_domain_data' structures don't have any reason to exist and can be removed to make the model simpler to understand. This commit doesn't change behavior. Tested on a Odroid-C2. Signed-off-by: Beniamino Galvani <b.galv...@gmail.com> --- drivers/pinct

[PATCH] pinctrl: meson: get rid of unneeded domain structures

2016-08-13 Thread Beniamino Galvani
Therefore, now the 'meson_domain' and 'meson_domain_data' structures don't have any reason to exist and can be removed to make the model simpler to understand. This commit doesn't change behavior. Tested on a Odroid-C2. Signed-off-by: Beniamino Galvani --- drivers/pinctrl/meson/pinctrl-meson-gx

Re: [PATCH 4/8] Documentation: devicetree: Document Tronsmart vendor prefix

2016-03-01 Thread Beniamino Galvani
On Tue, Mar 01, 2016 at 12:53:55PM +0100, Andreas Färber wrote: > Searching for it, I even found a similar 2014 patch from Beniamino > Galvani (CC'ed), without any review replies. > > I'll happily pick up one of the previous patches instead. Sorry, was in > a hurry to clean

Re: [PATCH 4/8] Documentation: devicetree: Document Tronsmart vendor prefix

2016-03-01 Thread Beniamino Galvani
On Tue, Mar 01, 2016 at 12:53:55PM +0100, Andreas Färber wrote: > Searching for it, I even found a similar 2014 patch from Beniamino > Galvani (CC'ed), without any review replies. > > I'll happily pick up one of the previous patches instead. Sorry, was in > a hurry to clean

[PATCH v2] net: stmmac: add BQL support

2015-01-21 Thread Beniamino Galvani
Add support for Byte Queue Limits to the STMicro MAC driver. Tested on a Amlogic S802 quad Cortex-A9 board, where the use of BQL decreases the latency of a high priority ping from ~12ms to ~1ms when the 100Mbit link is saturated by 20 TCP streams. Signed-off-by: Beniamino Galvani --- Changes

[PATCH v2] net: stmmac: add BQL support

2015-01-21 Thread Beniamino Galvani
Add support for Byte Queue Limits to the STMicro MAC driver. Tested on a Amlogic S802 quad Cortex-A9 board, where the use of BQL decreases the latency of a high priority ping from ~12ms to ~1ms when the 100Mbit link is saturated by 20 TCP streams. Signed-off-by: Beniamino Galvani b.galv

[PATCH 3/3] ARM: dts: meson: add DTS file for MINIX NEO-X8

2015-01-19 Thread Beniamino Galvani
Add a DTS file for MINIX NEO-X8, a Meson8-based digital media player. Signed-off-by: Beniamino Galvani --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/meson8-minix-neo-x8.dts | 128 ++ 2 files changed, 129 insertions(+) create mode 100644

[PATCH 1/3] of: Add vendor prefix for MINIX

2015-01-19 Thread Beniamino Galvani
Add MINIX Technology Limited to the list of device tree vendor prefixes. The company manufactures digital media players and mini-ITX motherboards. Signed-off-by: Beniamino Galvani --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 0/3] ARM: meson: add support for MINIX NEO-X8

2015-01-19 Thread Beniamino Galvani
This series adds support for MINIX NEO-X8, a digital media player based on a Amlogic S802 (Meson8) SoC. It depends on the pinctrl support for Meson8 submitted here: https://lkml.org/lkml/2015/1/17/87 Beniamino Galvani (3): of: Add vendor prefix for MINIX of: Define board compatible

[PATCH 2/3] of: Define board compatible for MINIX NEO-X8

2015-01-19 Thread Beniamino Galvani
Document the board compatible property for MINIX NEO-X8, a Meson8-based digital media player. While at it, move the other existing Meson board compatible to amlogic.txt. Signed-off-by: Beniamino Galvani --- Documentation/devicetree/bindings/arm/amlogic.txt | 4 Documentation/devicetree

[PATCH 3/3] ARM: dts: meson: add DTS file for MINIX NEO-X8

2015-01-19 Thread Beniamino Galvani
Add a DTS file for MINIX NEO-X8, a Meson8-based digital media player. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/meson8-minix-neo-x8.dts | 128 ++ 2 files changed, 129 insertions

[PATCH 1/3] of: Add vendor prefix for MINIX

2015-01-19 Thread Beniamino Galvani
Add MINIX Technology Limited to the list of device tree vendor prefixes. The company manufactures digital media players and mini-ITX motherboards. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion

[PATCH 0/3] ARM: meson: add support for MINIX NEO-X8

2015-01-19 Thread Beniamino Galvani
This series adds support for MINIX NEO-X8, a digital media player based on a Amlogic S802 (Meson8) SoC. It depends on the pinctrl support for Meson8 submitted here: https://lkml.org/lkml/2015/1/17/87 Beniamino Galvani (3): of: Add vendor prefix for MINIX of: Define board compatible

[PATCH 2/3] of: Define board compatible for MINIX NEO-X8

2015-01-19 Thread Beniamino Galvani
Document the board compatible property for MINIX NEO-X8, a Meson8-based digital media player. While at it, move the other existing Meson board compatible to amlogic.txt. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- Documentation/devicetree/bindings/arm/amlogic.txt | 4

[PATCH v4 2/3] ARM: meson: select PINCTRL_MESON and ARCH_REQUIRE_GPIOLIB

2015-01-17 Thread Beniamino Galvani
Make sure that the Meson pinctrl driver is built whenever Meson support is enabled. Signed-off-by: Beniamino Galvani Acked-by: Linus Walleij --- arch/arm/mach-meson/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig index

[PATCH v4 1/3] pinctrl: add driver for Amlogic Meson SoCs

2015-01-17 Thread Beniamino Galvani
at the moment due to lack of documentation. Signed-off-by: Beniamino Galvani --- drivers/pinctrl/Kconfig|8 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/meson/Makefile |2 + drivers/pinctrl/meson/pinctrl-meson.c | 761

[PATCH v4 3/3] ARM: dts: meson8: add pinctrl node

2015-01-17 Thread Beniamino Galvani
Add pinctrl node to the DTSI file for meson8 and sub-nodes for some standard mux configurations. Signed-off-by: Beniamino Galvani --- arch/arm/boot/dts/meson8.dtsi | 68 +++ 1 file changed, 68 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b

[PATCH v4 0/3] Amlogic Meson pinctrl driver

2015-01-17 Thread Beniamino Galvani
of postcore_initcall - avoid unneeded copies of platform data Changes since v1 [ https://lkml.org/lkml/2014/10/7/712 ] - added missing checks of return values - indentation fixes - added missing definitions of groups and functions for Meson8 Beniamino Galvani (3): pinctrl: add driver

[PATCH v4 0/3] Amlogic Meson pinctrl driver

2015-01-17 Thread Beniamino Galvani
of postcore_initcall - avoid unneeded copies of platform data Changes since v1 [ https://lkml.org/lkml/2014/10/7/712 ] - added missing checks of return values - indentation fixes - added missing definitions of groups and functions for Meson8 Beniamino Galvani (3): pinctrl: add driver

[PATCH v4 1/3] pinctrl: add driver for Amlogic Meson SoCs

2015-01-17 Thread Beniamino Galvani
at the moment due to lack of documentation. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- drivers/pinctrl/Kconfig|8 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/meson/Makefile |2 + drivers/pinctrl/meson/pinctrl-meson.c | 761

[PATCH v4 3/3] ARM: dts: meson8: add pinctrl node

2015-01-17 Thread Beniamino Galvani
Add pinctrl node to the DTSI file for meson8 and sub-nodes for some standard mux configurations. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- arch/arm/boot/dts/meson8.dtsi | 68 +++ 1 file changed, 68 insertions(+) diff --git a/arch/arm/boot

[PATCH v4 2/3] ARM: meson: select PINCTRL_MESON and ARCH_REQUIRE_GPIOLIB

2015-01-17 Thread Beniamino Galvani
Make sure that the Meson pinctrl driver is built whenever Meson support is enabled. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Acked-by: Linus Walleij linus.wall...@linaro.org --- arch/arm/mach-meson/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-meson

Re: [PATCH v3 2/3] pinctrl: add driver for Amlogic Meson SoCs

2015-01-12 Thread Beniamino Galvani
On Mon, Jan 12, 2015 at 01:00:16AM +0100, Linus Walleij wrote: > Hi Beniamino, > > sorry for the delay to merging Sören's patches. > > Can you rebase this patch on top of the pin control "devel" branch: > https://git.kernel.org/cgit/linux/kernel/git/linusw/linux-pinctrl.git/log/?h=devel I will

Re: [PATCH v3 2/3] pinctrl: add driver for Amlogic Meson SoCs

2015-01-12 Thread Beniamino Galvani
On Mon, Jan 12, 2015 at 01:00:16AM +0100, Linus Walleij wrote: Hi Beniamino, sorry for the delay to merging Sören's patches. Can you rebase this patch on top of the pin control devel branch: https://git.kernel.org/cgit/linux/kernel/git/linusw/linux-pinctrl.git/log/?h=devel I will rebase

Re: [PATCH net-next] net: stmmac: add BQL support

2014-12-30 Thread Beniamino Galvani
On Mon, Dec 29, 2014 at 09:42:01AM -0800, Dave Taht wrote: > On Sun, Dec 28, 2014 at 1:48 PM, Beniamino Galvani > wrote: > > On Sun, Dec 28, 2014 at 08:25:40AM -0800, Dave Taht wrote: > >> On Sun, Dec 28, 2014 at 6:57 AM, Beniamino Galvani > >> wrote: > >&

Re: [PATCH net-next] net: stmmac: add BQL support

2014-12-30 Thread Beniamino Galvani
On Sun, Dec 28, 2014 at 11:48:14PM -0800, Florian Fainelli wrote: > 2014-12-28 6:57 GMT-08:00 Beniamino Galvani : > > Add support for Byte Queue Limits to the STMicro MAC driver. > > > > Tested on a Amlogic S805 Cortex-A5 board, where the use of BQL > > slightly decr

Re: [PATCH net-next] net: stmmac: add BQL support

2014-12-30 Thread Beniamino Galvani
On Sun, Dec 28, 2014 at 11:48:14PM -0800, Florian Fainelli wrote: 2014-12-28 6:57 GMT-08:00 Beniamino Galvani b.galv...@gmail.com: Add support for Byte Queue Limits to the STMicro MAC driver. Tested on a Amlogic S805 Cortex-A5 board, where the use of BQL slightly decreases the ping

Re: [PATCH net-next] net: stmmac: add BQL support

2014-12-30 Thread Beniamino Galvani
On Mon, Dec 29, 2014 at 09:42:01AM -0800, Dave Taht wrote: On Sun, Dec 28, 2014 at 1:48 PM, Beniamino Galvani b.galv...@gmail.com wrote: On Sun, Dec 28, 2014 at 08:25:40AM -0800, Dave Taht wrote: On Sun, Dec 28, 2014 at 6:57 AM, Beniamino Galvani b.galv...@gmail.com wrote: Add support

Re: [PATCH net-next] net: stmmac: add BQL support

2014-12-28 Thread Beniamino Galvani
On Sun, Dec 28, 2014 at 08:25:40AM -0800, Dave Taht wrote: > On Sun, Dec 28, 2014 at 6:57 AM, Beniamino Galvani > wrote: > > Add support for Byte Queue Limits to the STMicro MAC driver. > > Thank you! > > > Tested on a Amlogic S805 Cortex-A5 board, where the use of

[PATCH net-next] net: stmmac: add BQL support

2014-12-28 Thread Beniamino Galvani
Add support for Byte Queue Limits to the STMicro MAC driver. Tested on a Amlogic S805 Cortex-A5 board, where the use of BQL slightly decreases the ping latency from ~10ms to ~3ms when the 100Mbps link is saturated by TCP streams. No difference is observed at 1Gbps. Signed-off-by: Beniamino

[PATCH net-next] net: stmmac: add BQL support

2014-12-28 Thread Beniamino Galvani
Add support for Byte Queue Limits to the STMicro MAC driver. Tested on a Amlogic S805 Cortex-A5 board, where the use of BQL slightly decreases the ping latency from ~10ms to ~3ms when the 100Mbps link is saturated by TCP streams. No difference is observed at 1Gbps. Signed-off-by: Beniamino

Re: [PATCH net-next] net: stmmac: add BQL support

2014-12-28 Thread Beniamino Galvani
On Sun, Dec 28, 2014 at 08:25:40AM -0800, Dave Taht wrote: On Sun, Dec 28, 2014 at 6:57 AM, Beniamino Galvani b.galv...@gmail.com wrote: Add support for Byte Queue Limits to the STMicro MAC driver. Thank you! Tested on a Amlogic S805 Cortex-A5 board, where the use of BQL slightly

Re: [PATCH v2] irqchip: mediatek: Use IS_ERR() instead of NULL pointer check

2014-12-10 Thread Beniamino Galvani
On Wed, Dec 10, 2014 at 07:53:13AM -0500, Jason Cooper wrote: > On Wed, Dec 10, 2014 at 01:14:43PM +0100, Beniamino Galvani wrote: > > On Wed, Dec 10, 2014 at 05:55:02PM +0800, Yingjoe Chen wrote: > > > Beniamino reported a kernel oops caused by an invalid DT file for the > &

Re: [PATCH v2] irqchip: mediatek: Use IS_ERR() instead of NULL pointer check

2014-12-10 Thread Beniamino Galvani
pointer instead of a casted error return > value in mtk_sysirq_of_init() so any other casted error value passes > the NULL pointer check and causes a kernel panic when dereferenced. > > Use IS_ERR() and return the error value via PTR_ERR(). > > Reported-and-tested-by: Beniamino Galvani

Re: [PATCH v2] irqchip: mediatek: Use IS_ERR() instead of NULL pointer check

2014-12-10 Thread Beniamino Galvani
error return value in mtk_sysirq_of_init() so any other casted error value passes the NULL pointer check and causes a kernel panic when dereferenced. Use IS_ERR() and return the error value via PTR_ERR(). Reported-and-tested-by: Beniamino Galvani b.galv...@gmail.com Well, actually I only

Re: [PATCH v2] irqchip: mediatek: Use IS_ERR() instead of NULL pointer check

2014-12-10 Thread Beniamino Galvani
On Wed, Dec 10, 2014 at 07:53:13AM -0500, Jason Cooper wrote: On Wed, Dec 10, 2014 at 01:14:43PM +0100, Beniamino Galvani wrote: On Wed, Dec 10, 2014 at 05:55:02PM +0800, Yingjoe Chen wrote: Beniamino reported a kernel oops caused by an invalid DT file for the mediatek interrupt polarity

Re: [PATCH v8 2/4] ARM: mediatek: Add sysirq interrupt polarity support

2014-11-29 Thread Beniamino Galvani
On Tue, Nov 25, 2014 at 04:04:20PM +0800, Yingjoe Chen wrote: > Mediatek SoCs have interrupt polarity support in sysirq which > allows to invert polarity for given interrupt. Add this support > using hierarchy irq domain. > > [...] > > +static int __init mtk_sysirq_of_init(struct device_node

Re: [PATCH v8 2/4] ARM: mediatek: Add sysirq interrupt polarity support

2014-11-29 Thread Beniamino Galvani
On Tue, Nov 25, 2014 at 04:04:20PM +0800, Yingjoe Chen wrote: Mediatek SoCs have interrupt polarity support in sysirq which allows to invert polarity for given interrupt. Add this support using hierarchy irq domain. [...] +static int __init mtk_sysirq_of_init(struct device_node *node, +

Re: [PATCH v3 2/3] pinctrl: add driver for Amlogic Meson SoCs

2014-11-27 Thread Beniamino Galvani
On Thu, Nov 27, 2014 at 02:48:31PM +0100, Linus Walleij wrote: > On Sun, Nov 16, 2014 at 9:14 PM, Beniamino Galvani > wrote: > > > This is a driver for the pinmux and GPIO controller available in > > Amlogic Meson SoCs. At the moment it only supports Meson8 devices,

Re: [PATCH v3 2/3] pinctrl: add driver for Amlogic Meson SoCs

2014-11-27 Thread Beniamino Galvani
On Thu, Nov 27, 2014 at 02:48:31PM +0100, Linus Walleij wrote: On Sun, Nov 16, 2014 at 9:14 PM, Beniamino Galvani b.galv...@gmail.com wrote: This is a driver for the pinmux and GPIO controller available in Amlogic Meson SoCs. At the moment it only supports Meson8 devices, however other

Re: randconfig build error with next-20141126, in drivers/spi/spi-meson-spifc.c

2014-11-26 Thread Beniamino Galvani
On Wed, Nov 26, 2014 at 10:53:28AM -0700, Jim Davis wrote: > Building with the attached random configuration file, > > drivers/built-in.o: In function `meson_spifc_probe': > spi-meson-spifc.c:(.text+0x14b4a8): undefined reference to > `devm_regmap_init_mmio_clk' > make: *** [vmlinux] Error 1 Hi,

Re: randconfig build error with next-20141126, in drivers/spi/spi-meson-spifc.c

2014-11-26 Thread Beniamino Galvani
On Wed, Nov 26, 2014 at 10:53:28AM -0700, Jim Davis wrote: Building with the attached random configuration file, drivers/built-in.o: In function `meson_spifc_probe': spi-meson-spifc.c:(.text+0x14b4a8): undefined reference to `devm_regmap_init_mmio_clk' make: *** [vmlinux] Error 1 Hi, I've

[PATCH] ARM: dts: meson: enable Ethernet controller

2014-11-23 Thread Beniamino Galvani
Add a node for the Ethernet controller to Meson DTS file and enable it on the Geniatech ATV1200 board. Signed-off-by: Beniamino Galvani --- arch/arm/boot/dts/meson.dtsi | 11 +++ arch/arm/boot/dts/meson6-atv1200.dts | 4 2 files changed, 15 insertions(+) diff --git a/arch

[PATCH] ARM: dts: meson: enable Ethernet controller

2014-11-23 Thread Beniamino Galvani
Add a node for the Ethernet controller to Meson DTS file and enable it on the Geniatech ATV1200 board. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- arch/arm/boot/dts/meson.dtsi | 11 +++ arch/arm/boot/dts/meson6-atv1200.dts | 4 2 files changed, 15 insertions

[PATCH v3 1/4] spi: core: Add spi_transfer_is_last() helper

2014-11-22 Thread Beniamino Galvani
This adds the function spi_transfer_is_last() which can be used by drivers to know whether a given transfer is the last one in the current message. Signed-off-by: Beniamino Galvani --- include/linux/spi/spi.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/spi/spi.h b

[PATCH v3 3/4] spi: meson: Add support for Amlogic Meson SPIFC

2014-11-22 Thread Beniamino Galvani
of standard operations such as read, page program, sector erase, etc. in a simplified way, toggling a bit in a dedicated register. The driver doesn't use those predefined commands and relies only on custom transfers. Signed-off-by: Beniamino Galvani --- drivers/spi/Kconfig | 7 + drivers

[PATCH v3 4/4] ARM: dts: meson: add node for SPIFC

2014-11-22 Thread Beniamino Galvani
This adds a node for the SPI Flash Controller to the Amlogic Meson DTS. Signed-off-by: Beniamino Galvani Acked-by: Mark Brown --- arch/arm/boot/dts/meson.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index b91e430

[PATCH v3 2/4] spi: meson: Add device tree bindings documentation for SPIFC

2014-11-22 Thread Beniamino Galvani
This adds documentation of device tree bindings for the Amlogic Meson SPIFC (SPI Flash Controller). Signed-off-by: Beniamino Galvani --- .../devicetree/bindings/spi/spi-meson.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v3 0/4] spi: Add support for Amlogic Meson SPIFC

2014-11-22 Thread Beniamino Galvani
one() instead of transfer_one_message() - remove useless memset of devdata - use fixed regmap config - implement PM operations - don't set master->bus_num - allow modular build of the driver Beniamino Galvani (4): spi: core: Add spi_transfer_is_last() helper spi: meson: Add device tree bi

[PATCH v3 0/4] spi: Add support for Amlogic Meson SPIFC

2014-11-22 Thread Beniamino Galvani
() instead of transfer_one_message() - remove useless memset of devdata - use fixed regmap config - implement PM operations - don't set master-bus_num - allow modular build of the driver Beniamino Galvani (4): spi: core: Add spi_transfer_is_last() helper spi: meson: Add device tree bindings

[PATCH v3 4/4] ARM: dts: meson: add node for SPIFC

2014-11-22 Thread Beniamino Galvani
This adds a node for the SPI Flash Controller to the Amlogic Meson DTS. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Acked-by: Mark Brown broo...@kernel.org --- arch/arm/boot/dts/meson.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch

[PATCH v3 2/4] spi: meson: Add device tree bindings documentation for SPIFC

2014-11-22 Thread Beniamino Galvani
This adds documentation of device tree bindings for the Amlogic Meson SPIFC (SPI Flash Controller). Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- .../devicetree/bindings/spi/spi-meson.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

[PATCH v3 3/4] spi: meson: Add support for Amlogic Meson SPIFC

2014-11-22 Thread Beniamino Galvani
of standard operations such as read, page program, sector erase, etc. in a simplified way, toggling a bit in a dedicated register. The driver doesn't use those predefined commands and relies only on custom transfers. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- drivers/spi/Kconfig

[PATCH v3 1/4] spi: core: Add spi_transfer_is_last() helper

2014-11-22 Thread Beniamino Galvani
This adds the function spi_transfer_is_last() which can be used by drivers to know whether a given transfer is the last one in the current message. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- include/linux/spi/spi.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include

Re: [PATCH v2 1/4] spi: Add 'last' flag to spi_transfer structure

2014-11-18 Thread Beniamino Galvani
On Tue, Nov 18, 2014 at 02:06:58PM +, Mark Brown wrote: > It's incredibly sad to iterate through the entire list in order to find > the last entry, especially given that it's a doubly linked list and this > is a bit of a hot path. We should look at the previous entry for the > list head

Re: [PATCH v3 3/3] ARM: dts: meson: add I2C controller nodes

2014-11-18 Thread Beniamino Galvani
On Tue, Nov 18, 2014 at 04:29:13PM +0100, Carlo Caione wrote: > On Tue, Nov 18, 2014 at 4:19 PM, Wolfram Sang wrote: > > On Thu, Nov 13, 2014 at 08:32:03PM +0100, Beniamino Galvani wrote: > >> Add nodes for I2C controllers A,B,AO, which are available in both >

[PATCH v3 1/3] media: rc: meson: document device tree bindings

2014-11-18 Thread Beniamino Galvani
This adds binding documentation for the infrared remote control receiver available in Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani --- Documentation/devicetree/bindings/media/meson-ir.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v3 2/3] media: rc: add driver for Amlogic Meson IR remote receiver

2014-11-18 Thread Beniamino Galvani
g. This is a driver for the IR receiver that implements software decoding of received frames. Signed-off-by: Beniamino Galvani --- MAINTAINERS | 1 + drivers/media/rc/Kconfig| 11 +++ drivers/media/rc/Makefile | 1 + drivers/media

[PATCH v3 3/3] ARM: dts: meson: add IR receiver node

2014-11-18 Thread Beniamino Galvani
This adds a node for the IR remote control receiver to the Amlogic Meson DTS. Signed-off-by: Beniamino Galvani --- arch/arm/boot/dts/meson.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index e6539ea..6a37f15 100644

[PATCH v3 0/3] media: rc: add support for Amlogic Meson IR receiver

2014-11-18 Thread Beniamino Galvani
kml.org/lkml/2014/11/9/20 ]: - added COMPILE_TEST to allow compilation for other architectures - added missing header files - removed bogus vendor, product and version assignments - added file path to Meson entry in MAINTAINERS - reordered patches Beniamino Galvani (3): media: rc: meson:

[PATCH v3 0/3] media: rc: add support for Amlogic Meson IR receiver

2014-11-18 Thread Beniamino Galvani
]: - added COMPILE_TEST to allow compilation for other architectures - added missing header files - removed bogus vendor, product and version assignments - added file path to Meson entry in MAINTAINERS - reordered patches Beniamino Galvani (3): media: rc: meson: document device tree

[PATCH v3 1/3] media: rc: meson: document device tree bindings

2014-11-18 Thread Beniamino Galvani
This adds binding documentation for the infrared remote control receiver available in Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- Documentation/devicetree/bindings/media/meson-ir.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644

[PATCH v3 2/3] media: rc: add driver for Amlogic Meson IR remote receiver

2014-11-18 Thread Beniamino Galvani
for the IR receiver that implements software decoding of received frames. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- MAINTAINERS | 1 + drivers/media/rc/Kconfig| 11 +++ drivers/media/rc/Makefile | 1 + drivers/media/rc/meson-ir.c | 216

[PATCH v3 3/3] ARM: dts: meson: add IR receiver node

2014-11-18 Thread Beniamino Galvani
This adds a node for the IR remote control receiver to the Amlogic Meson DTS. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- arch/arm/boot/dts/meson.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index e6539ea

Re: [PATCH v3 3/3] ARM: dts: meson: add I2C controller nodes

2014-11-18 Thread Beniamino Galvani
On Tue, Nov 18, 2014 at 04:29:13PM +0100, Carlo Caione wrote: On Tue, Nov 18, 2014 at 4:19 PM, Wolfram Sang w...@the-dreams.de wrote: On Thu, Nov 13, 2014 at 08:32:03PM +0100, Beniamino Galvani wrote: Add nodes for I2C controllers A,B,AO, which are available in both Meson6 and Meson8

Re: [PATCH v2 1/4] spi: Add 'last' flag to spi_transfer structure

2014-11-18 Thread Beniamino Galvani
On Tue, Nov 18, 2014 at 02:06:58PM +, Mark Brown wrote: It's incredibly sad to iterate through the entire list in order to find the last entry, especially given that it's a doubly linked list and this is a bit of a hot path. We should look at the previous entry for the list head instead,

[PATCH v2 0/4] spi: Add support for Amlogic Meson SPIFC

2014-11-17 Thread Beniamino Galvani
lue in meson_spifc_transfer_one() - implement transfer_one() instead of transfer_one_message() - remove useless memset of devdata - use fixed regmap config - implement PM operations - don't set master->bus_num - allow modular build of the driver Beniamino Galvani (4): spi: Add 'last' flag to spi_tr

[PATCH v2 1/4] spi: Add 'last' flag to spi_transfer structure

2014-11-17 Thread Beniamino Galvani
and populates it before passing the structure to the driver. Signed-off-by: Beniamino Galvani --- drivers/spi/spi.c | 6 ++ include/linux/spi/spi.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index ebcb33d..fc7f02d 100644 --- a/drivers/spi

[PATCH v2 3/4] spi: meson: Add support for Amlogic Meson SPIFC

2014-11-17 Thread Beniamino Galvani
of standard operations such as read, page program, sector erase, etc. in a simplified way, toggling a bit in a dedicated register. The driver doesn't use those predefined commands and relies only on custom transfers. Signed-off-by: Beniamino Galvani --- drivers/spi/Kconfig | 7 + drivers

[PATCH v2 2/4] spi: meson: Add device tree bindings documentation for SPIFC

2014-11-17 Thread Beniamino Galvani
This adds documentation of device tree bindings for the Amlogic Meson SPIFC (SPI Flash Controller). Signed-off-by: Beniamino Galvani --- .../devicetree/bindings/spi/spi-meson.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v2 4/4] ARM: dts: meson: add node for SPIFC

2014-11-17 Thread Beniamino Galvani
This adds a node for the SPI Flash Controller to the Amlogic Meson DTS. Signed-off-by: Beniamino Galvani Acked-by: Mark Brown --- arch/arm/boot/dts/meson.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index e6539ea

[PATCH v2 4/4] ARM: dts: meson: add node for SPIFC

2014-11-17 Thread Beniamino Galvani
This adds a node for the SPI Flash Controller to the Amlogic Meson DTS. Signed-off-by: Beniamino Galvani b.galv...@gmail.com Acked-by: Mark Brown broo...@kernel.org --- arch/arm/boot/dts/meson.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch

[PATCH v2 2/4] spi: meson: Add device tree bindings documentation for SPIFC

2014-11-17 Thread Beniamino Galvani
This adds documentation of device tree bindings for the Amlogic Meson SPIFC (SPI Flash Controller). Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- .../devicetree/bindings/spi/spi-meson.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

[PATCH v2 3/4] spi: meson: Add support for Amlogic Meson SPIFC

2014-11-17 Thread Beniamino Galvani
of standard operations such as read, page program, sector erase, etc. in a simplified way, toggling a bit in a dedicated register. The driver doesn't use those predefined commands and relies only on custom transfers. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- drivers/spi/Kconfig

[PATCH v2 1/4] spi: Add 'last' flag to spi_transfer structure

2014-11-17 Thread Beniamino Galvani
and populates it before passing the structure to the driver. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- drivers/spi/spi.c | 6 ++ include/linux/spi/spi.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index ebcb33d..fc7f02d 100644

[PATCH v2 0/4] spi: Add support for Amlogic Meson SPIFC

2014-11-17 Thread Beniamino Galvani
in meson_spifc_transfer_one() - implement transfer_one() instead of transfer_one_message() - remove useless memset of devdata - use fixed regmap config - implement PM operations - don't set master-bus_num - allow modular build of the driver Beniamino Galvani (4): spi: Add 'last' flag to spi_transfer structure

[PATCH v3 2/3] pinctrl: add driver for Amlogic Meson SoCs

2014-11-16 Thread Beniamino Galvani
are not supported at the moment due to lack of documentation. Signed-off-by: Beniamino Galvani --- drivers/pinctrl/Kconfig|8 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/meson/Makefile |2 + drivers/pinctrl/meson/pinctrl-meson.c | 761

[PATCH v3 3/3] ARM: meson: select PINCTRL_MESON and ARCH_REQUIRE_GPIOLIB

2014-11-16 Thread Beniamino Galvani
Make sure that the Meson pinctrl driver is built whenever Meson support is enabled. Signed-off-by: Beniamino Galvani --- arch/arm/mach-meson/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig index 2c1154e..1828711 100644

[PATCH v3 0/3] Amlogic Meson pinctrl driver

2014-11-16 Thread Beniamino Galvani
urn values - indentation fixes - added missing definitions of groups and functions for Meson8 Beniamino Galvani (3): pinctrl: meson: add device tree bindings documentation pinctrl: add driver for Amlogic Meson SoCs ARM: meson: select PINCTRL_MESON and ARCH_REQUIRE_GPIOLIB .../devicetree/bindin

[PATCH v3 1/3] pinctrl: meson: add device tree bindings documentation

2014-11-16 Thread Beniamino Galvani
Add device tree bindings documentation for Amlogic Meson pin and GPIO controller. Signed-off-by: Beniamino Galvani --- .../devicetree/bindings/pinctrl/meson,pinctrl.txt | 97 ++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl

[PATCH] clocksource: meson6: Select CLKSRC_MMIO

2014-11-16 Thread Beniamino Galvani
Select CLKSRC_MMIO when the meson6_timer driver is enabled since it depends on clocksource MMIO functions. Signed-off-by: Beniamino Galvani --- drivers/clocksource/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 9042060

[PATCH] clocksource: meson6: Select CLKSRC_MMIO

2014-11-16 Thread Beniamino Galvani
Select CLKSRC_MMIO when the meson6_timer driver is enabled since it depends on clocksource MMIO functions. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- drivers/clocksource/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource

[PATCH v3 0/3] Amlogic Meson pinctrl driver

2014-11-16 Thread Beniamino Galvani
- indentation fixes - added missing definitions of groups and functions for Meson8 Beniamino Galvani (3): pinctrl: meson: add device tree bindings documentation pinctrl: add driver for Amlogic Meson SoCs ARM: meson: select PINCTRL_MESON and ARCH_REQUIRE_GPIOLIB .../devicetree/bindings/pinctrl

[PATCH v3 1/3] pinctrl: meson: add device tree bindings documentation

2014-11-16 Thread Beniamino Galvani
Add device tree bindings documentation for Amlogic Meson pin and GPIO controller. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- .../devicetree/bindings/pinctrl/meson,pinctrl.txt | 97 ++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v3 3/3] ARM: meson: select PINCTRL_MESON and ARCH_REQUIRE_GPIOLIB

2014-11-16 Thread Beniamino Galvani
Make sure that the Meson pinctrl driver is built whenever Meson support is enabled. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- arch/arm/mach-meson/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig index 2c1154e

[PATCH v3 2/3] pinctrl: add driver for Amlogic Meson SoCs

2014-11-16 Thread Beniamino Galvani
are not supported at the moment due to lack of documentation. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- drivers/pinctrl/Kconfig|8 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/meson/Makefile |2 + drivers/pinctrl/meson/pinctrl

[PATCH v3 1/3] i2c: meson: add device tree bindings documentation

2014-11-13 Thread Beniamino Galvani
This commit adds device tree bindings documentation for the I2C bus controller found on Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani --- .../devicetree/bindings/i2c/i2c-meson.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation

[PATCH v3 0/3] i2c: add driver for Amlogic Meson I2C controller

2014-11-13 Thread Beniamino Galvani
() - added DTS patch Changes since v1: - factored common code for token list setup Beniamino Galvani (3): i2c: meson: add device tree bindings documentation i2c: add support for Amlogic Meson I2C controller ARM: dts: meson: add I2C controller nodes .../devicetree/bindings/i2c/i2c

[PATCH v3 3/3] ARM: dts: meson: add I2C controller nodes

2014-11-13 Thread Beniamino Galvani
Add nodes for I2C controllers A,B,AO, which are available in both Meson6 and Meson8. Signed-off-by: Beniamino Galvani --- arch/arm/boot/dts/meson.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi

[PATCH v3 2/3] i2c: add support for Amlogic Meson I2C controller

2014-11-13 Thread Beniamino Galvani
This is a driver for the I2C controller found in Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani --- drivers/i2c/busses/Kconfig | 7 + drivers/i2c/busses/Makefile| 1 + drivers/i2c/busses/i2c-meson.c | 492 + 3 files changed, 500

[PATCH v3 2/3] i2c: add support for Amlogic Meson I2C controller

2014-11-13 Thread Beniamino Galvani
This is a driver for the I2C controller found in Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- drivers/i2c/busses/Kconfig | 7 + drivers/i2c/busses/Makefile| 1 + drivers/i2c/busses/i2c-meson.c | 492 + 3 files

[PATCH v3 3/3] ARM: dts: meson: add I2C controller nodes

2014-11-13 Thread Beniamino Galvani
Add nodes for I2C controllers A,B,AO, which are available in both Meson6 and Meson8. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- arch/arm/boot/dts/meson.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm

[PATCH v3 0/3] i2c: add driver for Amlogic Meson I2C controller

2014-11-13 Thread Beniamino Galvani
() - added DTS patch Changes since v1: - factored common code for token list setup Beniamino Galvani (3): i2c: meson: add device tree bindings documentation i2c: add support for Amlogic Meson I2C controller ARM: dts: meson: add I2C controller nodes .../devicetree/bindings/i2c/i2c

[PATCH v3 1/3] i2c: meson: add device tree bindings documentation

2014-11-13 Thread Beniamino Galvani
This commit adds device tree bindings documentation for the I2C bus controller found on Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- .../devicetree/bindings/i2c/i2c-meson.txt | 24 ++ 1 file changed, 24 insertions(+) create mode

Re: [PATCH 2/3] spi: meson: Add support for Amlogic Meson SPIFC

2014-11-11 Thread Beniamino Galvani
On Mon, Nov 10, 2014 at 03:11:40PM +, Mark Brown wrote: > On Sun, Nov 09, 2014 at 11:56:50PM +0100, Beniamino Galvani wrote: > > On Sun, Nov 09, 2014 at 10:17:12AM +, Mark Brown wrote: > > > > I noticed that the handling of /CS was done in the spifc_txrx() function

Re: [PATCH v2 2/3] media: rc: add driver for Amlogic Meson IR remote receiver

2014-11-11 Thread Beniamino Galvani
On Sun, Nov 09, 2014 at 08:36:09PM +, Sean Young wrote: > > [...] > > + dev_info(dev, "receiver initialized\n"); > > + > > + return 0; > > +out_unreg: > > + rc_unregister_device(ir->rc); > > rc_unregister_device() already calls rc_free_device(). Right, I will fix this. Thanks,

Re: [PATCH v2 2/3] media: rc: add driver for Amlogic Meson IR remote receiver

2014-11-11 Thread Beniamino Galvani
On Sun, Nov 09, 2014 at 08:36:09PM +, Sean Young wrote: [...] + dev_info(dev, receiver initialized\n); + + return 0; +out_unreg: + rc_unregister_device(ir-rc); rc_unregister_device() already calls rc_free_device(). Right, I will fix this. Thanks, Beniamino -- To

  1   2   3   4   >