# \[PATCH v6 7/9\] gpio: gpio-aspeed-sgpio: Move irq\_chip to aspeed-sgpio struct

- From: Linus Walleij \<hidden\>
- Date: 2021-07-23 09:59:33 
- List: linux-aspeed
- Page: https://ratatoskr.run/linux-aspeed/2021/07/1455756
- Thread: https://ratatoskr.run/linux-gpio/2021/07/1441778/t.md

```text
On Mon, Jul 12, 2021 at 12:04 PM Steven Lee [ref] wrote:

> The current design initializes irq->chip from a global irqchip struct,
> which causes multiple sgpio devices use the same irq_chip.
> The patch moves irq_chip to aspeed_sgpio struct for initializing
> irq_chip from their private gpio struct.
>
> Signed-off-by: Steven Lee <redacted>
> Reviewed-by: Andrew Jeffery <redacted>

Reviewed-by: Linus Walleij <redacted>

Yours,
Linus Walleij
```
