[PATCH 2/2] input: edt-ft5x06: Perform register read from the very beginning (reg 0x0)

2015-04-21 Thread Rostislav Lisovy
oordinated are at the offset 3), valid data are read and the interrupt event is properly handled. Signed-off-by: Rostislav Lisovy --- drivers/input/touchscreen/edt-ft5x06.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/dri

[PATCH 1/2] input: edt-ft5x06: Do not hardcode register numbers in code, use #define

2015-04-21 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy --- drivers/input/touchscreen/edt-ft5x06.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index e6aef3e..c938d4b 100644 --- a/drivers/input

[PATCH 1/2] input: edt-ft5x06: Do not hardcode register numbers in code, use #define

2015-04-21 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy lis...@jablotron.cz --- drivers/input/touchscreen/edt-ft5x06.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index e6aef3e..c938d4b 100644

[PATCH 2/2] input: edt-ft5x06: Perform register read from the very beginning (reg 0x0)

2015-04-21 Thread Rostislav Lisovy
are at the offset 3), valid data are read and the interrupt event is properly handled. Signed-off-by: Rostislav Lisovy lis...@jablotron.cz --- drivers/input/touchscreen/edt-ft5x06.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b

[PATCH 3/3] ARM: dts: am335x: Add Chiliboard DTS

2015-02-09 Thread Rostislav Lisovy
Chiliboard uses ChiliSOM as its base. Hardware specification: * ChiliSOM (am335x, PMIC, DRAM, NAND) * Ethernet PHY (id 0) * USB host (usb1) * microSD slot * 2x GPIO LED Signed-off-by: Rostislav Lisovy --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/am335x-chiliboard.dts

[PATCH 1/3] ARM: dts: Add vendor prefix for Grinn

2015-02-09 Thread Rostislav Lisovy
Grinn is a company located in Poland, Europe producing System on Modules. Webpage: http://www.grinn-global.com/ Signed-off-by: Rostislav Lisovy --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor

[PATCH 2/3] ARM: dts: am335x: Add DTS for ChiliSOM module

2015-02-09 Thread Rostislav Lisovy
Flash (8x interface, cs0) * UART0 * PMIC * I2C0 (for PMIC) * 1x Ethernet MAC Signed-off-by: Rostislav Lisovy --- arch/arm/boot/dts/am335x-chilisom.dtsi | 239 + 1 file changed, 239 insertions(+) create mode 100644 arch/arm/boot/dts/am335x-chilisom.dtsi diff --git

[PATCH 2/3] ARM: dts: am335x: Add DTS for ChiliSOM module

2015-02-09 Thread Rostislav Lisovy
interface, cs0) * UART0 * PMIC * I2C0 (for PMIC) * 1x Ethernet MAC Signed-off-by: Rostislav Lisovy lis...@jablotron.cz --- arch/arm/boot/dts/am335x-chilisom.dtsi | 239 + 1 file changed, 239 insertions(+) create mode 100644 arch/arm/boot/dts/am335x-chilisom.dtsi diff

[PATCH 1/3] ARM: dts: Add vendor prefix for Grinn

2015-02-09 Thread Rostislav Lisovy
Grinn is a company located in Poland, Europe producing System on Modules. Webpage: http://www.grinn-global.com/ Signed-off-by: Rostislav Lisovy lis...@jablotron.cz --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH 3/3] ARM: dts: am335x: Add Chiliboard DTS

2015-02-09 Thread Rostislav Lisovy
Chiliboard uses ChiliSOM as its base. Hardware specification: * ChiliSOM (am335x, PMIC, DRAM, NAND) * Ethernet PHY (id 0) * USB host (usb1) * microSD slot * 2x GPIO LED Signed-off-by: Rostislav Lisovy lis...@jablotron.cz --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts

[PATCH] iw: Add OCB mode handling

2015-01-12 Thread Rostislav Lisovy
e command for device type setting to support OCB mode. Add commands for "joining" and "leaving" the OCB mode network. When joining two arguments are mandatory -- frequency and channel bandwidth (5 or 10 MHz). Signed-off-by: Rostislav Lisovy --- Makefile| 2 +-

[PATCH] iw: Add OCB mode handling

2015-01-12 Thread Rostislav Lisovy
setting to support OCB mode. Add commands for joining and leaving the OCB mode network. When joining two arguments are mandatory -- frequency and channel bandwidth (5 or 10 MHz). Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- Makefile| 2 +- interface.c | 3 +++ ocb.c

Re: [PATCH] cfg80211: Move join/leave_ocb comments to be in the correct order

2014-11-04 Thread Rostislav Lisovy
On Tue, 2014-11-04 at 13:55 +0100, Johannes Berg wrote: > On Tue, 2014-11-04 at 13:49 +0100, Rostislav Lisovy wrote: > > Use the same ordering in the comments section as it > > is in the structure below. > > Well, I think I confused you :-) > The report from Fengguang'

Re: [PATCH 0/2 v3] cfg80211: mac80211: 802.11p OCB mode support

2014-11-04 Thread Rostislav Lisovy
On Tue, 2014-11-04 at 10:25 +0100, Johannes Berg wrote: > On Mon, 2014-11-03 at 10:33 +0100, Rostislav Lisovy wrote: > > The IEEE 802.11p amendment (already part of IEEE 802.11-2012) > > specifies usage of 5 and 10 MHz wide channels in 5.9GHz band for > > vehicular environ

[PATCH] cfg80211: Move join/leave_ocb comments to be in the correct order

2014-11-04 Thread Rostislav Lisovy
Use the same ordering in the comments section as it is in the structure below. Signed-off-by: Rostislav Lisovy --- include/net/cfg80211.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 5c3acd0..af0ef26 100644

[PATCH] cfg80211: Move join/leave_ocb comments to be in the correct order

2014-11-04 Thread Rostislav Lisovy
Use the same ordering in the comments section as it is in the structure below. Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- include/net/cfg80211.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h

Re: [PATCH 0/2 v3] cfg80211: mac80211: 802.11p OCB mode support

2014-11-04 Thread Rostislav Lisovy
On Tue, 2014-11-04 at 10:25 +0100, Johannes Berg wrote: On Mon, 2014-11-03 at 10:33 +0100, Rostislav Lisovy wrote: The IEEE 802.11p amendment (already part of IEEE 802.11-2012) specifies usage of 5 and 10 MHz wide channels in 5.9GHz band for vehicular environment. All the 802.11p compliant

Re: [PATCH] cfg80211: Move join/leave_ocb comments to be in the correct order

2014-11-04 Thread Rostislav Lisovy
On Tue, 2014-11-04 at 13:55 +0100, Johannes Berg wrote: On Tue, 2014-11-04 at 13:49 +0100, Rostislav Lisovy wrote: Use the same ordering in the comments section as it is in the structure below. Well, I think I confused you :-) The report from Fengguang's build bot was actually when

[PATCH 1/2] cfg80211: mac80211: 802.11p OCB mode handling

2014-11-03 Thread Rostislav Lisovy
-off-by: Rostislav Lisovy --- include/net/cfg80211.h | 14 +++ include/uapi/linux/nl80211.h | 11 ++ net/mac80211/cfg.c | 1 + net/mac80211/chan.c | 2 + net/mac80211/iface.c | 5 +++ net/mac80211/util.c | 3 ++ net/wireless/Makefile| 2

[PATCH 0/2 v3] cfg80211: mac80211: 802.11p OCB mode support

2014-11-03 Thread Rostislav Lisovy
tiple consecutive calls to ocb_join * Many minor fixes Rostislav Lisovy (2): cfg80211: mac80211: 802.11p OCB mode handling mac80211: 802.11p OCB mode support include/net/cfg80211.h | 14 +++ include/net/mac80211.h | 2 + include/uapi/linux/nl80211.h | 11 ++ net/mac80211/Kconfi

[PATCH 2/2] mac80211: 802.11p OCB mode support

2014-11-03 Thread Rostislav Lisovy
in the similar way as in the IBSS mode -- through the deferred insertion. The OCB mode uses a periodic 'housekeeping task' for expiration of disconnected STAs (in the similar manner as in the MESH mode). New Kconfig option for verbose OCB debugging outputs is added. Signed-off-by: Rostislav Lisovy

[PATCH 0/2 v3] cfg80211: mac80211: 802.11p OCB mode support

2014-11-03 Thread Rostislav Lisovy
to ocb_join * Many minor fixes Rostislav Lisovy (2): cfg80211: mac80211: 802.11p OCB mode handling mac80211: 802.11p OCB mode support include/net/cfg80211.h | 14 +++ include/net/mac80211.h | 2 + include/uapi/linux/nl80211.h | 11 ++ net/mac80211/Kconfig | 11 ++ net

[PATCH 2/2] mac80211: 802.11p OCB mode support

2014-11-03 Thread Rostislav Lisovy
in the similar way as in the IBSS mode -- through the deferred insertion. The OCB mode uses a periodic 'housekeeping task' for expiration of disconnected STAs (in the similar manner as in the MESH mode). New Kconfig option for verbose OCB debugging outputs is added. Signed-off-by: Rostislav Lisovy

[PATCH 1/2] cfg80211: mac80211: 802.11p OCB mode handling

2014-11-03 Thread Rostislav Lisovy
-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- include/net/cfg80211.h | 14 +++ include/uapi/linux/nl80211.h | 11 ++ net/mac80211/cfg.c | 1 + net/mac80211/chan.c | 2 + net/mac80211/iface.c | 5 +++ net/mac80211/util.c | 3 ++ net

Re: [PATCH 1/2] cfg80211: 802.11p OCB mode handling

2014-10-31 Thread Rostislav Lisovy
On Fri, 2014-10-31 at 14:13 +0100, Johannes Berg wrote: > On Thu, 2014-10-30 at 11:42 +0100, Rostislav Lisovy wrote: > > @@ -2093,6 +2102,7 @@ enum nl80211_iftype { > > NL80211_IFTYPE_P2P_CLIENT, > > NL80211_IFTYPE_P2P_GO, > > NL80211_IFTYPE_P2P_DEVICE,

Re: [PATCH 1/2] cfg80211: 802.11p OCB mode handling

2014-10-31 Thread Rostislav Lisovy
On Fri, 2014-10-31 at 14:13 +0100, Johannes Berg wrote: On Thu, 2014-10-30 at 11:42 +0100, Rostislav Lisovy wrote: @@ -2093,6 +2102,7 @@ enum nl80211_iftype { NL80211_IFTYPE_P2P_CLIENT, NL80211_IFTYPE_P2P_GO, NL80211_IFTYPE_P2P_DEVICE, + NL80211_IFTYPE_OCB

[PATCH 2/2] mac80211: 802.11p OCB mode support

2014-10-30 Thread Rostislav Lisovy
in the similar way as in the IBSS mode -- through the deferred insertion. The OCB mode uses a periodic 'housekeeping task' for expiration of disconnected STAs (in the similar manner as in the MESH mode). New Kconfig option for verbose OCB debugging outputs is added. Signed-off-by: Rostislav Lisovy

[PATCH 0/2 v2] cfg80211: mac80211: 802.11p OCB mode support

2014-10-30 Thread Rostislav Lisovy
any minor fixes Rostislav Lisovy (2): cfg80211: 802.11p OCB mode handling mac80211: 802.11p OCB mode support include/net/cfg80211.h | 14 +++ include/net/mac80211.h | 2 + include/uapi/linux/nl80211.h | 10 ++ net/mac80211/Kconfig | 11 ++ net/mac80211/Makef

[PATCH 1/2] cfg80211: 802.11p OCB mode handling

2014-10-30 Thread Rostislav Lisovy
are 'center frequency' and 'channel width (5/10 MHz)'. Signed-off-by: Rostislav Lisovy --- include/net/cfg80211.h | 14 +++ include/net/mac80211.h | 2 + include/uapi/linux/nl80211.h | 10 + net/wireless/Makefile| 2 +- net/wireless/chan.c | 8 net

[PATCH 0/2 v2] cfg80211: mac80211: 802.11p OCB mode support

2014-10-30 Thread Rostislav Lisovy
minor fixes Rostislav Lisovy (2): cfg80211: 802.11p OCB mode handling mac80211: 802.11p OCB mode support include/net/cfg80211.h | 14 +++ include/net/mac80211.h | 2 + include/uapi/linux/nl80211.h | 10 ++ net/mac80211/Kconfig | 11 ++ net/mac80211/Makefile

[PATCH 1/2] cfg80211: 802.11p OCB mode handling

2014-10-30 Thread Rostislav Lisovy
are 'center frequency' and 'channel width (5/10 MHz)'. Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- include/net/cfg80211.h | 14 +++ include/net/mac80211.h | 2 + include/uapi/linux/nl80211.h | 10 + net/wireless/Makefile| 2 +- net/wireless/chan.c

[PATCH 2/2] mac80211: 802.11p OCB mode support

2014-10-30 Thread Rostislav Lisovy
in the similar way as in the IBSS mode -- through the deferred insertion. The OCB mode uses a periodic 'housekeeping task' for expiration of disconnected STAs (in the similar manner as in the MESH mode). New Kconfig option for verbose OCB debugging outputs is added. Signed-off-by: Rostislav Lisovy

[PATCH v4] mtd: nand: omap: Synchronize the access to the ECC engine

2014-10-29 Thread Rostislav Lisovy
_alloc()") gpmc-nand driver supports multiple NAND flash devices connected to the single controller. Use global 'struct nand_hw_control' among multiple NAND instances to synchronize the access to the single ECC Engine. Tested with custom AM335x board using 2x NAND flash chips. Signed-off-

Re: [PATCH v3 2/2] mtd: nand: omap: Synchronize the access to the ECC engine

2014-10-29 Thread Rostislav Lisovy
On Thu, 2014-10-02 at 16:16 +0200, Rostislav Lisovy wrote: > The AM335x Technical Reference Manual (spruh73j.pdf) says > "Because the ECC engine includes only one accumulation context, > it can be allocated to only one chip-select at a time ... " > (7.1.3.3.12.3). Since t

[PATCH v2] mtd: spi-nor: Add support for Fujitsu MB85RS1MT FRAM

2014-10-29 Thread Rostislav Lisovy
Tested with this particular FRAM chip Signed-off-by: Rostislav Lisovy Acked-by: Marek Vasut --- Changes since v1: * Rebased to the newest linux-next drivers/mtd/spi-nor/spi-nor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi

[PATCH v2] mtd: spi-nor: Add support for Fujitsu MB85RS1MT FRAM

2014-10-29 Thread Rostislav Lisovy
Tested with this particular FRAM chip Signed-off-by: Rostislav Lisovy lis...@merica.cz Acked-by: Marek Vasut ma...@denx.de --- Changes since v1: * Rebased to the newest linux-next drivers/mtd/spi-nor/spi-nor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c

Re: [PATCH v3 2/2] mtd: nand: omap: Synchronize the access to the ECC engine

2014-10-29 Thread Rostislav Lisovy
On Thu, 2014-10-02 at 16:16 +0200, Rostislav Lisovy wrote: The AM335x Technical Reference Manual (spruh73j.pdf) says Because the ECC engine includes only one accumulation context, it can be allocated to only one chip-select at a time ... (7.1.3.3.12.3). Since the commit 97a288ba2cfa (ARM

[PATCH v4] mtd: nand: omap: Synchronize the access to the ECC engine

2014-10-29 Thread Rostislav Lisovy
driver supports multiple NAND flash devices connected to the single controller. Use global 'struct nand_hw_control' among multiple NAND instances to synchronize the access to the single ECC Engine. Tested with custom AM335x board using 2x NAND flash chips. Signed-off-by: Rostislav Lisovy lis

Re: [PATCH 1/4] mac80211: OCB mode + join and leave handling

2014-10-16 Thread Rostislav Lisovy
On Thu, 2014-10-16 at 18:33 +0200, Rostislav Lisovy wrote: > > > + mutex_lock(>local->mtx); > > > + ieee80211_vif_release_channel(sdata); > > > + mutex_unlock(>local->mtx); > > > + > > > + skb_queue_purge(>skb_queue)

Re: [PATCH 1/4] mac80211: OCB mode + join and leave handling

2014-10-16 Thread Rostislav Lisovy
Hello Johannes; Thanks for the thorough review. On Thu, 2014-10-09 at 10:23 +0200, Johannes Berg wrote: > On Thu, 2014-09-11 at 16:30 +0200, Rostislav Lisovy wrote: > > +++ b/net/mac80211/cfg.c > > @@ -229,6 +229,7 @@ static int ieee80211_add_key(struct wiphy *wiphy, > > s

Re: [PATCH 1/4] mac80211: OCB mode + join and leave handling

2014-10-16 Thread Rostislav Lisovy
Hello Johannes; Thanks for the thorough review. On Thu, 2014-10-09 at 10:23 +0200, Johannes Berg wrote: On Thu, 2014-09-11 at 16:30 +0200, Rostislav Lisovy wrote: +++ b/net/mac80211/cfg.c @@ -229,6 +229,7 @@ static int ieee80211_add_key(struct wiphy *wiphy, struct net_device *dev

Re: [PATCH 1/4] mac80211: OCB mode + join and leave handling

2014-10-16 Thread Rostislav Lisovy
On Thu, 2014-10-16 at 18:33 +0200, Rostislav Lisovy wrote: + mutex_lock(sdata-local-mtx); + ieee80211_vif_release_channel(sdata); + mutex_unlock(sdata-local-mtx); + + skb_queue_purge(sdata-skb_queue); + + del_timer_sync(sdata-u.ocb.housekeeping_timer

Re: [PATCH] drivers/staging/comedi/Kconfig: Let COMEDI_II_PCI20KC depend on HAS_IOMEM

2014-10-02 Thread Rostislav Lisovy
; > ---help--- > > Enable support for Intelligent Instruments PCI-20001C carrier > > PCI-20001, PCI-20006 and PCI-20341 > > This seems appropriate. > > Reviewed-by: H Hartley Sweeten > Since "egrep -irn "ioremap" drivers/staging/comedi/

[PATCH v3 2/2] mtd: nand: omap: Synchronize the access to the ECC engine

2014-10-02 Thread Rostislav Lisovy
_alloc()") gpmc-nand driver supports multiple NAND flash devices connected to the single controller. Use global 'struct nand_hw_control' among multiple NAND instances to synchronize the access to the single ECC Engine. Tested with custom AM335x board using 2x NAND flash chips. Signed-off-

Re: [PATCH v2 2/2] mtd: nand: omap: Synchronize access to the ECC engine

2014-10-02 Thread Rostislav Lisovy
Hello Roger; Thanks for the review. On Čt, 2014-10-02 at 15:51 +0300, Roger Quadros wrote: > Don't you think this approach is racy? > > IMHO the lock must be held across the entire page operation I still think it is done in this way. > i.e. > hold ecc lock > ecc.hwctl > chip->read/write_buf >

[PATCH v2 1/2] mtd: nand: omap: Do not use global variables

2014-10-02 Thread Rostislav Lisovy
Since the commit 97a288ba2cfa ("ARM: omap2+: gpmc-nand: Use dynamic platform_device_alloc()") gpmc-nand driver supports multiple NAND flash devices connected to the single controller. Remove global variable to make the code thread-safe. Signed-off-by: Rostislav Lisovy --- Changes sinc

[PATCH v2 2/2] mtd: nand: omap: Synchronize access to the ECC engine

2014-10-02 Thread Rostislav Lisovy
_alloc()") gpmc-nand driver supports multiple NAND flash devices connected to the single controller. Use mutexes to restrict access to the ECC engine for single read/write operation at a time. Tested with custom AM335x board using 2x NAND flash chips. Signed-off-by: Rostislav Lisovy --- Chang

[PATCH v2 2/2] mtd: nand: omap: Synchronize access to the ECC engine

2014-10-02 Thread Rostislav Lisovy
driver supports multiple NAND flash devices connected to the single controller. Use mutexes to restrict access to the ECC engine for single read/write operation at a time. Tested with custom AM335x board using 2x NAND flash chips. Signed-off-by: Rostislav Lisovy lis...@merica.cz --- Changes since

[PATCH v2 1/2] mtd: nand: omap: Do not use global variables

2014-10-02 Thread Rostislav Lisovy
Since the commit 97a288ba2cfa (ARM: omap2+: gpmc-nand: Use dynamic platform_device_alloc()) gpmc-nand driver supports multiple NAND flash devices connected to the single controller. Remove global variable to make the code thread-safe. Signed-off-by: Rostislav Lisovy lis...@merica.cz --- Changes

Re: [PATCH v2 2/2] mtd: nand: omap: Synchronize access to the ECC engine

2014-10-02 Thread Rostislav Lisovy
Hello Roger; Thanks for the review. On Čt, 2014-10-02 at 15:51 +0300, Roger Quadros wrote: Don't you think this approach is racy? IMHO the lock must be held across the entire page operation I still think it is done in this way. i.e. hold ecc lock ecc.hwctl chip-read/write_buf

[PATCH v3 2/2] mtd: nand: omap: Synchronize the access to the ECC engine

2014-10-02 Thread Rostislav Lisovy
driver supports multiple NAND flash devices connected to the single controller. Use global 'struct nand_hw_control' among multiple NAND instances to synchronize the access to the single ECC Engine. Tested with custom AM335x board using 2x NAND flash chips. Signed-off-by: Rostislav Lisovy lis

Re: [PATCH] drivers/staging/comedi/Kconfig: Let COMEDI_II_PCI20KC depend on HAS_IOMEM

2014-10-02 Thread Rostislav Lisovy
/drivers | wc -l shows 39 does it mean that this should be added to all the other drivers as well? Rostislav Lisovy -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

[PATCH 1/2] mtd: nand: omap: Do not use global variables

2014-10-01 Thread Rostislav Lisovy
Since the commit 97a288ba2cfa ("ARM: omap2+: gpmc-nand: Use dynamic platform_device_alloc()") gpmc-nand driver supports multiple NAND flash devices connected to the single controller. Remove global variable to make the code thread-safe. Signed-off-by: Rostislav Lisovy --- drivers/mtd/

[PATCH 2/2] mtd: nand: omap: Synchronize access to the ECC engine

2014-10-01 Thread Rostislav Lisovy
_alloc()") gpmc-nand driver supports multiple NAND flash devices connected to the single controller. Use spinlocks to restrict access to the ECC engine for single read/write operation at a time. Tested with custom AM335x board using 2x NAND flash chips. Signed-off-by: Rostislav Lisovy --- dr

[PATCH 2/2] mtd: nand: omap: Synchronize access to the ECC engine

2014-10-01 Thread Rostislav Lisovy
driver supports multiple NAND flash devices connected to the single controller. Use spinlocks to restrict access to the ECC engine for single read/write operation at a time. Tested with custom AM335x board using 2x NAND flash chips. Signed-off-by: Rostislav Lisovy lis...@merica.cz --- drivers/mtd

[PATCH 1/2] mtd: nand: omap: Do not use global variables

2014-10-01 Thread Rostislav Lisovy
Since the commit 97a288ba2cfa (ARM: omap2+: gpmc-nand: Use dynamic platform_device_alloc()) gpmc-nand driver supports multiple NAND flash devices connected to the single controller. Remove global variable to make the code thread-safe. Signed-off-by: Rostislav Lisovy lis...@merica.cz --- drivers

Re: [PATCH v2] watchdog: omap_wdt: Add 'early_disable' module parameter

2014-09-23 Thread Rostislav Lisovy
On Čt, 2014-09-18 at 21:12 -0700, Guenter Roeck wrote: > How about reading the OMAP_WATCHDOG_SPR register ? Unfortunately this would be not only extremely fragile (someone writes correct start sequence followed by some garbage -- WD is running and we are reading garbage) but according to some

[PATCH RESEND] mtd: spi-nor: Add support for Fujitsu MB85RS1MT FRAM

2014-09-23 Thread Rostislav Lisovy
Tested with this particular FRAM chip Signed-off-by: Rostislav Lisovy Acked-by: Marek Vasut --- drivers/mtd/spi-nor/spi-nor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index b5ad6be..a914be9 100644 --- a/drivers/mtd/spi

[PATCH RESEND] mtd: spi-nor: Add support for Fujitsu MB85RS1MT FRAM

2014-09-23 Thread Rostislav Lisovy
Tested with this particular FRAM chip Signed-off-by: Rostislav Lisovy lis...@merica.cz Acked-by: Marek Vasut ma...@denx.de --- drivers/mtd/spi-nor/spi-nor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index b5ad6be..a914be9

Re: [PATCH v2] watchdog: omap_wdt: Add 'early_disable' module parameter

2014-09-23 Thread Rostislav Lisovy
On Čt, 2014-09-18 at 21:12 -0700, Guenter Roeck wrote: How about reading the OMAP_WATCHDOG_SPR register ? Unfortunately this would be not only extremely fragile (someone writes correct start sequence followed by some garbage -- WD is running and we are reading garbage) but according to some

Re: [PATCH v2] watchdog: omap_wdt: Add 'early_disable' module parameter

2014-09-17 Thread Rostislav Lisovy
Hello Guenter; Thanks for the review. On Út, 2014-09-16 at 08:49 -0700, Guenter Roeck wrote: > How do you know that the watchdog was already running ? > Seems to me you are just making an assumption that it is running > without really knowing for sure. You are definitely right, however the OMAP

Re: [PATCH v2] watchdog: omap_wdt: Add 'early_disable' module parameter

2014-09-17 Thread Rostislav Lisovy
Hello Guenter; Thanks for the review. On Út, 2014-09-16 at 08:49 -0700, Guenter Roeck wrote: How do you know that the watchdog was already running ? Seems to me you are just making an assumption that it is running without really knowing for sure. You are definitely right, however the OMAP

[PATCH v2] watchdog: omap_wdt: Add 'early_disable' module parameter

2014-09-16 Thread Rostislav Lisovy
. This new feature is highly inspired by the w83627hf_wdt.c Signed-off-by: Rostislav Lisovy --- Changes since v1: * Fix Runtime PM device usage counter leaking (Guenter Roeck) * Remove the unnecessary message informing about "stopping the watchdog" (Guenter Roeck) * Fix prop

[PATCH v2] watchdog: omap_wdt: Add 'early_disable' module parameter

2014-09-16 Thread Rostislav Lisovy
. This new feature is highly inspired by the w83627hf_wdt.c Signed-off-by: Rostislav Lisovy lis...@merica.cz --- Changes since v1: * Fix Runtime PM device usage counter leaking (Guenter Roeck) * Remove the unnecessary message informing about stopping the watchdog (Guenter Roeck) * Fix proper

[PATCH 3/4] cfg80211: Join and Leave handling for OCB mode

2014-09-11 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy --- include/net/cfg80211.h | 11 +++ net/wireless/Makefile | 2 +- net/wireless/chan.c | 8 + net/wireless/core.h | 10 ++ net/wireless/ocb.c | 88 + net/wireless/rdev-ops.h | 21

[PATCH 1/4] mac80211: OCB mode + join and leave handling

2014-09-11 Thread Rostislav Lisovy
there are no extra configuration options besides the channel (center frequency and width) used for the communication. The channel must be known a priori. This is set when joining the network explicitly with the 'ocb join' command. Signed-off-by: Rostislav Lisovy --- include/net/mac80211.h | 2

[PATCH 2/4] mac80211: Use different EDCA config for OCB

2014-09-11 Thread Rostislav Lisovy
The IEEE 802.11p specifies different EDCA parameters for the OCB mode. Signed-off-by: Rostislav Lisovy --- net/mac80211/util.c | 27 ++- net/mac80211/wme.c | 4 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/net/mac80211/util.c b/net/mac80211

[PATCH 0/4] 802.11p OCB mode

2014-09-11 Thread Rostislav Lisovy
restricting the OCB mode to the 5.9 GHz band Tested with the ath9k card with slightly modified driver. User-space configuration utilities are not part of this patch. Rostislav Lisovy (4): mac80211: OCB mode + join and leave handling mac80211: Use different EDCA config for OCB cfg80211: Join

[PATCH 4/4] nl80211: Join and Leave handling for OCB mode

2014-09-11 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy --- include/uapi/linux/nl80211.h | 8 net/wireless/nl80211.c | 47 2 files changed, 55 insertions(+) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index cdf9ba4..4b39455

[PATCH 4/4] nl80211: Join and Leave handling for OCB mode

2014-09-11 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- include/uapi/linux/nl80211.h | 8 net/wireless/nl80211.c | 47 2 files changed, 55 insertions(+) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h

[PATCH 0/4] 802.11p OCB mode

2014-09-11 Thread Rostislav Lisovy
restricting the OCB mode to the 5.9 GHz band Tested with the ath9k card with slightly modified driver. User-space configuration utilities are not part of this patch. Rostislav Lisovy (4): mac80211: OCB mode + join and leave handling mac80211: Use different EDCA config for OCB cfg80211: Join

[PATCH 1/4] mac80211: OCB mode + join and leave handling

2014-09-11 Thread Rostislav Lisovy
there are no extra configuration options besides the channel (center frequency and width) used for the communication. The channel must be known a priori. This is set when joining the network explicitly with the 'ocb join' command. Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- include

[PATCH 2/4] mac80211: Use different EDCA config for OCB

2014-09-11 Thread Rostislav Lisovy
The IEEE 802.11p specifies different EDCA parameters for the OCB mode. Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- net/mac80211/util.c | 27 ++- net/mac80211/wme.c | 4 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/net

[PATCH 3/4] cfg80211: Join and Leave handling for OCB mode

2014-09-11 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- include/net/cfg80211.h | 11 +++ net/wireless/Makefile | 2 +- net/wireless/chan.c | 8 + net/wireless/core.h | 10 ++ net/wireless/ocb.c | 88 + net

[PATCH] mtd: spi-nor: Add support for Fujitsu MB85RS1MT FRAM

2014-09-10 Thread Rostislav Lisovy
Tested with this particular FRAM chip Signed-off-by: Rostislav Lisovy --- drivers/mtd/spi-nor/spi-nor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index b5ad6be..a914be9 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b

[PATCH] mtd: spi-nor: Add support for Fujitsu MB85RS1MT FRAM

2014-09-10 Thread Rostislav Lisovy
Tested with this particular FRAM chip Signed-off-by: Rostislav Lisovy lis...@merica.cz --- drivers/mtd/spi-nor/spi-nor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index b5ad6be..a914be9 100644 --- a/drivers/mtd/spi-nor

[PATCH] watchdog: omap_wdt: Add 'early_disable' module parameter

2014-09-09 Thread Rostislav Lisovy
. This new feature is highly inspired by the w83627hf_wdt.c Signed-off-by: Rostislav Lisovy --- drivers/watchdog/omap_wdt.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 3691b15..8f4cabe 100644

[PATCH] watchdog: omap_wdt: Add 'early_disable' module parameter

2014-09-09 Thread Rostislav Lisovy
. This new feature is highly inspired by the w83627hf_wdt.c Signed-off-by: Rostislav Lisovy lis...@merica.cz --- drivers/watchdog/omap_wdt.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 3691b15

[PATCH RESEND] ARM: PCI: Use PCI_CLASS_* defines for PCI class

2014-09-08 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy Reviewed-by: Yijing Wang --- The header file include/linux/pci_ids.h defines #define PCI_CLASS_BRIDGE_OTHER  0x0680 #define PCI_CLASS_SYSTEM_DMA    0x0801 ((struct pci_dev*)dev)->class corresponds to the 3 bytes Class code in the PCI Configurat

[PATCH RESEND] ARM: PCI: Use PCI_CLASS_* defines for PCI class

2014-09-08 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy lis...@gmail.com Reviewed-by: Yijing Wang wangyij...@huawei.com --- The header file include/linux/pci_ids.h defines #define PCI_CLASS_BRIDGE_OTHER  0x0680 #define PCI_CLASS_SYSTEM_DMA    0x0801 ((struct pci_dev*)dev)-class corresponds to the 3 bytes

Re: [PATCH] ARM: PCI: Use PCI_CLASS_* defines for PCI class

2014-08-25 Thread Rostislav Lisovy
On Mon, 2014-08-04 at 11:31 +0200, Rostislav Lisovy wrote: > On Sun, 2014-08-03 at 09:16 -0400, Sasha Levin wrote: > > > - /* FIXME: add defines for class 0x68000 and 0x80103 */ > > > if ((dev->class >> 8) == PCI_CLASS_BRIDGE_HOST || > &g

Re: [PATCH] mac80211: Parse IEEE80211_RADIOTAP_RATE on TX

2014-08-25 Thread Rostislav Lisovy
On Mon, 2014-07-21 at 12:20 +0200, Johannes Berg wrote: > On Thu, 2014-07-10 at 14:27 +0200, Rostislav Lisovy wrote: > > Add support for parsing radiotap field IEEE80211_RADIOTAP_RATE > > for transmitted frames. Use the provided datarate value in > > info->control.rates[]

Re: [PATCH] mac80211: Parse IEEE80211_RADIOTAP_RATE on TX

2014-08-25 Thread Rostislav Lisovy
On Mon, 2014-07-21 at 12:20 +0200, Johannes Berg wrote: On Thu, 2014-07-10 at 14:27 +0200, Rostislav Lisovy wrote: Add support for parsing radiotap field IEEE80211_RADIOTAP_RATE for transmitted frames. Use the provided datarate value in info-control.rates[] array so it will be used

Re: [PATCH] ARM: PCI: Use PCI_CLASS_* defines for PCI class

2014-08-25 Thread Rostislav Lisovy
On Mon, 2014-08-04 at 11:31 +0200, Rostislav Lisovy wrote: On Sun, 2014-08-03 at 09:16 -0400, Sasha Levin wrote: - /* FIXME: add defines for class 0x68000 and 0x80103 */ if ((dev-class 8) == PCI_CLASS_BRIDGE_HOST || - dev-class == 0x68000 || - dev-class

Re: [PATCH] ARM: PCI: Use PCI_CLASS_* defines for PCI class

2014-08-04 Thread Rostislav Lisovy
On Sun, 2014-08-03 at 09:16 -0400, Sasha Levin wrote: > > - /* FIXME: add defines for class 0x68000 and 0x80103 */ > > if ((dev->class >> 8) == PCI_CLASS_BRIDGE_HOST || > > - dev->class == 0x68000 || > > - dev->class == 0x80103) { > > + dev->class ==

Re: [PATCH] ARM: PCI: Use PCI_CLASS_* defines for PCI class

2014-08-04 Thread Rostislav Lisovy
On Sun, 2014-08-03 at 09:16 -0400, Sasha Levin wrote: - /* FIXME: add defines for class 0x68000 and 0x80103 */ if ((dev-class 8) == PCI_CLASS_BRIDGE_HOST || - dev-class == 0x68000 || - dev-class == 0x80103) { + dev-class == (PCI_CLASS_BRIDGE_OTHER 8)

[PATCH] ARM: PCI: Use PCI_CLASS_* defines for PCI class

2014-08-01 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy --- arch/arm/kernel/bios32.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 17a26c1..e511ad1 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c @@ -255,10

[PATCH] ARM: PCI: Use PCI_CLASS_* defines for PCI class

2014-08-01 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy lis...@gmail.com --- arch/arm/kernel/bios32.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 17a26c1..e511ad1 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c

Re: [PATCH v2] cfg80211: Try multiple bandwidths when checking usable channels.

2014-07-24 Thread Rostislav Lisovy
On Thu, 2014-07-24 at 14:43 +0200, Rostislav Lisovy wrote: > diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h > index e46c437..919f759 100644 > --- a/include/net/cfg80211.h > +++ b/include/net/cfg80211.h > @@ -3679,6 +3679,8 @@ void wiphy_apply_custom_regulatory(stru

[PATCH v2] cfg80211: Try multiple bandwidths when checking usable channels.

2014-07-24 Thread Rostislav Lisovy
en someone will try to use that particular channel with the maximum bandwidth allowed (e.g. 20 MHz), the resulting channel will not be in the range of the band anymore (will overlap the border). Signed-off-by: Rostislav Lisovy --- Patch applies to the mac80211 repository (since the fau

[PATCH v2] cfg80211: Try multiple bandwidths when checking usable channels.

2014-07-24 Thread Rostislav Lisovy
will try to use that particular channel with the maximum bandwidth allowed (e.g. 20 MHz), the resulting channel will not be in the range of the band anymore (will overlap the border). Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- Patch applies to the mac80211 repository (since

Re: [PATCH v2] cfg80211: Try multiple bandwidths when checking usable channels.

2014-07-24 Thread Rostislav Lisovy
On Thu, 2014-07-24 at 14:43 +0200, Rostislav Lisovy wrote: diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index e46c437..919f759 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -3679,6 +3679,8 @@ void wiphy_apply_custom_regulatory(struct wiphy *wiphy

[PATCH] cfg80211: Try multiple bandwidths when checking usable channels.

2014-07-10 Thread Rostislav Lisovy
en someone will try to use that particular channel with the maximum bandwidth allowed (e.g. 20 MHz), the resulting channel will not be in the range of the band anymore. Signed-off-by: Rostislav Lisovy --- include/net/cfg80211.h | 8 +- net/wireless/reg.c

[PATCH] mac80211: Parse IEEE80211_RADIOTAP_RATE on TX

2014-07-10 Thread Rostislav Lisovy
Add support for parsing radiotap field IEEE80211_RADIOTAP_RATE for transmitted frames. Use the provided datarate value in info->control.rates[] array so it will be used for transmission. Signed-off-by: Rostislav Lisovy --- This feature is essential for Transmit Datarate Control (TDC) in fut

[PATCH] mac80211: Parse IEEE80211_RADIOTAP_RATE on TX

2014-07-10 Thread Rostislav Lisovy
Add support for parsing radiotap field IEEE80211_RADIOTAP_RATE for transmitted frames. Use the provided datarate value in info-control.rates[] array so it will be used for transmission. Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- This feature is essential for Transmit

[PATCH] cfg80211: Try multiple bandwidths when checking usable channels.

2014-07-10 Thread Rostislav Lisovy
will try to use that particular channel with the maximum bandwidth allowed (e.g. 20 MHz), the resulting channel will not be in the range of the band anymore. Signed-off-by: Rostislav Lisovy rostislav.lis...@fel.cvut.cz --- include/net/cfg80211.h | 8 +- net/wireless/reg.c | 202

[PATCH RESEND] ARM: omap2+: gpmc-nand: Use dynamic platform_device_alloc()

2014-07-09 Thread Rostislav Lisovy
se up to 8 NAND devices connected to the GPMC controller. Signed-off-by: Rostislav Lisovy --- Tested on custom AM335x board with two different NAND chips (128 + 256 MiB) using GPMC configuration in FDT -- behaves correctly. arch/arm/mach-omap2/gpmc-nand.c | 79 +++---

[PATCH RESEND] ARM: omap2+: gpmc-nand: Use dynamic platform_device_alloc()

2014-07-09 Thread Rostislav Lisovy
NAND devices connected to the GPMC controller. Signed-off-by: Rostislav Lisovy lis...@merica.cz --- Tested on custom AM335x board with two different NAND chips (128 + 256 MiB) using GPMC configuration in FDT -- behaves correctly. arch/arm/mach-omap2/gpmc-nand.c | 79

[RFC] Try multiple bandwidths when checking usable channels.

2014-06-27 Thread Rostislav Lisovy
flags -- because the maximum allowed bandwidth for the band 2402--2472 is 40 MHz, we allowed 20 MHz operation which is completely wrong since "2467 MHz" (Channel 12) + "10 MHz" (1/2 of the BW) is no more within the allowed 2402--2472. Rostislav Lisovy (1): Try explicitly bandwi

[RFC] Try multiple bandwidths when checking usable channels.

2014-06-27 Thread Rostislav Lisovy
bandwidth allowed by the particular regulatory rule (which may be greater than the 5 MHz). When someone will try to use the channel with the maximum bandwidth allowed (e.g. 20 MHz), the resulting channel will not be in the range of the band anymore. Signed-off-by: Rostislav Lisovy --- include/net

  1   2   >