mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 16:55:17 +07:00
c3c0c2e18d
Depending on how you look at it, you can either say that:
a) There is a PDC hardware issue (with the specific IP rev that exists
on sc7180) that causes the PDC not to work properly when configured
to handle dual edges.
b) The dual edge feature of the PDC hardware was only added in later
HW revisions and thus isn't in all hardware.
Regardless of how you look at it, let's work around the lack of dual
edge support by only ever letting our parent see requests for single
edge interrupts on affected hardware.
NOTE: it's possible that a driver requesting a dual edge interrupt
might get several edges coalesced into a single IRQ. For instance if
a line starts low and then goes high and low again, the driver that
requested the IRQ is not guaranteed to be called twice. However, it
is guaranteed that once the driver's interrupt handler starts running
its first instruction that any new edges coming in will cause the
interrupt to fire again. This is relatively commonplace for dual-edge
gpio interrupts (many gpio controllers require software to emulate
dual edge with single edge) so client drivers should be setup to
handle it.
Fixes: e35a6ae0eb
("pinctrl/msm: Setup GPIO chip in hierarchy")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200714080254.v3.1.Ie0d730120b232a86a4eac1e2909bcbec844d1766@changeid
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
231 lines
7.2 KiB
Plaintext
231 lines
7.2 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
if (ARCH_QCOM || COMPILE_TEST)
|
|
|
|
config PINCTRL_MSM
|
|
bool
|
|
select PINMUX
|
|
select PINCONF
|
|
select GENERIC_PINCONF
|
|
select GPIOLIB_IRQCHIP
|
|
select IRQ_DOMAIN_HIERARCHY
|
|
select IRQ_FASTEOI_HIERARCHY_HANDLERS
|
|
|
|
config PINCTRL_APQ8064
|
|
tristate "Qualcomm APQ8064 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm APQ8064 platform.
|
|
|
|
config PINCTRL_APQ8084
|
|
tristate "Qualcomm APQ8084 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm APQ8084 platform.
|
|
|
|
config PINCTRL_IPQ4019
|
|
tristate "Qualcomm IPQ4019 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm IPQ4019 platform.
|
|
|
|
config PINCTRL_IPQ8064
|
|
tristate "Qualcomm IPQ8064 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm IPQ8064 platform.
|
|
|
|
config PINCTRL_IPQ8074
|
|
tristate "Qualcomm Technologies, Inc. IPQ8074 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for
|
|
the Qualcomm Technologies Inc. TLMM block found on the
|
|
Qualcomm Technologies Inc. IPQ8074 platform. Select this for
|
|
IPQ8074.
|
|
|
|
config PINCTRL_IPQ6018
|
|
tristate "Qualcomm Technologies, Inc. IPQ6018 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for
|
|
the Qualcomm Technologies Inc. TLMM block found on the
|
|
Qualcomm Technologies Inc. IPQ6018 platform. Select this for
|
|
IPQ6018.
|
|
|
|
config PINCTRL_MSM8660
|
|
tristate "Qualcomm 8660 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm 8660 platform.
|
|
|
|
config PINCTRL_MSM8960
|
|
tristate "Qualcomm 8960 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm 8960 platform.
|
|
|
|
config PINCTRL_MDM9615
|
|
tristate "Qualcomm 9615 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm 9615 platform.
|
|
|
|
config PINCTRL_MSM8X74
|
|
tristate "Qualcomm 8x74 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm 8974 platform.
|
|
|
|
config PINCTRL_MSM8916
|
|
tristate "Qualcomm 8916 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found on the Qualcomm 8916 platform.
|
|
|
|
config PINCTRL_MSM8976
|
|
tristate "Qualcomm 8976 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found on the Qualcomm MSM8976 platform.
|
|
The Qualcomm MSM8956, APQ8056, APQ8076 platforms are also
|
|
supported by this driver.
|
|
|
|
config PINCTRL_MSM8994
|
|
tristate "Qualcomm 8994 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm 8994 platform. The
|
|
Qualcomm 8992 platform is also supported by this driver.
|
|
|
|
config PINCTRL_MSM8996
|
|
tristate "Qualcomm MSM8996 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm MSM8996 platform.
|
|
|
|
config PINCTRL_MSM8998
|
|
tristate "Qualcomm MSM8998 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm TLMM block found in the Qualcomm MSM8998 platform.
|
|
|
|
config PINCTRL_QCS404
|
|
tristate "Qualcomm QCS404 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
TLMM block found in the Qualcomm QCS404 platform.
|
|
|
|
config PINCTRL_QDF2XXX
|
|
tristate "Qualcomm Technologies QDF2xxx pin controller driver"
|
|
depends on GPIOLIB && ACPI
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the GPIO driver for the TLMM block found on the
|
|
Qualcomm Technologies QDF2xxx SOCs.
|
|
|
|
config PINCTRL_QCOM_SPMI_PMIC
|
|
tristate "Qualcomm SPMI PMIC pin controller driver"
|
|
depends on GPIOLIB && OF && SPMI
|
|
select REGMAP_SPMI
|
|
select PINMUX
|
|
select PINCONF
|
|
select GENERIC_PINCONF
|
|
select GPIOLIB_IRQCHIP
|
|
select IRQ_DOMAIN_HIERARCHY
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
|
|
which are using SPMI for communication with SoC. Example PMIC's
|
|
devices are pm8841, pm8941 and pma8084.
|
|
|
|
config PINCTRL_QCOM_SSBI_PMIC
|
|
tristate "Qualcomm SSBI PMIC pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINMUX
|
|
select PINCONF
|
|
select GENERIC_PINCONF
|
|
select GPIOLIB_IRQCHIP
|
|
select IRQ_DOMAIN_HIERARCHY
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
|
|
which are using SSBI for communication with SoC. Example PMIC's
|
|
devices are pm8058 and pm8921.
|
|
|
|
config PINCTRL_SC7180
|
|
tristate "Qualcomm Technologies Inc SC7180 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm Technologies Inc TLMM block found on the Qualcomm
|
|
Technologies Inc SC7180 platform.
|
|
|
|
config PINCTRL_SDM660
|
|
tristate "Qualcomm Technologies Inc SDM660 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm Technologies Inc TLMM block found on the Qualcomm
|
|
Technologies Inc SDM660 platform.
|
|
|
|
config PINCTRL_SDM845
|
|
tristate "Qualcomm Technologies Inc SDM845 pin controller driver"
|
|
depends on GPIOLIB && (OF || ACPI)
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm Technologies Inc TLMM block found on the Qualcomm
|
|
Technologies Inc SDM845 platform.
|
|
|
|
config PINCTRL_SM8150
|
|
tristate "Qualcomm Technologies Inc SM8150 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm Technologies Inc TLMM block found on the Qualcomm
|
|
Technologies Inc SM8150 platform.
|
|
|
|
config PINCTRL_SM8250
|
|
tristate "Qualcomm Technologies Inc SM8250 pin controller driver"
|
|
depends on GPIOLIB && OF
|
|
select PINCTRL_MSM
|
|
help
|
|
This is the pinctrl, pinmux, pinconf and gpiolib driver for the
|
|
Qualcomm Technologies Inc TLMM block found on the Qualcomm
|
|
Technologies Inc SM8250 platform.
|
|
|
|
endif
|