mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-22 00:42:01 +02:00

The register of GPIO interrupt status is masked before MAC IRQ
is enabled. This is because of hardware deficiency. So manually
clear the interrupt status before using them. Otherwise, GPIO
interrupts will never be reported again. There is a workaround for
clearing interrupts to set GPIO EOI in txgbe_up_complete().
Fixes: aefd013624
("net: txgbe: use irq_domain for interrupt controller")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://lore.kernel.org/r/20240301092956.18544-1-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
14 lines
426 B
C
14 lines
426 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2015 - 2023 Beijing WangXun Technology Co., Ltd. */
|
|
|
|
#ifndef _TXGBE_PHY_H_
|
|
#define _TXGBE_PHY_H_
|
|
|
|
irqreturn_t txgbe_gpio_irq_handler(int irq, void *data);
|
|
void txgbe_reinit_gpio_intr(struct wx *wx);
|
|
irqreturn_t txgbe_link_irq_handler(int irq, void *data);
|
|
int txgbe_init_phy(struct txgbe *txgbe);
|
|
void txgbe_remove_phy(struct txgbe *txgbe);
|
|
|
|
#endif /* _TXGBE_NODE_H_ */
|