About testing A64 DE2 patches

Sergey Suloev ssuloev at orpaltech.com
Wed Jan 31 23:42:40 PST 2018


On 02/01/2018 03:47 AM, Icenowy Zheng wrote:
>
> 于 2018年2月1日 GMT+08:00 上午5:11:17, Sergey Suloev <ssuloev at orpaltech.com> 写到:
>> On 01/31/2018 08:47 PM, Icenowy Zheng wrote:
>>> 于 2018年2月1日 GMT+08:00 上午1:42:01, Sergey Suloev
>> <ssuloev at orpaltech.com> 写到:
>>>> Hi, kernel people,
>>>>
>>>> I am testing A64 DE2 patches from the list below, series v4, with my
>>>> NanoPi A64 and 4.15
>>>>
>>>>
>> https://patchwork.kernel.org/project/linux-arm-kernel/list/?submitter=173461&page=1
>>>> and I'm getting the following issue regarding SRAM:
>>>>
>>>> sunxi-de2-clks 1000000.clock: Error couldn't map SRAM to device
>>> Could you check whether it's finally probed?
>>>
>>> DE2 clock may be probed before SRAM controller, so
>>> the probe might be deferred. When SRAM controller is ready
>>> it will retry.
>>>
>>>> Here is my full dmesg https://pastebin.com/SQvDfJF0
>>>>
>>>> Thanks
>>>>
>>>>
>>>> _______________________________________________
>>>> linux-arm-kernel mailing list
>>>> linux-arm-kernel at lists.infradead.org
>>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>> no it is not probed , because there is no special return code from the
>> function
> But it receives special return code from sunxi_sram_claim.
>   
>> if (ccu->sram_needed) {
>> + ret = sunxi_sram_claim(&pdev->dev);
>> + if (ret) {
>> + dev_err(&pdev->dev,
>> + "Error couldn't map SRAM to device\n");
>> + return ret;
>> + }
>> + }

well yes, it return -517

it seems like actually probed


root at nanopia64-aapi:~# dmesg | grep "sunxi-de2-clks"
[    0.197058] bus: 'platform': add driver sunxi-de2-clks
[    0.197089] bus: 'platform': driver_probe_device: matched device 
1000000.clock with driver sunxi-de2-clks
[    0.197096] bus: 'platform': really_probe: probing driver 
sunxi-de2-clks with device 1000000.clock
[    0.197115] sunxi-de2-clks 1000000.clock: no pinctrl handle
[    0.197247] sunxi-de2-clks 1000000.clock: Couldn't map SRAM to 
device: -517
[    0.197304] platform 1000000.clock: Driver sunxi-de2-clks requests 
probe deferral
[    0.322898] bus: 'platform': driver_probe_device: matched device 
1000000.clock with driver sunxi-de2-clks
[    0.322905] bus: 'platform': really_probe: probing driver 
sunxi-de2-clks with device 1000000.clock
[    0.322921] sunxi-de2-clks 1000000.clock: no pinctrl handle
[    0.323597] driver: 'sunxi-de2-clks': driver_bound: bound to device 
'1000000.clock'
[    0.323632] bus: 'platform': really_probe: bound device 1000000.clock 
to driver sunxi-de2-clks





More information about the linux-arm-kernel mailing list