ANDROID: vendor_hooks: Add hook in wakeup functionality
Need this verndor hook to support wakeup functionality for sdio cards. Bug: 231668342 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:
@@ -316,3 +316,4 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_blk_rq_ctx_init);
|
|||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmap_region);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmap_region);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_try_to_unmap_one);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_try_to_unmap_one);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_shrink_node_memcgs);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_shrink_node_memcgs);
|
||||||
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmc_sdio_pm_flag_set);
|
||||||
|
|||||||
@@ -15,6 +15,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"
|
||||||
@@ -1094,6 +1096,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#define _TRACE_HOOK_MMC_H
|
#define _TRACE_HOOK_MMC_H
|
||||||
#include <trace/hooks/vendor_hooks.h>
|
#include <trace/hooks/vendor_hooks.h>
|
||||||
struct blk_mq_queue_data;
|
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
|
||||||
@@ -16,6 +17,10 @@ DECLARE_HOOK(android_vh_mmc_check_status,
|
|||||||
TP_PROTO(const struct blk_mq_queue_data *bd, int *ret),
|
TP_PROTO(const struct blk_mq_queue_data *bd, int *ret),
|
||||||
TP_ARGS(bd, ret));
|
TP_ARGS(bd, ret));
|
||||||
|
|
||||||
|
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user