File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -900,4 +900,20 @@ void sdhci_switch_external_dma(struct sdhci_host *host, bool en);
900
900
void sdhci_set_data_timeout_irq (struct sdhci_host * host , bool enable );
901
901
void __sdhci_set_timeout (struct sdhci_host * host , struct mmc_command * cmd );
902
902
903
+ #if defined(CONFIG_DYNAMIC_DEBUG ) || \
904
+ (defined(CONFIG_DYNAMIC_DEBUG_CORE ) && defined(DYNAMIC_DEBUG_MODULE ))
905
+ #define SDHCI_DBG_ANYWAY 0
906
+ #elif defined(DEBUG )
907
+ #define SDHCI_DBG_ANYWAY 1
908
+ #else
909
+ #define SDHCI_DBG_ANYWAY 0
910
+ #endif
911
+
912
+ #define sdhci_dbg_dumpregs (host , fmt ) \
913
+ do { \
914
+ DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
915
+ if (DYNAMIC_DEBUG_BRANCH(descriptor) || SDHCI_DBG_ANYWAY) \
916
+ sdhci_dumpregs(host); \
917
+ } while (0)
918
+
903
919
#endif /* __SDHCI_HW_H */
You can’t perform that action at this time.
0 commit comments