Larry Finger <[email protected]> writes:

> From: Ping-Ke Shih <[email protected]>
>
> 8822be checks H2CQ by int_d, so we extend to four ISR.
> Also, irq_mask is extended to four.
>
> Signed-off-by: Ping-Ke Shih <[email protected]>
> Signed-off-by: Larry Finger <[email protected]>
> Cc: Yan-Hsuan Chuang <[email protected]>
> Cc: Birming Chiu <[email protected]>
> Cc: Shaofu <[email protected]>
> Cc: Steven Ting <[email protected]>

[...]

> @@ -936,7 +937,7 @@ static irqreturn_t _rtl_pci_interrupt(int irq, void 
> *dev_id)
>       rtlpriv->cfg->ops->disable_interrupt(hw);
>  
>       /*read ISR: 4/8bytes */
> -     rtlpriv->cfg->ops->interrupt_recognized(hw, &inta, &intb);
> +     rtlpriv->cfg->ops->interrupt_recognized(hw, &inta, &intb, &intc, &intd);
>  
>       /*Shared IRQ or HW disappeared */
>       if (!inta || inta == 0xffff)
> diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.h 
> b/drivers/net/wireless/realtek/rtlwifi/pci.h
> index ce33fe7bc7c4..e7d070e8da2d 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/pci.h
> +++ b/drivers/net/wireless/realtek/rtlwifi/pci.h
> @@ -211,7 +211,7 @@ struct rtl_pci {
>  
>       /*irq */
>       u8 irq_alloc;
> -     u32 irq_mask[2];
> +     u32 irq_mask[4];        /* 0-1: normal, 2: unused, 3: h2c */
>       u32 sys_irq_mask;
>  
>       /*Bcn control register setting */
> diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c 
> b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
> index 2c671364c521..e30a18e64ff5 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
> @@ -1472,7 +1472,8 @@ void rtl88ee_card_disable(struct ieee80211_hw *hw)
>  }
>  
>  void rtl88ee_interrupt_recognized(struct ieee80211_hw *hw,
> -                               u32 *p_inta, u32 *p_intb)
> +                               u32 *p_inta, u32 *p_intb,
> +                               u32 *p_intc, u32 *p_intd)
>  {

In the future you might want to convert this to a struct which is a lot
easier to handle. But no need to resend because of this.

-- 
Kalle Valo

Reply via email to