[PATCH] dma: of-dma: check OF pointer property before dereferencing it

2013-04-15 Thread Paolo Pisati
Signed-off-by: Paolo Pisati paolo.pis...@canonical.com --- drivers/dma/of-dma.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c index 69d04d2..9628298 100644 --- a/drivers/dma/of-dma.c +++ b/drivers/dma/of-dma.c @@ -91,6

[PATCH] dma: of-dma: check OF pointer property before dereferencing

2013-04-15 Thread Paolo Pisati
] (kernel_init+0x8/0xe4) [c02bb87c] (kernel_init+0x8/0xe4) from [c000dfd8] (ret_from_fork+0x14/0x3c) Code: e1a8 e8bd87f0 e3a04010 eae0 (e5909000) ---[ end trace 1b75b31a2719ed1e ]--- Kernel panic - not syncing: Attempted to kill init! exitcode=0x000b Paolo Pisati (1): dma: of-dma: check

[PATCH] ARM: l2x0: don't set .set_debug in l310 case

2013-03-24 Thread Paolo Pisati
From: Paolo Pisati paolo.pis...@canonical.com commit 74ddcdb (l2x0: Only set .set_debug on PL310 r3p0 and earlier) to actually work needs .set_debug to be not set during definition Signed-off-by: Paolo Pisati p.pis...@gmail.com --- arch/arm/mm/cache-l2x0.c |1 - 1 file changed, 1 deletion

[PATCH 7/7] ARM: l2x0: don't set .set_debug in l310 case

2013-03-24 Thread Paolo Pisati
commit 74ddcdb (l2x0: Only set .set_debug on PL310 r3p0 and earlier) to actually work needs .set_debug to be not set during definition Signed-off-by: Paolo Pisati paolo.pis...@canonical.com --- arch/arm/mm/cache-l2x0.c |1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mm/cache-l2x0

Re: [PATCH] ARM: l2x0: don't set .set_debug in l310 case

2013-03-25 Thread Paolo Pisati
On Sun, Mar 24, 2013 at 04:14:57PM -0500, Rob Herring wrote: On 03/24/2013 01:27 PM, Paolo Pisati wrote: From: Paolo Pisati paolo.pis...@canonical.com commit 74ddcdb (l2x0: Only set .set_debug on PL310 r3p0 and earlier) to actually work needs .set_debug to be not set during definition

[PATCH] cpufreq: check OF /cpus presence before dereferencing it

2013-03-27 Thread Paolo Pisati
panic - not syncing: Attempted to kill init! exitcode=0x000b [4.182189] [4.642395] CPU0: stopping Signed-off-by: Paolo Pisati paolo.pis...@canonical.com --- drivers/cpufreq/cpufreq-cpu0.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v2] cpufreq: check OF /cpus presence before dereferencing it

2013-03-28 Thread Paolo Pisati
panic - not syncing: Attempted to kill init! exitcode=0x000b [4.182189] [4.642395] CPU0: stopping Acked-by: Viresh Kumar viresh.ku...@linaro.org Signed-off-by: Paolo Pisati paolo.pis...@canonical.com --- v2: Better variable naming drivers/cpufreq/cpufreq-cpu0.c | 10 -- 1

Re: [BUG] panda board locks up on boot

2013-01-27 Thread Paolo Pisati
On Fri, Jan 25, 2013 at 08:43:15AM +, Mats Liljegren wrote: Hi Steven, Do you have CONFIG_CPU_FREQ enabled? As I posted earlier in linux-kernel forum (Failed booting PandaBoard ES with Linux 3.8 RC4 two days ago) my PandaBoard ES hangs while booting with this option enabled. It works

[PATCH] [stable-resend] regulator: core: if voltage scaling fails, restore original voltage values

2012-12-17 Thread Paolo Pisati
Cc: sta...@vger.kernel.org Signed-off-by: Paolo Pisati paolo.pis...@canonical.com Tested-by: Robert Nelson robertcnel...@gmail.com Signed-off-by: Mark Brown broo...@opensource.wolfsonmicro.com --- drivers/regulator/core.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions

[PATCH] regulator: core: if voltage scaling fails, restore original voltage values

2012-12-12 Thread Paolo Pisati
Signed-off-by: Paolo Pisati paolo.pis...@canonical.com --- drivers/regulator/core.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index e872c8b..c347fd0 100644 --- a/drivers/regulator/core.c +++ b

[PATCH] regulator: core: if voltage scaling fails, restore original

2012-12-12 Thread Paolo Pisati
Paolo Pisati (1): regulator: core: if voltage scaling fails, restore original voltage values drivers/regulator/core.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) -- 1.7.10.4 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH] regulator: core: if voltage scaling fails, restore original

2012-12-13 Thread Paolo Pisati
On Thu, Dec 13, 2012 at 05:15:33AM +, Mark Brown wrote: On Wed, Dec 12, 2012 at 12:45:52PM +0100, Paolo Pisati wrote: And after a second look it's clear what's going on: After a second look at what? You've not provided any context, I've no idea what you're talking about here. forgot

[PATCH] regulator: core: if voltage scaling fails, restore original voltage values

2012-12-13 Thread Paolo Pisati
Signed-off-by: Paolo Pisati paolo.pis...@canonical.com Tested-by: Robert Nelson robertcnel...@gmail.com --- drivers/regulator/core.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index e872c8b..c347fd0

[PATCH] [resend] regulator: core: if voltage scaling fails, restore original values

2012-12-13 Thread Paolo Pisati
95a3c23ae620c1b4c499746e70f4034bdc067737 Author: Mark Brown broo...@opensource.wolfsonmicro.com Date: Thu Dec 16 15:49:37 2010 + regulator: Optimise out noop voltage changes Paolo Pisati (1): regulator: core: if voltage scaling fails, restore original voltage values drivers/regulator/core.c

Re: [PATCH] regulator: core: if voltage scaling fails, restore original voltage values

2012-12-14 Thread Paolo Pisati
On Thu, Dec 13, 2012 at 11:47:15AM +0200, Felipe Balbi wrote: On Thu, Dec 13, 2012 at 10:13:00AM +0100, Paolo Pisati wrote: Signed-off-by: Paolo Pisati paolo.pis...@canonical.com Tested-by: Robert Nelson robertcnel...@gmail.com please read Documentation/stable_kernel_rules.txt, you'll see

[PATCH] staging/omapdrm: garbage collect OMAP_DSS_DISPLAY_SUSPENDED

2013-01-10 Thread Paolo Pisati
Compilation fix - leftover from: commit 998c336d4c7183301ed6a6ca93952f63e3cf694f Author: Tomi Valkeinen tomi.valkei...@ti.com Date: Wed May 30 13:26:00 2012 +0300 OMAPDSS: remove omap_dss_device's suspend/resume Cc: stable sta...@vger.kernel.org # v3.7 Signed-off-by: Paolo Pisati

Re: [PATCH] staging/omapdrm: garbage collect OMAP_DSS_DISPLAY_SUSPENDED

2013-01-11 Thread Paolo Pisati
On Thu, Jan 10, 2013 at 09:42:27PM +0100, Paolo Pisati wrote: Compilation fix - leftover from: commit 998c336d4c7183301ed6a6ca93952f63e3cf694f Author: Tomi Valkeinen tomi.valkei...@ti.com Date: Wed May 30 13:26:00 2012 +0300 OMAPDSS: remove omap_dss_device's suspend/resume Cc

[PATCH] leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading

2014-03-06 Thread Paolo Pisati
Enable autoloading of leds-gpio module when a corresponing DT entry is present. Signed-off-by: Paolo Pisati paolo.pis...@canonical.com --- drivers/leds/leds-gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 78b0e27..653d501

Re: 3.16rc3 multiplatform, Armada 370 and IOMMU: unbootable kernel

2014-07-08 Thread Paolo Pisati
On Tue, Jul 8, 2014 at 9:41 AM, Thomas Petazzoni thomas.petazz...@free-electrons.com wrote: Dear Ezequiel Garcia, On Mon, 7 Jul 2014 20:37:58 -0300, Ezequiel Garcia wrote: It seems bus_register_notifier() is been called for platform and pci devices with the *same* notifier block. Haven't

arm: JUMP_LABEL and DEBUG_SET_MODULE_RONX should be mutually exclusive?

2014-10-15 Thread Paolo Pisati
Hi, i keep hitting this with BRIDGE=m, JUMP_LABEL=y and DEBUG_SET_MODULE_RONX=y: [ 48.419401] Unable to handle kernel paging request at virtual address bf076f58 [ 48.426630] pgd = e4e54000 [ 48.429328] [bf076f58] *pgd=24d49811, *pte=249e94df, *ppte=249e965e [ 48.435603] Internal error:

Re: [PATCH] clk: samsung: Fix Exynos 5420 pinctrl setup and clock disable failure due to domain being gated

2014-12-24 Thread Paolo Pisati
On Wed, Dec 10, 2014 at 09:35:31AM -0800, Kevin Hilman wrote: I confirm it fixes the boot hang in linux-next (next-20141210) on my exynos5800-peach-pi and exynos5420-arndale-octa. Tested both exynos_defconfig and multi_v7_defconfig. Tested-by: Kevin Hilman khil...@linaro.org does audio

Re: [PATCH 0/3] CONFIG_DEBUG_SET_MODULE_RONX fixups

2015-03-24 Thread Paolo Pisati
On Wed, Feb 25, 2015 at 02:17:55PM -0800, Kees Cook wrote: On Wed, Feb 25, 2015 at 2:14 PM, Laura Abbott lau...@codeaurora.org wrote: Hi, CONFIG_DEBUG_SET_MODULE_RONX is currently non-functional on arm and arm64 because of changes in behavior of is_module_addr. This series fixes both

[PATCH] x86: MCA: garbage collect sys_desc_table and the remaining of

2015-07-14 Thread Paolo Pisati
setup_arch 14211375 -46 Signed-off-by: Paolo Pisati p.pis...@gmail.com --- Documentation/x86/zero-page.txt | 1 - arch/x86/boot/Makefile| 2 +- arch/x86/boot/boot.h | 3 --- arch/x86/boot/compressed/eboot.c | 4

[PATCH] x86: hd0_info and hd1_info are obsolete and unused fields

2015-07-20 Thread Paolo Pisati
hd0_info and hd1_info are not used anymore, don't reference them in the code Signed-off-by: Paolo Pisati p.pis...@gmail.com --- arch/x86/kernel/kexec-bzimage64.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/x86/kernel/kexec-bzimage64.c b/arch/x86/kernel/kexec-bzimage64.c index

[PATCH v2] x86: MCA: obsolete sys_desc_table

2015-07-20 Thread Paolo Pisati
119 -9 setup_arch 14211375 -46 Signed-off-by: Paolo Pisati p.pis...@gmail.com --- Changes since v1: -added a changelog -kept sys_desc_table around but marked obsolete Documentation/x86/zero-page.txt | 3 ++- arch/x86/boot/Makefile

[PATCH] MCA: garbage collect sys_desc_table

2015-07-08 Thread Paolo Pisati
Signed-off-by: Paolo Pisati p.pis...@gmail.com --- Documentation/x86/zero-page.txt | 1 - arch/x86/boot/Makefile| 2 +- arch/x86/boot/boot.h | 3 --- arch/x86/boot/compressed/eboot.c | 4 arch/x86/boot/main.c | 3 --- arch/x86

[PATCH] MCA: garbage collect sys_desc_table

2015-07-08 Thread Paolo Pisati
= boot_params.sys_desc_table.table[2]; Compile tested with i386_defconfig, x86_64_defconfig and allyesconfig. Paolo Pisati (1): MCA: garbage collect sys_desc_table Documentation/x86/zero-page.txt | 1 - arch/x86/boot/Makefile| 2 +- arch/x86/boot/boot.h | 3 --- arch/x86/boot

Resend: Re: [PATCH] x86: MCA: garbage collect sys_desc_table

2015-07-10 Thread Paolo Pisati
On Wed, Jul 08, 2015 at 07:14:36PM +0200, Paolo Pisati wrote: Adding Josh Triplett since he was interested in MCA removal for the kernel tinification project, and slightly change the subject line. Is sys_desc_table still used anywhere? It seems not: arch/x86/boot/mca.c::query_mca

[PATCH] x86: MCA: garbage collect sys_desc_table

2015-07-10 Thread Paolo Pisati
Signed-off-by: Paolo Pisati p.pis...@gmail.com --- Documentation/x86/zero-page.txt | 1 - arch/x86/boot/Makefile| 2 +- arch/x86/boot/boot.h | 3 --- arch/x86/boot/compressed/eboot.c | 4 arch/x86/boot/main.c | 3 --- arch/x86

[PATCH] x86: MCA removal: garbage collect sys_desc_table

2015-07-10 Thread Paolo Pisati
int BIOS_revision; arch/x86/kernel/setup.c:BIOS_revision = boot_params.sys_desc_table.table[2]; Compile tested with i386_defconfig, x86_64_defconfig and allyesconfig. Paolo Pisati (1): x86: MCA: garbage collect sys_desc_table Documentation/x86/zero-page.txt | 1 - arch

Re: [PATCH v3 0/5] dts patches for qcom tsens support

2016-08-24 Thread Paolo Pisati
On Wed, Aug 17, 2016 at 02:33:40PM -0500, Andy Gross wrote: > On Wed, Aug 17, 2016 at 10:48:43AM +0530, Rajendra Nayak wrote: > > Hey Andy, > > > > This is a respin of v2 with some minor fixes pointed out by Rob. > > Please pull these in for 4.9 > > > > Thanks, > > Rajendra > > I pulled these

Re: [PATCH v3 0/5] dts patches for qcom tsens support

2016-08-25 Thread Paolo Pisati
On Wed, Aug 24, 2016 at 10:21:17PM -0500, Andy Gross wrote: > > Yeah this appears to be the case. So I guess the response is 'don't > do that'. At least don't cat or od the file. You need to seek and > read. True, but the dev file is user readable and any user can trigger it (or any

[PATCH 0/2] Lattice MachXO2 Passive SPI FPGA Manager support

2017-04-23 Thread Paolo Pisati
Hi all, this series adds support for the Lattice MachXO2 FPGA chip, programmed over Slave SPI. Tested on my raspberry pi3 + bugblat's pif2 fpga hat. Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-04-23 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-04-23 Thread Paolo Pisati
Add support for the Lattice MachXO2 FPGA chip in Slave SPI configuration. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 199 + 3 files c

Re: [PATCH] scripts/package: snap-pkg target

2017-07-11 Thread Paolo Pisati
On Mon, Jul 10, 2017 at 6:46 PM, Jim Davis wrote: >> >> For more information on snap packages: https://snapcraft.io/docs/ > > Is this something a user could do with the existing deb target, and > then running deb2snap? No, the kernel snap is a special case, it requires

[PATCH] scripts/package: snap-pkg target

2017-07-10 Thread Paolo Pisati
is to carry the Linux kernel during the creation of a system image, eg. Ubuntu Core, and it's subsequent upgrades. For more information on snap packages: https://snapcraft.io/docs/ Signed-off-by: Paolo Pisati <paolo.pis...@canonical.com> --- .gitignore | 5 + s

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-07-06 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH v5 0/2] Lattice MachXO2 Slave SPI FPGA Manager support

2017-07-06 Thread Paolo Pisati
v4: * rebased on 3.12 Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ drivers/fpga/Kconfig | 7 + drivers

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-07-06 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

[PATCH v4 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-06-26 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

[PATCH v4 0/2] Lattice MachXO2 Slave SPI FPGA Manager support

2017-06-26 Thread Paolo Pisati
and spi_message_init() / trans.delay_usecs Changes in v3; * loop unroll machxo2_write() and collate writes in a single spi_sync() Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice

[PATCH v4 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-26 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH v3 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-06-02 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

[PATCH v3 0/2] [PATCH v3 0/2] Lattice MachXO2 Slave SPI FPGA Manager support

2017-06-02 Thread Paolo Pisati
and spi_message_init() / trans.delay_usecs Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 +++ drivers/fpga/Kconfig | 7

[PATCH v3 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-02 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH v3 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-15 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH v3 0/2] [RESEND] Lattice MachXO2 Slave SPI FPGA Manager support

2017-06-15 Thread Paolo Pisati
and spi_message_init() / trans.delay_usecs Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 +++ drivers/fpga/Kconfig | 7

[PATCH v3 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-06-15 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

[PATCH v3 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-15 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH v3 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-06-15 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

[PATCH v3 0/2] [RESEND] Lattice MachXO2 Slave SPI FPGA Manager support

2017-06-15 Thread Paolo Pisati
and spi_message_init() / trans.delay_usecs Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 +++ drivers/fpga/Kconfig | 7

Re: [PATCH v3 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-06-16 Thread Paolo Pisati
On Thu, Jun 15, 2017 at 01:03:41PM -0700, Moritz Fischer wrote: > > +static int machxo2_write(struct fpga_manager *mgr, const char *buf, > > +size_t count) > > +{ > > + struct spi_device *spi = mgr->priv; > > + struct spi_message msg; > > + struct

[PATCH v2 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-05-01 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH v2 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-05-01 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode

[PATCH v2 0/2] Lattice MachXO2 Slave SPI FPGA Manager support

2017-05-01 Thread Paolo Pisati
Hi all, this series adds support for the Lattice MachXO2 FPGA chip, programmed over Slave SPI. Tested on my raspberry pi3 + bugblat's pif2 fpga hat. Changes from v1: * fixed all the warnings pointed out by 'checkpatch --strict' and Alan Tull Paolo Pisati (2): dt: bindings: fpga: add

Re: [PATCH] scripts/package: snap-pkg target

2017-09-08 Thread Paolo Pisati
Apologise for the late reply. On Wed, Jul 19, 2017 at 2:02 AM, Jim Davis wrote: > > Once I fed the snap into ubuntu-image, after hunting down a plausible > model file, I did get an image file that booted under qemu. I guess > if you're in the know about snap (and I don't

[PATCH v2] scripts/package: snap-pkg target

2017-09-12 Thread Paolo Pisati
is to carry the Linux kernel during the creation of a system image, eg. Ubuntu Core, and its subsequent upgrades. For more information on snap packages: https://snapcraft.io/docs/ Signed-off-by: Paolo Pisati <paolo.pis...@canonical.com> --- Changes since v1: - slightly improve the mes

Re: [PATCH v3] scripts/package: snap-pkg target

2017-11-28 Thread Paolo Pisati
On Mon, Nov 27, 2017 at 7:33 PM, Jim Davis wrote: > > With this patch applied to the 4.14 kernel source, and running make > snap-pkg on a Ubuntu 16.04 VM with the latest 16.04 kernel config > file, I ran into > > Traceback (most recent call last): > File

[PATCH v3] scripts/package: snap-pkg target

2017-11-27 Thread Paolo Pisati
is to carry the Linux kernel during the creation of a system image, eg. Ubuntu Core, and its subsequent upgrades. For more information on snap packages: https://snapcraft.io/docs/ Signed-off-by: Paolo Pisati <paolo.pis...@canonical.com> --- Changes since v2: - use a tarball to instead of c

Re: [PATCH v3] scripts/package: snap-pkg target

2017-11-29 Thread Paolo Pisati
PM, Jim Davis <jim.ep...@gmail.com> wrote: > On Tue, Nov 28, 2017 at 10:14 AM, Paolo Pisati > <paolo.pis...@canonical.com> wrote: >> On Mon, Nov 27, 2017 at 7:33 PM, Jim Davis <jim.ep...@gmail.com> wrote: >>> >>> With this patch applied to the 4

Re: [PATCH v3] scripts/package: snap-pkg target

2017-11-29 Thread Paolo Pisati
On Wed, Nov 29, 2017 at 8:33 AM, Masahiro Yamada wrote: > > Worked for me too, > after updating snapcraft. > > > Is it really impossible to check the snapcraft version? > What is the minimum version? 2.35 ? The minimum version is 2.35+ - what is about to become

Re: [PATCH v2] scripts/package: snap-pkg target

2017-11-27 Thread Paolo Pisati
On Wed, Sep 20, 2017 at 11:28 AM, Masahiro Yamada wrote: >> @@ -0,0 +1,14 @@ >> +name: kernel >> +version: KERNELRELEASE >> +summary: Linux kernel >> +description: The upstream Linux kernel >> +grade: stable >> +confinement: strict >> +type: kernel >> + >> +parts:

Re: [PATCH v3] scripts/package: snap-pkg target

2017-12-05 Thread Paolo Pisati
On Fri, Dec 1, 2017 at 1:03 PM, Riku Voipio wrote: > > Since you are already patching snapcraft for this, why not embed the > whole support in snapcraft? Eg something like snapcraft --kernel > /path/to/kernel > > The key advantage you'll get is being able to support old

Re: [PATCH v3] scripts/package: snap-pkg target

2017-12-06 Thread Paolo Pisati
On Wed, Dec 6, 2017 at 11:36 AM, Masahiro Yamada wrote: > Just one question to Paolo: > > If some change like firmware removal happens in the future, > patching for snapcraft is necessary? > (i.e. users are required to upgrade snapcraft from --edge ?) > > I

Re: [PATCH v3] scripts/package: snap-pkg target

2017-12-05 Thread Paolo Pisati
On Fri, Dec 1, 2017 at 12:15 AM, Jim Davis wrote: > > If I run /snap/bin/snapcraft --version now on that Ubuntu 16.04 VM I > am getting 2.36+git2.ae61453. Yep, the edge channel follows the bleeding edge: $ snap info snapcraft ... channels: stable:2.35

[PATCH] ARM: tango: register pm ops only if running on tango hw

2018-08-22 Thread Paolo Pisati
In a multiplatform kernel, avoid invoking hardware specific pm ops, when running on a different SOC. Signed-off-by: Paolo Pisati --- arch/arm/mach-tango/pm.c| 5 + arch/arm/mach-tango/setup.c | 7 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-tango

Re: [PATCH v10 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-05 Thread Paolo Pisati
On Thu, Apr 05, 2018 at 10:12:05AM -0500, Alan Tull wrote: > On Tue, Apr 3, 2018 at 2:02 PM, Paolo Pisati <p.pis...@gmail.com> wrote: > > Hi Paolo, > > Looks good, except that I have to fix up the calls to > fpga_mgr_register/unregister since my API changes didn't go in

[PATCH v9 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-02 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH v9 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-04-02 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> Acked-by: Moritz Fischer <m...@kernel.org> Acked-by: Alan Tull <at...@kernel.org>

[PATCH v9 0/2] fpga: Lattice MachXO2 Slave SPI FPGA Manager support

2018-04-02 Thread Paolo Pisati
slave mode with varying bus speed. Changes since v8: * style fixes pointed out by Alan * rebase on the new fpga_mgr_register() API Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice

Re: [PATCH v9 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-02 Thread Paolo Pisati
On Mon, Apr 02, 2018 at 10:39:04AM -0500, Alan Tull wrote: > On Mon, Apr 2, 2018 at 10:13 AM, Paolo Pisati <p.pis...@gmail.com> wrote: > > Hi Paolo, > > Thanks for making the changes I asked for. Except... is there a > reason to not get state in machxo2_spi_state

[PATCH v10 0/2] fpga: Lattice MachXO2 Slave SPI FPGA Manager support

2018-04-03 Thread Paolo Pisati
slave mode with varying bus speed. Changes since v9: * implemented machxo2_spi_state() Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ drivers

[PATCH v10 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-04-03 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> Acked-by: Moritz Fischer <m...@kernel.org> Acked-by: Alan Tull <at...@kernel.org>

[PATCH v10 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-03 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

Re: [PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-29 Thread Paolo Pisati
On Wed, Mar 28, 2018 at 03:03:42PM -0500, Alan Tull wrote: > On Wed, Mar 28, 2018 at 11:26 AM, Alan Tull <at...@kernel.org> wrote: > > On Fri, Mar 23, 2018 at 7:27 AM, Paolo Pisati <p.pis...@gmail.com> wrote: > > > > Hi Paolo, > > One more thing.

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-16 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 8 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH 0/2 v6] Lattice MachXO2 Slave SPI FPGA Manager support

2018-03-16 Thread Paolo Pisati
() at the end, but that, sometimes, resulted in the REFRESH command to fail with a CMD_ERR, depending on the SPI bus speed) Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings/fpga/lattice-machxo2

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-03-16 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file

Re: [PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-22 Thread Paolo Pisati
On Wed, Mar 21, 2018 at 11:04:52AM -0700, Joe Perches wrote: > > static const u8 cmd[] > here and everywhere else as all the tx_buf assignments > of cmd are to const void * Ok > Instead of multiple declarations of dump_status_reg > it's frequently nicer to use a style like > > static void

Re: [PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-19 Thread Paolo Pisati
On Fri, Mar 16, 2018 at 09:26:54AM -0700, Moritz Fischer wrote: > > > > +static enum fpga_mgr_states machxo2_spi_state(struct fpga_manager *mgr) > > +{ > > + return FPGA_MGR_STATE_UNKNOWN; > > +} > > To understand this correctly: Further up you have a way to determine the > state you're in, but

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-21 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 8 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH 0/2 v7] Lattice MachXO2 Slave SPI FPGA Manager support

2018-03-21 Thread Paolo Pisati
slave mode with varying bus speed. Changes since v6: * added the SPDX boilerplate * switched to pr_debug() and renamed MACHXO2_DEBUG to DEBUG Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2 slave spi binding description fpga: lattice machxo2: Add Lattice MachXO2 support .../bindings

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-03-21 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> Acked-by: Moritz Fischer <m...@kernel.org> Acked-by: Alan Tull <at...@kernel.org>

[PATCH 0/2 v8] Lattice MachXO2 Slave SPI FPGA Manager support

2018-03-23 Thread Paolo Pisati
slave mode with varying bus speed. Changes since v7: * misc style fixes, among which: * static const u8 cmd[] * #ifdef DEBUG ... #endif reorder * introduction of get_err_string() * direct returns to reduce line count * indentation Paolo Pisati (2): dt: bindings: fpga: add lattice machxo2

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-23 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> --- drivers/fpga/Kconfig | 8 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-03-23 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati <p.pis...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> Acked-by: Moritz Fischer <m...@kernel.org> Acked-by: Alan Tull <at...@kernel.org>

4.19-rcX: WARN_ON() arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions

2018-10-08 Thread Paolo Pisati
This on my dragonboard 410c: ... [0.170657] WARNING: CPU: 2 PID: 1 at arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions+0xd4/0x150 [0.170666] Modules linked in: [0.170680] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.19.0-rc7-dirty #3 [0.170687] Hardware name:

Re: [PATCH] [stable, netdev 4.4+] lan78xx: make sure RX_ADDRL & RX_ADDRH regs are always up to date

2018-11-09 Thread Paolo Pisati
On Thu, Nov 08, 2018 at 10:49:04AM -0500, Sasha Levin wrote: > > Can you confirm it actually works on 4.4? Yes, built and tested on 4.4.y: Tested-by: Paolo Pisati -- bye, p.

Re: 4.19-rcX: WARN_ON() arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions

2018-10-09 Thread Paolo Pisati
On Mon, Oct 08, 2018 at 05:03:27PM +0100, James Morse wrote: > But! DT's that have this reserved-but-not-memory are already out there, so we > should work around this in the kernel. Ack, thanks for the explanation. -- bye, p.

[tip:x86/boot] x86/boot: Obsolete the MCA sys_desc_table

2015-07-21 Thread tip-bot for Paolo Pisati
Commit-ID: 949163015ce6fdb76a5e846a3582d3c40c23c001 Gitweb: http://git.kernel.org/tip/949163015ce6fdb76a5e846a3582d3c40c23c001 Author: Paolo Pisati p.pis...@gmail.com AuthorDate: Mon, 20 Jul 2015 18:23:50 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 21 Jul 2015 10:55:11