linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* ARM: socfpga: dts: fix spi1 interrupt
@ 2015-03-17 21:35 Mark James
  2015-03-18  8:09 ` Steffen Trumtrar
  0 siblings, 1 reply; 5+ messages in thread
From: Mark James @ 2015-03-17 21:35 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

The socfpga.dtsi currently has the wrong interrupt number set for SPI master 1. Trying to use the master without this change results in the kernel boot process waiting forever for an interrupt that will never occur while attempting to probe any slave devices configured in the device tree as being under SPI master 1.

The change works for the Cyclone V, and according to the Arria 5 handbook should be good there too.


Signed-off-by: Mark James <maj@jamers.net>
Acked-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>

---
 arch/arm/boot/dts/socfpga.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index 9d87609..d9176e6 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -660,7 +660,7 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 			reg = <0xfff01000 0x1000>;
-			interrupts = <0 156 4>;
+			interrupts = <0 155 4>;
 			num-cs = <4>;
 			clocks = <&spi_m_clk>;
 			status = "disabled";
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* ARM: socfpga: dts: fix spi1 interrupt
  2015-03-17 21:35 ARM: socfpga: dts: fix spi1 interrupt Mark James
@ 2015-03-18  8:09 ` Steffen Trumtrar
  2015-03-19 14:14   ` Dinh Nguyen
  0 siblings, 1 reply; 5+ messages in thread
From: Steffen Trumtrar @ 2015-03-18  8:09 UTC (permalink / raw)
  To: linux-arm-kernel

Hi!

On Tue, Mar 17, 2015 at 09:35:23PM +0000, Mark James wrote:
> Hello,
> 
> The socfpga.dtsi currently has the wrong interrupt number set for SPI master 1. Trying to use the master without this change results in the kernel boot process waiting forever for an interrupt that will never occur while attempting to probe any slave devices configured in the device tree as being under SPI master 1.
> 
> The change works for the Cyclone V, and according to the Arria 5 handbook should be good there too.
> 
> 
> Signed-off-by: Mark James <maj@jamers.net>
> Acked-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> 
> ---
>  arch/arm/boot/dts/socfpga.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
> index 9d87609..d9176e6 100644
> --- a/arch/arm/boot/dts/socfpga.dtsi
> +++ b/arch/arm/boot/dts/socfpga.dtsi
> @@ -660,7 +660,7 @@
>  			#address-cells = <1>;
>  			#size-cells = <0>;
>  			reg = <0xfff01000 0x1000>;
> -			interrupts = <0 156 4>;
> +			interrupts = <0 155 4>;
>  			num-cs = <4>;
>  			clocks = <&spi_m_clk>;
>  			status = "disabled";

Thanks for sending the patch to the mainline list.
One little nitpick about the patchformat though:

Please add linebreaks after 70-75 characters for readability. And remove the
"Hello,\n\n" otherwise this would land in the final git commit, where it
doesn't belong.
For reference have a look at Documentation/SubmittingPatches in the kernel
tree.

Maybe Dinh can fix this up, otherwise he will tell you what to do.

Thanks,
Steffen

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 5+ messages in thread

* ARM: socfpga: dts: fix spi1 interrupt
  2015-03-18  8:09 ` Steffen Trumtrar
@ 2015-03-19 14:14   ` Dinh Nguyen
  2015-03-19 17:23     ` Mark James
  0 siblings, 1 reply; 5+ messages in thread
From: Dinh Nguyen @ 2015-03-19 14:14 UTC (permalink / raw)
  To: linux-arm-kernel

On 03/18/2015 03:09 AM, Steffen Trumtrar wrote:
> Hi!
> 
> On Tue, Mar 17, 2015 at 09:35:23PM +0000, Mark James wrote:
>> Hello,
>>
>> The socfpga.dtsi currently has the wrong interrupt number set for SPI master 1. Trying to use the master without this change results in the kernel boot process waiting forever for an interrupt that will never occur while attempting to probe any slave devices configured in the device tree as being under SPI master 1.
>>
>> The change works for the Cyclone V, and according to the Arria 5 handbook should be good there too.
>>
>>
>> Signed-off-by: Mark James <maj@jamers.net>
>> Acked-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
>>
>> ---
>>  arch/arm/boot/dts/socfpga.dtsi | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
>> index 9d87609..d9176e6 100644
>> --- a/arch/arm/boot/dts/socfpga.dtsi
>> +++ b/arch/arm/boot/dts/socfpga.dtsi
>> @@ -660,7 +660,7 @@
>>  			#address-cells = <1>;
>>  			#size-cells = <0>;
>>  			reg = <0xfff01000 0x1000>;
>> -			interrupts = <0 156 4>;
>> +			interrupts = <0 155 4>;
>>  			num-cs = <4>;
>>  			clocks = <&spi_m_clk>;
>>  			status = "disabled";
> 
> Thanks for sending the patch to the mainline list.
> One little nitpick about the patchformat though:
> 
> Please add linebreaks after 70-75 characters for readability. And remove the
> "Hello,\n\n" otherwise this would land in the final git commit, where it
> doesn't belong.
> For reference have a look at Documentation/SubmittingPatches in the kernel
> tree.
> 
> Maybe Dinh can fix this up, otherwise he will tell you what to do.
> 

Yes, I can pick this up and fix up the commit.

Dinh

^ permalink raw reply	[flat|nested] 5+ messages in thread

* ARM: socfpga: dts: fix spi1 interrupt
  2015-03-19 14:14   ` Dinh Nguyen
@ 2015-03-19 17:23     ` Mark James
  2015-03-19 19:21       ` Steffen Trumtrar
  0 siblings, 1 reply; 5+ messages in thread
From: Mark James @ 2015-03-19 17:23 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Dinh,

Thank you for that - I thought I would be all good with what I sent having changed the settings in Thunderbird as per Documentation/email-clients.txt, evidently not! Will do some more reading before submitting any more patches.

Thanks again,

Mark

On 19/03/15 14:14, Dinh Nguyen wrote:
> On 03/18/2015 03:09 AM, Steffen Trumtrar wrote:
>> Hi!
>>
>> On Tue, Mar 17, 2015 at 09:35:23PM +0000, Mark James wrote:
>>> Hello,
>>>
>>> The socfpga.dtsi currently has the wrong interrupt number set for SPI master 1. Trying to use the master without this change results in the kernel boot process waiting forever for an interrupt that will never occur while attempting to probe any slave devices configured in the device tree as being under SPI master 1.
>>>
>>> The change works for the Cyclone V, and according to the Arria 5 handbook should be good there too.
>>>
>>>
>>> Signed-off-by: Mark James <maj@jamers.net>
>>> Acked-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
>>>
>>> ---
>>>  arch/arm/boot/dts/socfpga.dtsi | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
>>> index 9d87609..d9176e6 100644
>>> --- a/arch/arm/boot/dts/socfpga.dtsi
>>> +++ b/arch/arm/boot/dts/socfpga.dtsi
>>> @@ -660,7 +660,7 @@
>>>  			#address-cells = <1>;
>>>  			#size-cells = <0>;
>>>  			reg = <0xfff01000 0x1000>;
>>> -			interrupts = <0 156 4>;
>>> +			interrupts = <0 155 4>;
>>>  			num-cs = <4>;
>>>  			clocks = <&spi_m_clk>;
>>>  			status = "disabled";
>>
>> Thanks for sending the patch to the mainline list.
>> One little nitpick about the patchformat though:
>>
>> Please add linebreaks after 70-75 characters for readability. And remove the
>> "Hello,\n\n" otherwise this would land in the final git commit, where it
>> doesn't belong.
>> For reference have a look at Documentation/SubmittingPatches in the kernel
>> tree.
>>
>> Maybe Dinh can fix this up, otherwise he will tell you what to do.
>>
> 
> Yes, I can pick this up and fix up the commit.
> 
> Dinh
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* ARM: socfpga: dts: fix spi1 interrupt
  2015-03-19 17:23     ` Mark James
@ 2015-03-19 19:21       ` Steffen Trumtrar
  0 siblings, 0 replies; 5+ messages in thread
From: Steffen Trumtrar @ 2015-03-19 19:21 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Mar 19, 2015 at 05:23:45PM +0000, Mark James wrote:
> Hi Dinh,
> 
> Thank you for that - I thought I would be all good with what I sent having changed the settings in Thunderbird as per Documentation/email-clients.txt, evidently not! Will do some more reading before submitting any more patches.
> 

"git send-email" is your friend ;-)
It does the right thing. (As long as the original git commit is correct
of course)

Regards,
Steffen

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-19 19:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-17 21:35 ARM: socfpga: dts: fix spi1 interrupt Mark James
2015-03-18  8:09 ` Steffen Trumtrar
2015-03-19 14:14   ` Dinh Nguyen
2015-03-19 17:23     ` Mark James
2015-03-19 19:21       ` Steffen Trumtrar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).