Re: [PATCH] bcma,ssb: simplify dependency handling for bcma and ssb drivers
Michael Büsch <[email protected]> Mon, 18 Dec 2023 17:16:29 +0100
| Newsgroups | org.infradead.lists.b43-dev,org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless,org.kernel.vger.netdev |
|---|---|
| Message-ID | <20231218171629.5cf95fd3@barney> |
Hi Lukas, thanks for your patch. On Mon, 18 Dec 2023 16:03:54 +0100 Lukas Bulwahn <[email protected]> wrote: > While reading through the code, I was > confused on what the dependencies were trying to tell me, as the > config symbols and conditions seemed to repeat over and over in > different places. The {SSB,BCMA}_POSSIBLE constants are defining the conditions under which it is possible to 'select' SSB/BCMA. SSB and BCMA are usually 'select'ed rather than depended on, for better user experience while configuring. > I thought it was worth a clean up and this was the patch I came up > with in the end. IMO this does not clean up or simplify the code. It rather makes it more complicated to maintain. The idea behind the POSSIBLE constants it to _not_ spread the conditions all across the drivers. That has significant advantages, if the condition changes. I also don't see the redundancy in the resulting dependency conditions as a bad thing. It's better if every option explicitly defines its dependencies rather than expecting something else to depend on it. That's fragile. NAK from me. -- Michael Büsch https://bues.ch/ _______________________________________________ b43-dev mailing list [email protected] http://lists.infradead.org/mailman/listinfo/b43-dev
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEihRzkKVZOnT2ipsS9TK+HZCNiw4FAmWAcF0ACgkQ9TK+HZCN iw5l7BAAgpdZdzT7v2hPcLw7K9DpHS31i4y/GGlvC4rtJuMzznJNJQGs1MQDH5qM xo1mioY+gzeH17iRop1VCJynuzBTwOkJNz0cKPq6Iia2dS1z+YNZWwaJp0jvF0aQ 0OQO+rzX+z2ydUmiE9jSbeS1CO9l1Pk9pvKBQhp/Axg/fq1Om+MOQSdngezPdH/7 pgJnhM7XYnEy5xyKEjB5yPzcR3LuCC5NPnq964J7/+Y4A5HfWGtQBKLO6F0+XWBF xeUlNl7uvmXilz6MwSsQkiIoSmkQBJKQwpYXV1uXi4VXiz7man3cY+ZuayqlyuVL JfgM0pbmldVPiiXTeL0ds+LuZm+1/xiXQtmoWNp4O1VxBR+XdPKoDxL2nkC4GB4W Okq2+TA6n1WKPIrI4WAdhASvw+skaIx8HawIoM4jhGrc4tFaX93DA80gNOQuJ1Yt PH752DI0wcM03qnYoPIrkcfYxrdX/h7sYEY8BCYJfetRjWwSsZT8y7CtVz47qszE WhwU2E1sMSLM5rHV+W8t8RXmvzZEo2AUMNDQ2V1PFtn/FALO52cQ3HvwbOee1OjE HZeMAJE3m2g5xxm2O/omOXSPwm8H7QE6DhPhA3JmrSSqjFv1vSVEx/3n/DuX8DmG JkmrPATbaZbRYQFthprmECBBXcOgnAhCa4ZDDja1+/lL3q0ArCY= =fqXM -----END PGP SIGNATURE-----