@@ -2423,14 +2423,12 @@ slot_complete_v2_hw(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot)
24232423 slot_err_v2_hw (hisi_hba , task , slot , 2 );
24242424
24252425 if (ts -> stat != SAS_DATA_UNDERRUN )
2426- dev_info (dev , "erroneous completion iptt=%d task=%p dev id=%d "
2427- "CQ hdr: 0x%x 0x%x 0x%x 0x%x "
2428- "Error info: 0x%x 0x%x 0x%x 0x%x\n" ,
2429- slot -> idx , task , sas_dev -> device_id ,
2430- complete_hdr -> dw0 , complete_hdr -> dw1 ,
2431- complete_hdr -> act , complete_hdr -> dw3 ,
2432- error_info [0 ], error_info [1 ],
2433- error_info [2 ], error_info [3 ]);
2426+ dev_info (dev , "erroneous completion iptt=%d task=%p dev id=%d CQ hdr: 0x%x 0x%x 0x%x 0x%x Error info: 0x%x 0x%x 0x%x 0x%x\n" ,
2427+ slot -> idx , task , sas_dev -> device_id ,
2428+ complete_hdr -> dw0 , complete_hdr -> dw1 ,
2429+ complete_hdr -> act , complete_hdr -> dw3 ,
2430+ error_info [0 ], error_info [1 ],
2431+ error_info [2 ], error_info [3 ]);
24342432
24352433 if (unlikely (slot -> abort ))
24362434 return ts -> stat ;
@@ -2502,7 +2500,7 @@ slot_complete_v2_hw(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot)
25022500 spin_lock_irqsave (& device -> done_lock , flags );
25032501 if (test_bit (SAS_HA_FROZEN , & ha -> state )) {
25042502 spin_unlock_irqrestore (& device -> done_lock , flags );
2505- dev_info (dev , "slot complete: task(%p) ignored\n " ,
2503+ dev_info (dev , "slot complete: task(%p) ignored\n" ,
25062504 task );
25072505 return sts ;
25082506 }
@@ -2935,7 +2933,7 @@ static irqreturn_t int_chnl_int_v2_hw(int irq_no, void *p)
29352933
29362934 if (irq_value2 & BIT (CHL_INT2_SL_IDAF_TOUT_CONF_OFF )) {
29372935 dev_warn (dev , "phy%d identify timeout\n" ,
2938- phy_no );
2936+ phy_no );
29392937 hisi_sas_notify_phy_event (phy ,
29402938 HISI_PHYE_LINK_RESET );
29412939 }
@@ -3036,7 +3034,7 @@ static const struct hisi_sas_hw_error axi_error[] = {
30363034 { .msk = BIT (5 ), .msg = "SATA_AXI_R_ERR" },
30373035 { .msk = BIT (6 ), .msg = "DQE_AXI_R_ERR" },
30383036 { .msk = BIT (7 ), .msg = "CQE_AXI_W_ERR" },
3039- {},
3037+ {}
30403038};
30413039
30423040static const struct hisi_sas_hw_error fifo_error [] = {
@@ -3045,7 +3043,7 @@ static const struct hisi_sas_hw_error fifo_error[] = {
30453043 { .msk = BIT (10 ), .msg = "GETDQE_FIFO" },
30463044 { .msk = BIT (11 ), .msg = "CMDP_FIFO" },
30473045 { .msk = BIT (12 ), .msg = "AWTCTRL_FIFO" },
3048- {},
3046+ {}
30493047};
30503048
30513049static const struct hisi_sas_hw_error fatal_axi_errors [] = {
@@ -3109,12 +3107,12 @@ static irqreturn_t fatal_axi_int_v2_hw(int irq_no, void *p)
31093107 if (!(err_value & sub -> msk ))
31103108 continue ;
31113109 dev_err (dev , "%s (0x%x) found!\n" ,
3112- sub -> msg , irq_value );
3110+ sub -> msg , irq_value );
31133111 queue_work (hisi_hba -> wq , & hisi_hba -> rst_work );
31143112 }
31153113 } else {
31163114 dev_err (dev , "%s (0x%x) found!\n" ,
3117- axi_error -> msg , irq_value );
3115+ axi_error -> msg , irq_value );
31183116 queue_work (hisi_hba -> wq , & hisi_hba -> rst_work );
31193117 }
31203118 }
@@ -3258,7 +3256,7 @@ static irqreturn_t sata_int_v2_hw(int irq_no, void *p)
32583256 /* check ERR bit of Status Register */
32593257 if (fis -> status & ATA_ERR ) {
32603258 dev_warn (dev , "sata int: phy%d FIS status: 0x%x\n" , phy_no ,
3261- fis -> status );
3259+ fis -> status );
32623260 hisi_sas_notify_phy_event (phy , HISI_PHYE_LINK_RESET );
32633261 res = IRQ_NONE ;
32643262 goto end ;
@@ -3349,8 +3347,7 @@ static int interrupt_init_v2_hw(struct hisi_hba *hisi_hba)
33493347 rc = devm_request_irq (dev , irq , phy_interrupts [i ], 0 ,
33503348 DRV_NAME " phy" , hisi_hba );
33513349 if (rc ) {
3352- dev_err (dev , "irq init: could not request "
3353- "phy interrupt %d, rc=%d\n" ,
3350+ dev_err (dev , "irq init: could not request phy interrupt %d, rc=%d\n" ,
33543351 irq , rc );
33553352 rc = - ENOENT ;
33563353 goto free_phy_int_irqs ;
@@ -3364,8 +3361,7 @@ static int interrupt_init_v2_hw(struct hisi_hba *hisi_hba)
33643361 rc = devm_request_irq (dev , irq , sata_int_v2_hw , 0 ,
33653362 DRV_NAME " sata" , phy );
33663363 if (rc ) {
3367- dev_err (dev , "irq init: could not request "
3368- "sata interrupt %d, rc=%d\n" ,
3364+ dev_err (dev , "irq init: could not request sata interrupt %d, rc=%d\n" ,
33693365 irq , rc );
33703366 rc = - ENOENT ;
33713367 goto free_sata_int_irqs ;
@@ -3377,8 +3373,7 @@ static int interrupt_init_v2_hw(struct hisi_hba *hisi_hba)
33773373 rc = devm_request_irq (dev , irq , fatal_interrupts [fatal_no ], 0 ,
33783374 DRV_NAME " fatal" , hisi_hba );
33793375 if (rc ) {
3380- dev_err (dev ,
3381- "irq init: could not request fatal interrupt %d, rc=%d\n" ,
3376+ dev_err (dev , "irq init: could not request fatal interrupt %d, rc=%d\n" ,
33823377 irq , rc );
33833378 rc = - ENOENT ;
33843379 goto free_fatal_int_irqs ;
@@ -3393,8 +3388,7 @@ static int interrupt_init_v2_hw(struct hisi_hba *hisi_hba)
33933388 rc = devm_request_irq (dev , irq , cq_interrupt_v2_hw , 0 ,
33943389 DRV_NAME " cq" , cq );
33953390 if (rc ) {
3396- dev_err (dev ,
3397- "irq init: could not request cq interrupt %d, rc=%d\n" ,
3391+ dev_err (dev , "irq init: could not request cq interrupt %d, rc=%d\n" ,
33983392 irq , rc );
33993393 rc = - ENOENT ;
34003394 goto free_cq_int_irqs ;
@@ -3546,7 +3540,7 @@ static int write_gpio_v2_hw(struct hisi_hba *hisi_hba, u8 reg_type,
35463540 break ;
35473541 default :
35483542 dev_err (dev , "write gpio: unsupported or bad reg type %d\n" ,
3549- reg_type );
3543+ reg_type );
35503544 return - EINVAL ;
35513545 }
35523546
0 commit comments