@@ -364,6 +364,32 @@ void ufshcd_disable_irq(struct ufs_hba *hba)
364
364
}
365
365
EXPORT_SYMBOL_GPL (ufshcd_disable_irq );
366
366
367
+ /**
368
+ * ufshcd_enable_intr - enable interrupts
369
+ * @hba: per adapter instance
370
+ * @intrs: interrupt bits
371
+ */
372
+ static void ufshcd_enable_intr (struct ufs_hba * hba , u32 intrs )
373
+ {
374
+ u32 set = ufshcd_readl (hba , REG_INTERRUPT_ENABLE );
375
+
376
+ set |= intrs ;
377
+ ufshcd_writel (hba , set , REG_INTERRUPT_ENABLE );
378
+ }
379
+
380
+ /**
381
+ * ufshcd_disable_intr - disable interrupts
382
+ * @hba: per adapter instance
383
+ * @intrs: interrupt bits
384
+ */
385
+ static void ufshcd_disable_intr (struct ufs_hba * hba , u32 intrs )
386
+ {
387
+ u32 set = ufshcd_readl (hba , REG_INTERRUPT_ENABLE );
388
+
389
+ set &= ~intrs ;
390
+ ufshcd_writel (hba , set , REG_INTERRUPT_ENABLE );
391
+ }
392
+
367
393
static void ufshcd_configure_wb (struct ufs_hba * hba )
368
394
{
369
395
if (!ufshcd_is_wb_allowed (hba ))
@@ -2681,32 +2707,6 @@ static int ufshcd_map_sg(struct ufs_hba *hba, struct ufshcd_lrb *lrbp)
2681
2707
return ufshcd_crypto_fill_prdt (hba , lrbp );
2682
2708
}
2683
2709
2684
- /**
2685
- * ufshcd_enable_intr - enable interrupts
2686
- * @hba: per adapter instance
2687
- * @intrs: interrupt bits
2688
- */
2689
- static void ufshcd_enable_intr (struct ufs_hba * hba , u32 intrs )
2690
- {
2691
- u32 set = ufshcd_readl (hba , REG_INTERRUPT_ENABLE );
2692
-
2693
- set |= intrs ;
2694
- ufshcd_writel (hba , set , REG_INTERRUPT_ENABLE );
2695
- }
2696
-
2697
- /**
2698
- * ufshcd_disable_intr - disable interrupts
2699
- * @hba: per adapter instance
2700
- * @intrs: interrupt bits
2701
- */
2702
- static void ufshcd_disable_intr (struct ufs_hba * hba , u32 intrs )
2703
- {
2704
- u32 set = ufshcd_readl (hba , REG_INTERRUPT_ENABLE );
2705
-
2706
- set &= ~intrs ;
2707
- ufshcd_writel (hba , set , REG_INTERRUPT_ENABLE );
2708
- }
2709
-
2710
2710
/**
2711
2711
* ufshcd_prepare_req_desc_hdr - Fill UTP Transfer request descriptor header according to request
2712
2712
* descriptor according to request
0 commit comments