nixpkgs/pkgs/os-specific
mitchmindtree 35e4c0d750 linux: Add kernel config required for QCA6390 bluetooth (XPS 9310)
This commit aims to upstream some kernel config patches from the [xps
9310 module in the nixos-hardware repo][1]. These patches have been in
use by at least a few community members for around 10 months and seem to
consistently and successfully enable bluetooth support for XPS 9310
models that come with the QCA6390 connectivity chip.

Without these patches, bluetooth will not work on the Dell XPS 9310
laptop models that come with the QCA6390. *Note that this isn't all XPS
9310 devices, but seems to be all devices shipped with 32GB RAM.*

The motivation for upstreaming is pretty simple: currently we have to
build the entire kernel every time we want to update it, which takes a
good half hour at least on this little laptop :)

The `whenAtLeast` version params were determined via the entries for
each parameter found at https://cateee.net/lkddb (linked for each
below).

Added config parameters:

- `BT_QCA` - provides the `btqca` module.
  https://cateee.net/lkddb/web-lkddb/BT_QCA.html
- `BT_HCIUART_QCA` - required for QCA6390 bluetooth support.
  Requires `BT_HCIUART`, `BT_HCIUART_SERDEV`
  https://cateee.net/lkddb/web-lkddb/BT_HCIUART_QCA.html
- `BT_HCIUART_SERDEV`
  Requires `SERIAL_DEV_BUS`, `BT_HCIUART`
  https://cateee.net/lkddb/web-lkddb/BT_HCIUART_SERDEV.html
- `BT_HCIUART`
  Requires `SERIAL_DEV_BUS`, `TTY`
  https://cateee.net/lkddb/web-lkddb/BT_HCIUART.html
- `SERIAL_DEV_CTRL_TTYPORT`
  Requires `TTY`, `SERIAL_DEV_BUS` != module
  https://cateee.net/lkddb/web-lkddb/SERIAL_DEV_CTRL_TTYPORT.html
- `SERIAL_DEV_BUS`
  https://cateee.net/lkddb/web-lkddb/SERIAL_DEV_BUS.html

Fwiw, these parameters are also set in [the default Arch config][2].

[1]: https://github.com/NixOS/nixos-hardware/blob/master/dell/xps/13-9310/default.nix
[2]: https://github.com/archlinux/svntogit-packages/blob/packages/linux/trunk/config
2021-11-03 17:17:02 +10:00
..
bsd netbsd.compat: fix libs by using cctools strip as objcopy 2021-09-22 17:42:12 -07:00
darwin sigtool: 0.1.0 -> 0.1.2 2021-09-25 10:38:35 +09:00
linux linux: Add kernel config required for QCA6390 bluetooth (XPS 9310) 2021-11-03 17:17:02 +10:00
solo5
windows treewide: fix redirected URLs 2021-08-01 00:01:50 +07:00