Skip to content

Commit 318da13

Browse files
Mukesh Ojhaandersson
authored andcommitted
remoteproc: qcom: Expand MD_* as MINIDUMP_*
Expand MD_* as MINIDUMP_* which makes more sense than the abbreviation. Signed-off-by: Mukesh Ojha <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 637e98b commit 318da13

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/remoteproc/qcom_common.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
#define MAX_NUM_OF_SS 10
3030
#define MAX_REGION_NAME_LENGTH 16
3131
#define SBL_MINIDUMP_SMEM_ID 602
32-
#define MD_REGION_VALID ('V' << 24 | 'A' << 16 | 'L' << 8 | 'I' << 0)
33-
#define MD_SS_ENCR_DONE ('D' << 24 | 'O' << 16 | 'N' << 8 | 'E' << 0)
34-
#define MD_SS_ENABLED ('E' << 24 | 'N' << 16 | 'B' << 8 | 'L' << 0)
32+
#define MINIDUMP_REGION_VALID ('V' << 24 | 'A' << 16 | 'L' << 8 | 'I' << 0)
33+
#define MINIDUMP_SS_ENCR_DONE ('D' << 24 | 'O' << 16 | 'N' << 8 | 'E' << 0)
34+
#define MINIDUMP_SS_ENABLED ('E' << 24 | 'N' << 16 | 'B' << 8 | 'L' << 0)
3535

3636
/**
3737
* struct minidump_region - Minidump region
@@ -125,7 +125,7 @@ static int qcom_add_minidump_segments(struct rproc *rproc, struct minidump_subsy
125125

126126
for (i = 0; i < seg_cnt; i++) {
127127
memcpy_fromio(&region, ptr + i, sizeof(region));
128-
if (le32_to_cpu(region.valid) == MD_REGION_VALID) {
128+
if (le32_to_cpu(region.valid) == MINIDUMP_REGION_VALID) {
129129
name = kstrndup(region.name, MAX_REGION_NAME_LENGTH - 1, GFP_KERNEL);
130130
if (!name) {
131131
iounmap(ptr);
@@ -168,11 +168,11 @@ void qcom_minidump(struct rproc *rproc, unsigned int minidump_id,
168168
*/
169169
if (subsystem->regions_baseptr == 0 ||
170170
le32_to_cpu(subsystem->status) != 1 ||
171-
le32_to_cpu(subsystem->enabled) != MD_SS_ENABLED) {
171+
le32_to_cpu(subsystem->enabled) != MINIDUMP_SS_ENABLED) {
172172
return rproc_coredump(rproc);
173173
}
174174

175-
if (le32_to_cpu(subsystem->encryption_status) != MD_SS_ENCR_DONE) {
175+
if (le32_to_cpu(subsystem->encryption_status) != MINIDUMP_SS_ENCR_DONE) {
176176
dev_err(&rproc->dev, "Minidump not ready, skipping\n");
177177
return;
178178
}

0 commit comments

Comments
 (0)