]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI: mediatek-gen3: Enable async probe by default
authorDouglas Anderson <dianders@chromium.org>
Fri, 20 Dec 2024 22:52:05 +0000 (14:52 -0800)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 13 Jan 2025 07:12:44 +0000 (07:12 +0000)
The mediatek-gen3 driver can run its probe routine fairly slow on some
hardware, which adds to the total time it takes for the system start up.

Thus, turn on async mode for the probe to avoid blocking the rest of the
system.

Link: https://lore.kernel.org/r/20241220145205.1.Ibf2563896c3b1fc133bb46d3fc96ad0041763922@changeid
Signed-off-by: Douglas Anderson <dianders@chromium.org>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/pcie-mediatek-gen3.c

index 1edf5d6708c2df73fd55ec622c356e71aefe04f7..aa24ac9aaecc749b53cfc4faf6399913d20cdbf2 100644 (file)
@@ -1335,6 +1335,7 @@ static struct platform_driver mtk_pcie_driver = {
                .name = "mtk-pcie-gen3",
                .of_match_table = mtk_pcie_of_match,
                .pm = &mtk_pcie_pm_ops,
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
        },
 };