mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-11 11:55:28 +02:00
ANDROID: vendor_hooks: Add hook in wakeup functionality
Need this vendor hook to support wakeup functionality for sdio cards. Bug: 343311916 Change-Id: I1d1a34d6d02f4558edf56eccdd09df57d6232c05 Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org> Signed-off-by: Kamasali Satyanarayan <quic_kamasali@quicinc.com>
This commit is contained in:
parent
b7bdc38ae6
commit
773b49c99f
|
@ -394,3 +394,4 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mark_page_accessed);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_madvise_cold_pageout_skip);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_madvise_cold_pageout_skip);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_psi_event);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_psi_event);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_psi_group);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_psi_group);
|
||||||
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmc_sdio_pm_flag_set);
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
#include <linux/mmc/sdio_func.h>
|
#include <linux/mmc/sdio_func.h>
|
||||||
#include <linux/mmc/sdio_ids.h>
|
#include <linux/mmc/sdio_ids.h>
|
||||||
|
|
||||||
|
#include <trace/hooks/mmc.h>
|
||||||
|
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
#include "card.h"
|
#include "card.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
|
@ -1116,6 +1118,8 @@ out:
|
||||||
mmc_release_host(host);
|
mmc_release_host(host);
|
||||||
|
|
||||||
host->pm_flags &= ~MMC_PM_KEEP_POWER;
|
host->pm_flags &= ~MMC_PM_KEEP_POWER;
|
||||||
|
trace_android_vh_mmc_sdio_pm_flag_set(host);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
#include <trace/hooks/vendor_hooks.h>
|
#include <trace/hooks/vendor_hooks.h>
|
||||||
struct mmc_card;
|
struct mmc_card;
|
||||||
struct mmc_queue;
|
struct mmc_queue;
|
||||||
|
struct blk_mq_queue_data;
|
||||||
|
struct mmc_host;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Following tracepoints are not exported in tracefs and provide a
|
* Following tracepoints are not exported in tracefs and provide a
|
||||||
|
@ -17,6 +19,10 @@ DECLARE_HOOK(android_vh_mmc_update_mmc_queue,
|
||||||
TP_PROTO(struct mmc_card *card, struct mmc_queue *mq),
|
TP_PROTO(struct mmc_card *card, struct mmc_queue *mq),
|
||||||
TP_ARGS(card, mq));
|
TP_ARGS(card, mq));
|
||||||
|
|
||||||
|
DECLARE_HOOK(android_vh_mmc_sdio_pm_flag_set,
|
||||||
|
TP_PROTO(struct mmc_host *host),
|
||||||
|
TP_ARGS(host));
|
||||||
|
|
||||||
#endif /* _TRACE_HOOK_MMC_H */
|
#endif /* _TRACE_HOOK_MMC_H */
|
||||||
/* This part must be outside protection */
|
/* This part must be outside protection */
|
||||||
#include <trace/define_trace.h>
|
#include <trace/define_trace.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user