Re: [PATCH v2 20/25] tty: serial: samsung_tty: Use devm_ioremap_resource

From
Hector Martin <hidden>
Date
2021-02-18 16:48:12
Also in
linux-devicetree, lkml
Reply to
Krzysztof Kozlowski, 2021-02-15
On 16/02/2021 03.51, Krzysztof Kozlowski wrote:
quoted
Also fix a bug checking the return value, which should use IS_ERR().
No, no, no. We never, never combine fixing bugs with some rework.
However devm_ioremap() returns NULL so where is the error?
Sorry, this was a commit message mistake. The code is correct and so is the patch: just the NULL check is correct for the previous variant and IS_ERR is correct for devm_ioremap_resource. I confused myself while writing the commit message after the fact.
Did you test your patches on existing platforms? If not, please mark all
of them as RFT on next submission, so Greg does not pick them too fast.
I unfortunately don't have any Exynos devices where I could test the code (I have a couple but no serial connections, and I have no idea if mailine would run on them). I'll mark v3 as RFT.

-- 
Hector Martin (marcan@marcan.st)
Public Key: https://mrcn.st/pub

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (90 messages) 90 messages, 11 authors, last reply 2021-03-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help