Hi Nikolaus,
On 2021/2/25 下午9:18, H. Nikolaus Schaller wrote:
> Hi,
>
>> Am 24.02.2021 um 17:21 schrieb Zhou Yanjie <
zhouy...@wanyeetech.com>:
>>
>> Hello Nikolaus and Paul,
>>
>>
>> I have completed a new pinctrl patches (in the attachment) based on kernel 5.11, including JZ4730, JZ4750, JZ4755, JZ4775 and X2000.
>>
>> The JZ4730 is based on Paul's driver with some minor adjustments.
> I tried to figure out what has been adjusted but it is difficult to tell... At least it is not obvious :)
The main change is to adjust the order of ID to make it more in line
with the order of the birth of the chip, and adjust the order of
corresponding conditional judgments to unify the code style.
>> Could you help test it? I don't have JZ4730 hardware at hand.
> Sure. I have reverted the jz470 pinctrl patches from the letux-5.11 tree and added yours and could not identify a functional difference so far.
>
> I can boot. SD card is working, LCD is working, I2C is generally working, keyboard scanning works, LEDs are blinking etc. and
> these were the most problematic components which rely on pinctrl.
>
> And I have checked by adding a printk() to probe that my device really runs the new driver...
Nice to hear it, thanks for your test.
Sure, I will add them.
Well, this is already in the patch.
This has not been included in the patch. I have found that the pinctrl
code in the next tree has new changes compared to kernel 5.11. I am
going to make a new patch after kernel 5.12-rc1 comes out, and I will
add it to the new patch.
> I have not checked if these changes are included in your patch set.
>
> 2. jz4730 is special in having two control registers (upper/lower).
> This was mentioned in Paul's original commit message:
>
> Also add code to handle the jz4730 specific register offsets
> and some register pairs have 2 bits for each GPIO pin.
>
> Maybe you can add this to the [PATCH 3/3] description.
Sure, I will add it.
> 3. I had planned to submit our driver patch set soon which would be in conflict.
> The reason I haven't done yet is that I am not happy with the jz4730 i2c driver
> (it seems to be impossible to use interrups with this i2c controller hardware
> and the non-irq version times out or even hangs the i2 bus in one of my test
> cases).
>
> So it is better if your series goes upstream because I do not want to slow it
> down. And it might even help to upstream the rest of my jz4730 series if we
> already get some jz4730 support reviewed and merged.
Sure, I plan to submit the first version next week.
> BR and thanks,
> Nikolaus
>
>
>
>>
>> There is also bad news. I found that the previous cache patch may affect the normal operation of the USB camera. I am troubleshooting the problem.
> That is strange how the cache can influence USB operation. More memory wear than usual?
Ingenic's XBurst1 processor core has some special hardware to provide
maintenance of L2 cache, which can provide better performance than
software maintenance of L2 cache, but unfortunately there may be some
problem with the support of some cache instructions, which causes errors
when USB camera to acquire images (specifically reflected in there has
abnormal color blocks in the acquired image).
Thanks and best regards!