Re: [PATCH 8/9] arm: twr-k70f120m: extend Freescale eDMA driver with ability to support Kinetis SoC

2015-06-24 Thread Paul Osmialowski
Hi Vinod, Tanks for your comments. Actually, fsl-lpuart driver is done the way you propose to rework this one. I'll consider this during my work on the second iteration. On Wed, 24 Jun 2015, Vinod Koul wrote: On Tue, Jun 23, 2015 at 11:19:46PM +0200, Paul Osmialowski wrote: Surprisingly

Re: [PATCH 7/9] arm: twr-k70f120m: IOMUX driver for Kinetis SoC

2015-06-24 Thread Paul Osmialowski
Hi Paul, Thanks for your comments. I'll make it tristate. On Wed, 24 Jun 2015, Paul Bolle wrote: On Tue, 2015-06-23 at 23:19 +0200, Paul Osmialowski wrote: --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig +config PINCTRL_KINETIS + bool Kinetis pinctrl

Re: [PATCH 6/9] arm: twr-k70f120m: clock source drivers for Kinetis SoC

2015-06-23 Thread Paul Osmialowski
Hi Stephen, Thanks for the valuable input - all of those points are now on my checklist for the work on the second iteration of this patchset. On Tue, 23 Jun 2015, Stephen Boyd wrote: On 06/23/2015 02:19 PM, Paul Osmialowski wrote: diff --git a/drivers/clk/clk-kinetis.c b/drivers/clk/clk

Re: [PATCH 1/9] arm: select different compiler flags for ARM CortexM3

2015-06-23 Thread Paul Osmialowski
, Paul Osmialowski wrote: This one is inspired by two commits published on Emcraft git repo: https://github.com/EmcraftSystems/linux-emcraft.git 1) 6302b692f570ff9d5645a6e72c11f87b0c1aa409 RT #62654. Fixed kernel crashes while running httpd by enabling "-mfix-cortex-m3-ldrd" compi

Re: [PATCH 5/9] arm: twr-k70f120m: basic support for Kinetis TWR-K70F120M

2015-06-23 Thread Paul Osmialowski
Hi Arnd, Thanks for all of your input. Your comments will all be considered during my works on the second iteration of this patchset. On Wed, 24 Jun 2015, Arnd Bergmann wrote: On Tuesday 23 June 2015 23:19:43 Paul Osmialowski wrote: @@ -1740,7 +1752,7 @@ source "mm/Kconfig&quo

[PATCH 6/9] arm: twr-k70f120m: clock source drivers for Kinetis SoC

2015-06-23 Thread Paul Osmialowski
Based on K70P256M150SF3RM.pdf Signed-off-by: Paul Osmialowski --- .../devicetree/bindings/clock/kinetis-clock.txt| 25 ++ .../bindings/timer/fsl,kinetis-pit-timer.txt | 18 ++ arch/arm/Kconfig | 1 + arch/arm/boot/dts/kinetis-twr-k70f120m.dts

[PATCH 7/9] arm: twr-k70f120m: IOMUX driver for Kinetis SoC

2015-06-23 Thread Paul Osmialowski
This is very cheap and simple implementation of pinctrl driver for Kinetis SoC - its primary role is to provide means for enabling UART fuctionality on I/O PORT_E which will be utilized by the commits yet to come. Signed-off-by: Paul Osmialowski --- .../bindings/pinctrl/fsl,kinetis-pinctrl.txt

[PATCH 3/9] arm: add call to CPU idle quirks handler

2015-06-23 Thread Paul Osmialowski
Some SoCs need additional actions to be performed after arch idle, e.g. Kinetis requires invalidation of the I/D bus cache. Such handler could be held in provided header file. Signed-off-by: Paul Osmialowski --- arch/arm/Kconfig | 7 +++ arch/arm/kernel/process.c | 7 +++ 2

[PATCH 1/9] arm: select different compiler flags for ARM CortexM3

2015-06-23 Thread Paul Osmialowski
nly "-mcpu=cortex-m3" to make sure only the correct instructions will be generated. by: Sergei Poselenov I reworked these patches to make them less intrusive. Signed-off-by: Paul Osmialowski --- arch/arm/Kconfig| 2 +- arch/arm/Makefile | 1 + arch/arm/mm/Kconfig | 11 ++-

[PATCH 0/9] [New BSP] Add initial support for Freescale Kinetis TWR-K70F120M development kit

2015-06-23 Thread Paul Osmialowski
ine myself doing all this stuff without it. Paul Osmialowski (9): arm: select different compiler flags for ARM CortexM3 arm: do not place huge encoder tables on stack when it is too small arm: add call to CPU idle quirks handler arm: allow copying of vector table to internal SRAM memory

[PATCH 2/9] arm: do not place huge encoder tables on stack when it is too small

2015-06-23 Thread Paul Osmialowski
Since stack on Cortex-M3 is too small, we need configuration option to avoid using it for huge encoder tables of zlib. Signed-off-by: Paul Osmialowski --- arch/arm/Kconfig-nommu | 4 lib/zlib_inflate/inflate.c | 5 + 2 files changed, 9 insertions(+) diff --git a/arch/arm/Kconfig

[PATCH 5/9] arm: twr-k70f120m: basic support for Kinetis TWR-K70F120M

2015-06-23 Thread Paul Osmialowski
This one is inspired a serie by commits published on Emcraft git repo: https://github.com/EmcraftSystems/linux-emcraft.git Entry commit: f014da1df860ad702d923c95cb97e068bd302cb0 RT75957. twr-k70f120m: basic support by: Alexander Potashev Signed-off-by: Paul Osmialowski --- Documentation

[PATCH 9/9] arm: twr-k70f120m: extend Freescale lpuart driver with ability to support Kinetis SoC

2015-06-23 Thread Paul Osmialowski
that enabling tx DMA resulted in messy output, so I didn't configure it in the .dts file - however nothing in the code prevents one from doing so. Also note that original reference UART driver did not implement tx DMA at all. Signed-off-by: Paul Osmialowski --- .../devicetree/bindings/serial/fsl-lpuart.txt

[PATCH 8/9] arm: twr-k70f120m: extend Freescale eDMA driver with ability to support Kinetis SoC

2015-06-23 Thread Paul Osmialowski
. Signed-off-by: Paul Osmialowski --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 38 +- arch/arm/Kconfig | 4 ++ arch/arm/boot/dts/kinetis.dtsi | 34 + arch/arm/mach-kinetis/include/mach/memory.h| 61

[PATCH 4/9] arm: allow copying of vector table to internal SRAM memory

2015-06-23 Thread Paul Osmialowski
RAM memory, controlled by Bit 29 in the Vector Table Base register. This implies that the OS vector table needs to be copied to the internal RAM. New option CONFIG_COPY_VECTOR_TABLE_TO_SRAM_ADDR allows specification of the desired destination for the OS vector table. Signed-off-by: Paul Osmialowski

[PATCH 5/9] arm: twr-k70f120m: basic support for Kinetis TWR-K70F120M

2015-06-23 Thread Paul Osmialowski
This one is inspired a serie by commits published on Emcraft git repo: https://github.com/EmcraftSystems/linux-emcraft.git Entry commit: f014da1df860ad702d923c95cb97e068bd302cb0 RT75957. twr-k70f120m: basic support by: Alexander Potashev aspotas...@emcraft.com Signed-off-by: Paul Osmialowski

[PATCH 1/9] arm: select different compiler flags for ARM CortexM3

2015-06-23 Thread Paul Osmialowski
=cortex-m3 to make sure only the correct instructions will be generated. by: Sergei Poselenov sposele...@emcraft.com I reworked these patches to make them less intrusive. Signed-off-by: Paul Osmialowski paw...@king.net.pl --- arch/arm/Kconfig| 2 +- arch/arm/Makefile | 1 + arch/arm/mm

[PATCH 9/9] arm: twr-k70f120m: extend Freescale lpuart driver with ability to support Kinetis SoC

2015-06-23 Thread Paul Osmialowski
...@emcraft.com Note that enabling tx DMA resulted in messy output, so I didn't configure it in the .dts file - however nothing in the code prevents one from doing so. Also note that original reference UART driver did not implement tx DMA at all. Signed-off-by: Paul Osmialowski paw...@king.net.pl

[PATCH 8/9] arm: twr-k70f120m: extend Freescale eDMA driver with ability to support Kinetis SoC

2015-06-23 Thread Paul Osmialowski
functions. Signed-off-by: Paul Osmialowski paw...@king.net.pl --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 38 +- arch/arm/Kconfig | 4 ++ arch/arm/boot/dts/kinetis.dtsi | 34 + arch/arm/mach-kinetis/include/mach

[PATCH 0/9] [New BSP] Add initial support for Freescale Kinetis TWR-K70F120M development kit

2015-06-23 Thread Paul Osmialowski
myself doing all this stuff without it. Paul Osmialowski (9): arm: select different compiler flags for ARM CortexM3 arm: do not place huge encoder tables on stack when it is too small arm: add call to CPU idle quirks handler arm: allow copying of vector table to internal SRAM memory arm

[PATCH 2/9] arm: do not place huge encoder tables on stack when it is too small

2015-06-23 Thread Paul Osmialowski
Since stack on Cortex-M3 is too small, we need configuration option to avoid using it for huge encoder tables of zlib. Signed-off-by: Paul Osmialowski paw...@king.net.pl --- arch/arm/Kconfig-nommu | 4 lib/zlib_inflate/inflate.c | 5 + 2 files changed, 9 insertions(+) diff --git

[PATCH 4/9] arm: allow copying of vector table to internal SRAM memory

2015-06-23 Thread Paul Osmialowski
or in the internal SRAM memory, controlled by Bit 29 in the Vector Table Base register. This implies that the OS vector table needs to be copied to the internal RAM. New option CONFIG_COPY_VECTOR_TABLE_TO_SRAM_ADDR allows specification of the desired destination for the OS vector table. Signed-off-by: Paul

[PATCH 3/9] arm: add call to CPU idle quirks handler

2015-06-23 Thread Paul Osmialowski
Some SoCs need additional actions to be performed after arch idle, e.g. Kinetis requires invalidation of the I/D bus cache. Such handler could be held in provided mach/idle.h header file. Signed-off-by: Paul Osmialowski paw...@king.net.pl --- arch/arm/Kconfig | 7 +++ arch/arm

[PATCH 7/9] arm: twr-k70f120m: IOMUX driver for Kinetis SoC

2015-06-23 Thread Paul Osmialowski
This is very cheap and simple implementation of pinctrl driver for Kinetis SoC - its primary role is to provide means for enabling UART fuctionality on I/O PORT_E which will be utilized by the commits yet to come. Signed-off-by: Paul Osmialowski paw...@king.net.pl --- .../bindings/pinctrl/fsl

[PATCH 6/9] arm: twr-k70f120m: clock source drivers for Kinetis SoC

2015-06-23 Thread Paul Osmialowski
Based on K70P256M150SF3RM.pdf Signed-off-by: Paul Osmialowski paw...@king.net.pl --- .../devicetree/bindings/clock/kinetis-clock.txt| 25 ++ .../bindings/timer/fsl,kinetis-pit-timer.txt | 18 ++ arch/arm/Kconfig | 1 + arch/arm/boot/dts/kinetis-twr

Re: [PATCH 6/9] arm: twr-k70f120m: clock source drivers for Kinetis SoC

2015-06-23 Thread Paul Osmialowski
Hi Stephen, Thanks for the valuable input - all of those points are now on my checklist for the work on the second iteration of this patchset. On Tue, 23 Jun 2015, Stephen Boyd wrote: On 06/23/2015 02:19 PM, Paul Osmialowski wrote: diff --git a/drivers/clk/clk-kinetis.c b/drivers/clk/clk

Re: [PATCH 5/9] arm: twr-k70f120m: basic support for Kinetis TWR-K70F120M

2015-06-23 Thread Paul Osmialowski
Hi Arnd, Thanks for all of your input. Your comments will all be considered during my works on the second iteration of this patchset. On Wed, 24 Jun 2015, Arnd Bergmann wrote: On Tuesday 23 June 2015 23:19:43 Paul Osmialowski wrote: @@ -1740,7 +1752,7 @@ source mm/Kconfig config

Re: [PATCH 1/9] arm: select different compiler flags for ARM CortexM3

2015-06-23 Thread Paul Osmialowski
, Paul Osmialowski wrote: This one is inspired by two commits published on Emcraft git repo: https://github.com/EmcraftSystems/linux-emcraft.git 1) 6302b692f570ff9d5645a6e72c11f87b0c1aa409 RT #62654. Fixed kernel crashes while running httpd by enabling -mfix-cortex-m3-ldrd compiler option, which

Re: [RFC PATCH] kdbus: move all kdbus headers to include/linux/kdbus

2015-03-25 Thread Paul Osmialowski
Hi, First of all, I'm sorry for this no-subject covering letter. Accidents never happen only in a perfect world. On Wed, 25 Mar 2015, David Herrmann wrote: I'd prefer if we only move the required structure definitions into a separate header. There is no reason to export all internal entry

[RFC PATCH] kdbus: move all kdbus headers to include/linux/kdbus

2015-03-25 Thread Paul Osmialowski
These headers are required to implement LSM hooks for kdbus and possibly other things that might deal with kdbus. Signed-off-by: Paul Osmialowski --- include/linux/kdbus/bus.h| 101 +++ include/linux/kdbus/connection.h | 257 +++ include

[no subject]

2015-03-25 Thread Paul Osmialowski
This humble patch for linux-next is a first small step towards further attempts to add LSM hooks for kdbus. In order to implement useful callbacks within given LSM (SMACK, SELinux) knowledge about kdbus structures defined in these headers must be easily accessible. Therefore these headers must be

[no subject]

2015-03-25 Thread Paul Osmialowski
This humble patch for linux-next is a first small step towards further attempts to add LSM hooks for kdbus. In order to implement useful callbacks within given LSM (SMACK, SELinux) knowledge about kdbus structures defined in these headers must be easily accessible. Therefore these headers must be

[RFC PATCH] kdbus: move all kdbus headers to include/linux/kdbus

2015-03-25 Thread Paul Osmialowski
These headers are required to implement LSM hooks for kdbus and possibly other things that might deal with kdbus. Signed-off-by: Paul Osmialowski p.osmialo...@samsung.com --- include/linux/kdbus/bus.h| 101 +++ include/linux/kdbus/connection.h | 257

Re: [RFC PATCH] kdbus: move all kdbus headers to include/linux/kdbus

2015-03-25 Thread Paul Osmialowski
Hi, First of all, I'm sorry for this no-subject covering letter. Accidents never happen only in a perfect world. On Wed, 25 Mar 2015, David Herrmann wrote: I'd prefer if we only move the required structure definitions into a separate header. There is no reason to export all internal entry

[PATCH RESEND] mmc: sdhci-s3c: solve problem with sleeping in atomic context

2015-02-04 Thread Paul Osmialowski
k); Note that since sdhci_s3c_set_clock() sets SDHCI_CLOCK_CARD_EN, proposed change first resets this bit. It is reset anyway (by setting SDHCI_CLOCK_INT_EN bit only) after call to clk_set_rate() in order to wait for the clock to stabilize and is set again as soon as the clock becomes stable. Signed-off

[PATCH RESEND] mmc: sdhci-s3c: solve problem with sleeping in atomic context

2015-02-04 Thread Paul Osmialowski
bit only) after call to clk_set_rate() in order to wait for the clock to stabilize and is set again as soon as the clock becomes stable. Signed-off-by: Paul Osmialowski p.osmialo...@samsung.com --- drivers/mmc/host/sdhci-s3c.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc

Re: [RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-20 Thread Paul Osmialowski
On Mon, 19 Jan 2015, Mark Brown wrote: On Mon, Jan 19, 2015 at 10:31:22AM +0100, Paul Osmialowski wrote: On Fri, 16 Jan 2015, Mark Brown wrote: What I'm saying is that I want to understand this change from a point of view that isn't tied to I2C - at the regmap level what is this doing

Re: [RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-20 Thread Paul Osmialowski
On Mon, 19 Jan 2015, Mark Brown wrote: On Mon, Jan 19, 2015 at 10:31:22AM +0100, Paul Osmialowski wrote: On Fri, 16 Jan 2015, Mark Brown wrote: What I'm saying is that I want to understand this change from a point of view that isn't tied to I2C - at the regmap level what is this doing

[PATCH] i2c: s3c2410: fix ABBA deadlock by keeping clock prepared

2015-01-19 Thread Paul Osmialowski
've replaced this call with clk_disable() and I've added clk_unprepare() call in s3c24xx_i2c_remove(). The s3c24xx_i2c_xfer() function now uses clk_enable() instead of clk_prepare_enable() (and clk_disable() instead of clk_unprepare_disable()). Signed-off-by: Paul Osmialowski --- drivers/i2c/bus

Re: [RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-19 Thread Paul Osmialowski
On Fri, 16 Jan 2015, Mark Brown wrote: On Fri, Jan 16, 2015 at 06:36:14PM +0100, Paul Osmialowski wrote: On Fri, 16 Jan 2015, Mark Brown wrote: I don't know what this means, sorry. I'm also very worried about the fact that this is being discussed purely in terms of I2C - why would

[PATCH] i2c: s3c2410: fix ABBA deadlock by keeping clock prepared

2015-01-19 Thread Paul Osmialowski
() and I've added clk_unprepare() call in s3c24xx_i2c_remove(). The s3c24xx_i2c_xfer() function now uses clk_enable() instead of clk_prepare_enable() (and clk_disable() instead of clk_unprepare_disable()). Signed-off-by: Paul Osmialowski p.osmialo...@samsung.com --- drivers/i2c/busses/i2c-s3c2410.c

Re: [RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-19 Thread Paul Osmialowski
On Fri, 16 Jan 2015, Mark Brown wrote: On Fri, Jan 16, 2015 at 06:36:14PM +0100, Paul Osmialowski wrote: On Fri, 16 Jan 2015, Mark Brown wrote: I don't know what this means, sorry. I'm also very worried about the fact that this is being discussed purely in terms of I2C - why would

Re: [RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-16 Thread Paul Osmialowski
On Fri, 16 Jan 2015, Mark Brown wrote: On Fri, Jan 16, 2015 at 03:39:53PM +0100, Paul Osmialowski wrote: This uses the enhancement of i2c API in order to address following problem caused by circular lock dependency: Please don't just dump enormous backtraces into commit messages

[RFC 1/3] i2c: Enhancement of i2c API to address circular lock dependency problem

2015-01-16 Thread Paul Osmialowski
her places: old behaviour is kept preserved. Anyone who requires this new way of using i2c transfer can adapt their drivers voluntarily. Separate commit adapts regmap to use this new feature. Signed-off-by: Paul Osmialowski --- Documentation/i2c/writing-clients | 15 ++ drivers/i2c/i2c-core.c

[RFC 3/3] i2c: s3c2410: Adopt i2c-s3c2410 driver for new enhancement of i2c API

2015-01-16 Thread Paul Osmialowski
This adopts i2c-s3c2410 driver for new enhancement of i2c API that exposes preparation and unpreparation stages of i2c transfer. Signed-off-by: Paul Osmialowski --- drivers/i2c/busses/i2c-s3c2410.c | 69 1 file changed, 63 insertions(+), 6 deletions

[RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-16 Thread Paul Osmialowski
ed i2c transfer preparation and unpreparation stages. Note that this change does not require modifications in other places. Signed-off-by: Paul Osmialowski --- drivers/base/regmap/internal.h | 2 + drivers/base/regmap/regmap-i2c.c | 18 +++ drivers/base/regmap/reg

[PATCH] mmc: sdhci-s3c: solve problem with sleeping in atomic context

2015-01-16 Thread Paul Osmialowski
k); Note that since sdhci_s3c_set_clock() sets SDHCI_CLOCK_CARD_EN, proposed change first resets this bit. It is reset anyway (by setting SDHCI_CLOCK_INT_EN bit only) after call to clk_set_rate() in order to wait for the clock to stabilize and is set again as soon as the clock becomes stable. Signed-off

Re: [RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-16 Thread Paul Osmialowski
On Fri, 16 Jan 2015, Mark Brown wrote: On Fri, Jan 16, 2015 at 03:39:53PM +0100, Paul Osmialowski wrote: This uses the enhancement of i2c API in order to address following problem caused by circular lock dependency: Please don't just dump enormous backtraces into commit messages

[PATCH] mmc: sdhci-s3c: solve problem with sleeping in atomic context

2015-01-16 Thread Paul Osmialowski
only) after call to clk_set_rate() in order to wait for the clock to stabilize and is set again as soon as the clock becomes stable. Signed-off-by: Paul Osmialowski p.osmialo...@samsung.com --- drivers/mmc/host/sdhci-s3c.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc

[RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-16 Thread Paul Osmialowski
-i2c make use of exposed i2c transfer preparation and unpreparation stages. Note that this change does not require modifications in other places. Signed-off-by: Paul Osmialowski p.osmialo...@samsung.com --- drivers/base/regmap/internal.h | 2 + drivers/base/regmap/regmap-i2c.c | 18

[RFC 3/3] i2c: s3c2410: Adopt i2c-s3c2410 driver for new enhancement of i2c API

2015-01-16 Thread Paul Osmialowski
This adopts i2c-s3c2410 driver for new enhancement of i2c API that exposes preparation and unpreparation stages of i2c transfer. Signed-off-by: Paul Osmialowski p.osmialo...@samsung.com --- drivers/i2c/busses/i2c-s3c2410.c | 69 1 file changed, 63

[RFC 1/3] i2c: Enhancement of i2c API to address circular lock dependency problem

2015-01-16 Thread Paul Osmialowski
modifications in other places: old behaviour is kept preserved. Anyone who requires this new way of using i2c transfer can adapt their drivers voluntarily. Separate commit adapts regmap to use this new feature. Signed-off-by: Paul Osmialowski p.osmialo...@samsung.com --- Documentation/i2c/writing-clients

<    1   2   3