[linux-sunxi] [PATCH 3.19 REGRESSION FIX] ARM: dts: Fix missing usb0_reset for sun4i / sun5i

2014-12-24 Thread Hans de Goede
Hi Maxime,

The recent sun4i-usb-phy changes to add (preliminary) support for the oth phy,
cause the ehci/ohci controllers to no longer work on sun4i / sun5i, because
the phy driver refuses to load due to a missing usb0_reset reset controller
in the dts files for sun4i / sun5i:

[0.094293] sun4i-usb-phy 1c13400.phy: failed to get reset usb0_reset
[0.094326] sun4i-usb-phy: probe of 1c13400.phy failed with error -22

This patch fixes this, please queue this up as a fix for 3.19 .

Regards,

Hans

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] [PATCH] ARM: dts: Fix missing usb0_reset for sun4i / sun5i

2014-12-24 Thread Hans de Goede
The recent sun4i-usb-phy changes to add (preliminary) support for the oth phy,
cause the ehci/ohci controllers to no longer work on sun4i / sun5i, because
the phy driver refuses to load due to a missing usb0_reset reset controller
in the dts files for sun4i / sun5i:

[0.094293] sun4i-usb-phy 1c13400.phy: failed to get reset usb0_reset
[0.094326] sun4i-usb-phy: probe of 1c13400.phy failed with error -22

This fixes this.

Signed-off-by: Hans de Goede 
---
 arch/arm/boot/dts/sun4i-a10.dtsi  | 4 ++--
 arch/arm/boot/dts/sun5i-a10s.dtsi | 4 ++--
 arch/arm/boot/dts/sun5i-a13.dtsi  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
index 03e6843..356efb8 100644
--- a/arch/arm/boot/dts/sun4i-a10.dtsi
+++ b/arch/arm/boot/dts/sun4i-a10.dtsi
@@ -445,8 +445,8 @@
reg-names = "phy_ctrl", "pmu1", "pmu2";
clocks = <&usb_clk 8>;
clock-names = "usb_phy";
-   resets = <&usb_clk 1>, <&usb_clk 2>;
-   reset-names = "usb1_reset", "usb2_reset";
+   resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
+   reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
status = "disabled";
};
 
diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi 
b/arch/arm/boot/dts/sun5i-a10s.dtsi
index f936b03..668521d 100644
--- a/arch/arm/boot/dts/sun5i-a10s.dtsi
+++ b/arch/arm/boot/dts/sun5i-a10s.dtsi
@@ -397,8 +397,8 @@
reg-names = "phy_ctrl", "pmu1";
clocks = <&usb_clk 8>;
clock-names = "usb_phy";
-   resets = <&usb_clk 1>;
-   reset-names = "usb1_reset";
+   resets = <&usb_clk 0>, <&usb_clk 1>;
+   reset-names =  "usb0_reset", "usb1_reset";
status = "disabled";
};
 
diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi
index 3306254..02a9459 100644
--- a/arch/arm/boot/dts/sun5i-a13.dtsi
+++ b/arch/arm/boot/dts/sun5i-a13.dtsi
@@ -362,8 +362,8 @@
reg-names = "phy_ctrl", "pmu1";
clocks = <&usb_clk 8>;
clock-names = "usb_phy";
-   resets = <&usb_clk 1>;
-   reset-names = "usb1_reset";
+   resets = <&usb_clk 0>, <&usb_clk 1>;
+   reset-names =  "usb0_reset", "usb1_reset";
status = "disabled";
};
 
-- 
2.1.0

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Mainline work status

2014-12-24 Thread wens Tsai
Hi everyone,

As some of you might have noticed, I've sent out patches for A80 MMC and AXP20x.
In addition, I've picked up Boris' AXP221 patches to resend after the
AXP patches
are merged. The following is a list of things I'm working on or
waiting to submit:

- AXP20x (PEK and docs) series, originally by Carlo, posted v8
- AXP20x regulator driver cleanup, finished and tested
- AXP221 support, originally by Boris, finished and tested
  * Also enables WiFi on the Hummingbird A31
- sunxi (sun[457]i) cpufreq support, finished and testing (CB/CB2 tested)
  * Only added support for the boards I own. It's just a matter of adding
the regulator nodes with the proper constraints
- sun6i cpufreq support, WiP
- sun8i cpufreq support, minimal work only
- sun9i mmc support, posted v2
- sun9i usb support, v3 WiP
- RSB driver, not working yet

All the above, excluding RSB, can be found in my repository:
https://github.com/wens/linux
Each topic is a separate branch, except for the AXP branches, which
have dependencies.

Testing and feedback is more than welcome.

Regards
ChenYu

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: sata multiplier with A20

2014-12-24 Thread Gerardo Di Iorio
hi, you can report the speed transfer with sata pm?

regards

2014-12-23 22:03 GMT+01:00 :

> The A20 supports PMP, just remove the Flag AHCI_HFLAG_NO_PMP in the sunxi
> ahci driver.
> Please take a look in the Manual of the A20 (6.15.1). The SATA interface
> has the following specification:
> Comply with SATA Spec. 2.6, and AHCI Revision 1.3 specifications
>
> This includes the PMP support.
>
> We are using a Marvel PMP and it works fine - both disks are detected and
> work.
>
> Regards
>
> Tobias
>
> Am Dienstag, 23. Dezember 2014 11:55:58 UTC+1 schrieb bruce bushby:
>
>>
>>
>> Any progress on this? I found this thread:
>> http://forum.lemaker.org/thread-9207-1-1-.html
>>
>> Which states:
>> "the patch seems to work with the latest 3.18 kernel from Torvalds'
>> git (3.18.0.-rc5) possibly with some earlier versions..."
>>
>>
>>1. [1.735879] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl
>>300)
>>2. [1.742372] ata1.15: Port Multiplier 1.2, 0x197b:0x0325 r0, 5
>>ports, feat 0x5/0xf
>>
>>
>>
>> But apparently it's very slow ...although no figures given. Guess there
>> is also the fear of data corruption given the lack of uptake/testing of
>> AllWinner PMP
>>
>>
>> Bruce
>>
>>
>>
>>
>>
>> On Monday, 5 May 2014 22:22:48 UTC+1, hase nase wrote:
>>>
>>> Hi,
>>>
>>> is it possible to use an sata multiplier with a A20 ? I tried it on a
>>> cubieboard, but i only got access to sda and no other connected drive
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linux-sunxi+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] g_mass_storage -> REQUEST SENSE is buggy!

2014-12-24 Thread Michele MAncini
Hi, I have a problem with gadget mass storage.  [image: :'(]

The USB work but I read this problem in dmesg:

Code: [Select]

[ 1110.827205] g_mass_storage gadget: sending command-failure status
[ 1110.845838] g_mass_storage gadget: REQUEST SENSE is buggy! Expected length 6 
but we got 12
[ .827339] g_mass_storage gadget: sending command-failure status
[ .842026] g_mass_storage gadget: REQUEST SENSE is buggy! Expected length 6 
but we got 12
.
.


How can I solve?

cubietruck A20 board use last kernl 3.4.103 
(https://github.com/linux-sunxi/linux-sunxi)
(I use g_mass_Storage with sata HDD 500Gb) Use this command:

sudo rmmod g_mass_storage
modprobe g_mass_storage file=/dev/sda removable=yes stall=0

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: sata multiplier with A20

2014-12-24 Thread bruce bushby
Thanks Tobias, thats good to know! 

On Tuesday, 23 December 2014 21:03:15 UTC, tandre...@gmail.com wrote:
>
> The A20 supports PMP, just remove the Flag AHCI_HFLAG_NO_PMP in the sunxi 
> ahci driver. 
> Please take a look in the Manual of the A20 (6.15.1). The SATA interface 
> has the following specification:
> Comply with SATA Spec. 2.6, and AHCI Revision 1.3 specifications
>
> This includes the PMP support.
>
> We are using a Marvel PMP and it works fine - both disks are detected and 
> work.
>
> Regards
>
> Tobias
>
> Am Dienstag, 23. Dezember 2014 11:55:58 UTC+1 schrieb bruce bushby:
>>
>>
>>
>> Any progress on this? I found this thread:
>> http://forum.lemaker.org/thread-9207-1-1-.html
>>
>> Which states:
>> "the patch seems to work with the latest 3.18 kernel from Torvalds' 
>> git (3.18.0.-rc5) possibly with some earlier versions..."
>>
>>
>>1. [1.735879] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 
>>300)
>>2. [1.742372] ata1.15: Port Multiplier 1.2, 0x197b:0x0325 r0, 5 
>>ports, feat 0x5/0xf
>>
>>
>>
>> But apparently it's very slow ...although no figures given. Guess there 
>> is also the fear of data corruption given the lack of uptake/testing of 
>> AllWinner PMP
>>
>>
>> Bruce
>>
>>
>>
>>
>>
>> On Monday, 5 May 2014 22:22:48 UTC+1, hase nase wrote:
>>>
>>> Hi,
>>>
>>> is it possible to use an sata multiplier with a A20 ? I tried it on a 
>>> cubieboard, but i only got access to sda and no other connected drive
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] [PATCH v8 0/6] mfd: AXP20x: Add support for AXP202 and AXP209

2014-12-24 Thread Carlo Caione
On Tue, Dec 23, 2014 at 3:53 AM, Chen-Yu Tsai  wrote:
> Hi everyone,

Hi ChenYu,
Thank you very much for respinning this.

-- 
Carlo Caione

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] [PATCH] sunxi watchdog: setting the system reset function correctly

2014-12-24 Thread tandresen1977


It's a small video transmission device with bidirectional audio support 
(speex). But i want to be able to switch between line in and microphone input. 
I don't know much about alsa but is this easy to add to the existing driver?



Am Dienstag, 23. Dezember 2014 22:19:24 UTC+1 schrieb Emilio López:
>
> Hi, 
>
> El 23/12/14 a las 18:05, tandre...@gmail.com  escibió: 
> > Hi, 
> > 
> > thanks for your response. I will fix the remaining issues. 
> > 
> > @Emilio: Do you have any news regarding audio for me? 
>
> Nothing really interesting to report; I've been improving the DMA driver 
> a bit and I'll get back to the audio side after the holidays. Out of 
> curiosity, what's your use case for audio? 
>
> Cheers! 
>
> Emilio 
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.