]> git.baikalelectronics.ru Git - kernel.git/commit
ata: ahci-dwc: Add platform-specific quirks support
authorBaikal Electronics <support@baikalelectronics.ru>
Fri, 9 Sep 2022 19:36:19 +0000 (22:36 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Fri, 16 Sep 2022 16:40:27 +0000 (01:40 +0900)
commitf433810c6305794de674e6decd75f3cb61a08de4
tree16453b5fab1a4bf6f03d209004d939e39b5417e9
parent315137487c13a4be6d915e1e90b79b07211c02dc
ata: ahci-dwc: Add platform-specific quirks support

Some DWC AHCI SATA IP-core derivatives require to perform small platform
or IP-core specific setups. They are too small to be placed in a dedicated
driver. It's just much easier to have a set of quirks for them right in
the DWC AHCI driver code. Since we are about to add such platform support,
as a pre-requisite we introduce a platform-data based DWC AHCI quirks API.
The platform data can be used to define the flags passed to the
ahci_platform_get_resources() method, additional AHCI host-flags and a set
of callbacks to initialize, re-initialize and clear the platform settings.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/ahci_dwc.c