Re: [PATCH v4 08/13] serial: sh-sci: Introduced function pointers

Wolfram Sang <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.renesas-soc,gmane.linux.serial,gmane.linux.ports.sh.devel
Message-ID <Z9fxfV9jAGJ51fcn@shikoro>
Hi all,

sorry for missing this series so far and thanks to Geert for pulling me
into the loop.

> While most rough edges have been polished by now (thanks!), and the
> driver seems to still work on a variety of platforms, I am still
> worried about the impact of this change:
>   - Maintainability and future bug fixing?

I hate to see development work going to waste, yet I have to say I am
also concerned about the maintainability of this driver after this very
intrusive changeset. The driver is already quite complex. Adding another
layer of complexity (function pointers) will make proper bugfixing for
all supported instances quite harder, I'd think.

Has it been discussed to have this as a separate driver? Were there
reasons against it? This is really an open question. Maybe it is
justified to do it like this if we have reasons for it.

Seeing that SCI core needs 800+ lines changed and we still have a
seperate driver with 460 lines driver, I do wonder if copying the logic
from SCI core to a seperate driver would make sense. I am aware that the
core has currently 3500+ lines currently. I'd estimate it would shrink
quite a bit when copying because you won't need to handle all the
differences to other SCI entries.

Again, this is not a request to follow my suggestion, it is an open
question to make sure all paths have been considered.

Thanks and happy hacking,

   Wolfram
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmfX8XoACgkQFA3kzBSg
KbbvxA/+IZpUCBv7zoxyaIEUGj/MSvgO7qat5vGpxAnVEPPNvNK0O12r0ukfKqXw
EWB3NR0+A/sqMs/t5AYLRBBlj94g2PaJJA3NCiJ3z25jLBcqYu0Am9G2/ECz1/Fw
H+NTNhmhLHE1gEKscwqYAEMWZ2s6My+XgOl4Z9uO1JVzmlLYwFpal95L8rBbAK8W
aoR1rheX5dv/dn4oskxyciyAJFWYKWo363EzOHDSbs+UBdNH6+bqGAEWQyX3AbiG
jvRui9zjONaNt78zqlUoooXb7fohpZT9YHjeLDD30lFvICmAAqGfb7taSjHvSA1u
Ai86yJIBC0hV823fR0wz0o+YD35cxWzmUIwTG7/TtwOV6BZhNdoUu/iyOcEb3NXe
2RJ81r71cgmymEEzhIwVqu2MAcl/zcsQg3CN4uuInNFLVVN2S8OyBVCHRAGWz6m5
776x43U4bk5NGNMmcve7kbdjIFTD/1ECkbENq57pwzCRgQXqdIG35ded6zLUAX67
gOJjNOIUyNwO9le6Wt4vWx/YifwvNInM4z5qUFYqHnPDTcuEh2TlODrlSG54o4nD
lR6RwGJvwCv+3XLwd00fyTXQRXox3N7RdyWeb2AwUB+Wl2CuNK7HumJhMYWFmt0E
Zx30krCdBRNgWy0K/IfyFP2nRUOvDdyhaM69bsekxPgPzsMm1mA=
=GcHW
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.