kernel: backport a patch that allows drivers to tweak the TSQ logic