Commit dc5da4cf authored by John Garry's avatar John Garry Committed by Martin K. Petersen

hisi_sas: Add bcast interrupt handler

This is for expander broadcast event.
Signed-off-by: default avatarJohn Garry <>
Reviewed-by: default avatarArnd Bergmann <>
Reviewed-by: default avatarHannes Reinecke <>
Signed-off-by: default avatarMartin K. Petersen <>
parent 184a4635
......@@ -1333,6 +1333,35 @@ end:
return res;
static irqreturn_t int_bcast_v1_hw(int irq, void *p)
struct hisi_sas_phy *phy = p;
struct hisi_hba *hisi_hba = phy->hisi_hba;
struct asd_sas_phy *sas_phy = &phy->sas_phy;
struct sas_ha_struct *sha = &hisi_hba->sha;
struct device *dev = &hisi_hba->pdev->dev;
int phy_no = sas_phy->id;
u32 irq_value;
irqreturn_t res = IRQ_HANDLED;
irq_value = hisi_sas_phy_read32(hisi_hba, phy_no, CHL_INT2);
if (!(irq_value & CHL_INT2_SL_RX_BC_ACK_MSK)) {
dev_err(dev, "bcast: irq_value = %x not set enable bit",
res = IRQ_NONE;
goto end;
sha->notify_port_event(sas_phy, PORTE_BROADCAST_RCVD);
hisi_sas_phy_write32(hisi_hba, phy_no, CHL_INT2,
return res;
static irqreturn_t int_abnormal_v1_hw(int irq, void *p)
struct hisi_sas_phy *phy = p;
......@@ -1438,12 +1467,14 @@ static irqreturn_t cq_interrupt_v1_hw(int irq, void *p)
static const char phy_int_names[HISI_SAS_PHY_INT_NR][32] = {
{"Phy Up"},
static const char cq_int_name[32] = "cq";
static irq_handler_t phy_interrupts[HISI_SAS_PHY_INT_NR] = {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment