<div dir="ltr"> <br>My question related to backward compatibility is: If an API’s signature changed from kernel version x.y.z onwards, does the mainline tree code uses the below mentioned logic?<br> <br><br>#if LINUX_VERSION_CODE >= KERNEL_VERSION(x,y,z)<br><br>#else<br><br>#endif<br><br><br><br>Regarding long term release kernels, what here ‘long term’ means? For e.g. v4.4 is part of long term release kernel released in 2016-01-10 and it’s projected EOL is Feb, 2022, here what’s the meaning of EOL?<br><br>How to backport the bug fixes for older kernel tree (for e.g. v4.4) and what is the selection criteria for choosing which bug fixes should go for backporting?<br><br> <br><br>Thanks,<span></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 9, 2018 at 2:37 AM, <span dir="ltr"><<a href="mailto:valdis.kletnieks@vt.edu" target="_blank">valdis.kletnieks@vt.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Sat, 09 Jun 2018 00:57:19 +0530, Shyam Saini said:<br>
<br>
> You always have option to test your hardware and report issues if any.<br>
> If mainline breaks for your hardware then you can choose any known<br>
> stable kernel version.<br>
> You can patch and test it as per your needs.<br>
<br>
</span>If mainline breaks, you should at least make an attempt to either fix your<br>
driver, or call for help. If you drop back to a stable kernel and don't get the<br>
problem fixed, you're going to be stuck on that stable release (which is the<br>
single biggest reason you see so many boxes with wonky hardware that are<br>
still stuck on 3.12 or other ancient kernels - they have out-of-tree drivers that<br>
nobody ever bothered updating...)<br>
<br>
And of course, try to get your driver into the mainline kernel upstream. At that<br>
point, whenever somebody changes a kernel API, it's *their* job to fix anything<br>
in-tree that breaks - including your driver. If you are bothered by that and want<br>
some control over it, list yourself as the maintainer so patches get passed to you<br>
for putting into upstream.<br>
</blockquote></div><br></div>