Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / mmc / host / sdhci-cqhci.h
blobcf8e7ba71bbd7b932191c3e9fca02e4095a12676
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright 2022 The Chromium OS Authors
5 * Support that applies to the combination of SDHCI and CQHCI, while not
6 * expressing a dependency between the two modules.
7 */
9 #ifndef __MMC_HOST_SDHCI_CQHCI_H__
10 #define __MMC_HOST_SDHCI_CQHCI_H__
12 #include "cqhci.h"
13 #include "sdhci.h"
15 static inline void sdhci_and_cqhci_reset(struct sdhci_host *host, u8 mask)
17 if ((host->mmc->caps2 & MMC_CAP2_CQE) && (mask & SDHCI_RESET_ALL) &&
18 host->mmc->cqe_private)
19 cqhci_deactivate(host->mmc);
21 sdhci_reset(host, mask);
24 #endif /* __MMC_HOST_SDHCI_CQHCI_H__ */