![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
If you're tempted to add a platform-specific quirk to a Linux driver, pause and do the following:
The moral to this story is: if you think adding a quirk is the right solution, you're almost certainly wrong.
- Check whether the platform works correctly with the generic Windows driver for the hardware in question. If it requires a platform-specific driver rather than the generic one, adding a quirk is probably ok.
- If the generic Windows driver works, check whether there's any evidence of platform-specific code in the Windows driver. This will typically be in the .inf file, but occasionally you'll want to run strings against the Windows driver and see whether any functions or strings match the platform in question. If there's evidence of special-casing in the generic Windows driver, adding a quirk is probably ok
- If the generic Windows driver works and doesn't appear to have any platform-specific special casing, don't add a quirk. You'll plausibly fix the machine you care about, but you won't fix any others that have the same behaviour. Even worse, if someone does eventually fix the problem properly, there's a risk that your special-casing will now break your system.
The moral to this story is: if you think adding a quirk is the right solution, you're almost certainly wrong.
no subject
Date: 2013-08-10 05:26 am (UTC)if you want to run Linux, install Windows first
Date: 2013-08-10 09:59 am (UTC)Re: if you want to run Linux, install Windows first
Date: 2013-08-11 12:07 pm (UTC)If you want to add a platform-specific quirk to a linux driver, make sure it's supported by Windows
Date: 2013-08-10 05:09 pm (UTC)Re: If you want to add a platform-specific quirk to a linux driver, make sure it's supported by Wind
Date: 2013-08-10 05:18 pm (UTC)Re: If you want to add a platform-specific quirk to a linux driver, make sure it's supported by Wind
Date: 2013-08-11 02:28 pm (UTC)How can this be legally done while accepting both copyright and contract law?
Date: 2013-08-12 11:40 am (UTC)Re: How can this be legally done while accepting both copyright and contract law?
Date: 2013-08-15 10:59 am (UTC)Sad state of affairs
Date: 2013-08-15 10:58 am (UTC)Re: Sad state of affairs
Date: 2013-08-15 01:38 pm (UTC)