Linux Looks To Finally Remove Its Legacy IDE Driver Support
Written by Michael Larabel in Linux Storage on 20 March 2021 at 12:00 AM EDT. 24 Comments
LINUX STORAGE --
It's 2021 and proposed patches by upstream developers would finally remove Linux's legacy IDE driver code.

The proposed code is for removing the legacy IDE driver support from the mainline kernel tree, likely beginning with the 5.13 kernel assuming all goes as planned. It was two years ago that the legacy IDE driver code was deprecated and marked for removal in 2021... We are now well into 2021, so Christoph Hellwig is following through and looking to have that removed.


It's important to note though this removal is just about the legacy IDE driver support. IDE support itself will still be available on modern Linux kernel versions through the libata layer, which nearly all users have already been relying upon for many years if still rocking out any IDE devices.


The Linux kernel for a long time -- more than one decade, going towards two decades -- relied upon the libata path to much better support. The libata code will be sticking around while the prior IDE driver support is what's slated for removal.

Hellwig noted in Thursday's remove the legacy ide driver:
we've been trying to get rid of the legacy ide driver for a while now, and finally scheduled a removal for 2021, which is three month old now.

In general distros and most defconfigs have switched to libata long ago, but there are a few exceptions. This series first switches over all remaining defconfigs to use libata and then removes the legacy ide driver.

libata mostly covers all hardware supported by the legacy ide driver. There are three mips drivers that are not supported, but the linux-mips list could not identify any users of those. There also are two m68k drivers that do not have libata equivalents, which might or might not have users, so we'll need some input and possibly help from the m68k
community here.

So while there still might be a few niche legacy hardware platforms still making use of the legacy IDE driver, removing it has clear benefits with lightening up the kernel by around 41k+ lines of code and allow for more clean-ups to come within the Linux kernel's block layer.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week