Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: clean up some irq service code for dcn201

[Why and how]

Clean up some irq service code for dcn201.

Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Liu Xi <xi.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Liu Xi and committed by
Alex Deucher
ee47b8db d417ef7b

+11 -8
+10 -7
drivers/gpu/drm/amd/display/dc/irq/dcn201/irq_service_dcn201.c
··· 28 28 #include "include/logger_interface.h" 29 29 30 30 #include "../dce110/irq_service_dce110.h" 31 + #include "irq_service_dcn201.h" 31 32 32 33 #include "dcn/dcn_2_0_3_offset.h" 33 34 #include "dcn/dcn_2_0_3_sh_mask.h" 34 35 35 36 #include "cyan_skillfish_ip_offset.h" 36 37 #include "soc15_hw_ip.h" 37 - 38 - #include "irq_service_dcn201.h" 39 - 40 38 #include "ivsrcid/dcn/irqsrcs_dcn_1_0.h" 41 39 42 - static enum dc_irq_source to_dal_irq_source_dcn201(struct irq_service *irq_service, 43 - uint32_t src_id, 44 - uint32_t ext_id) 40 + enum dc_irq_source to_dal_irq_source_dcn201( 41 + struct irq_service *irq_service, 42 + uint32_t src_id, 43 + uint32_t ext_id) 45 44 { 46 45 switch (src_id) { 47 46 case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP: ··· 78 79 default: 79 80 return DC_IRQ_SOURCE_INVALID; 80 81 } 81 - return DC_IRQ_SOURCE_INVALID; 82 82 } 83 83 84 84 static bool hpd_ack( ··· 132 134 .ack = NULL 133 135 }; 134 136 static const struct irq_source_info_funcs vupdate_no_lock_irq_info_funcs = { 137 + .set = NULL, 138 + .ack = NULL 139 + }; 140 + 141 + static const struct irq_source_info_funcs dmub_outbox_irq_info_funcs = { 135 142 .set = NULL, 136 143 .ack = NULL 137 144 };
+1 -1
drivers/gpu/drm/amd/display/dc/irq/dcn201/irq_service_dcn201.h
··· 1 1 /* 2 - * Copyright 2018 Advanced Micro Devices, Inc. 2 + * Copyright 2022 Advanced Micro Devices, Inc. 3 3 * 4 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 5 * copy of this software and associated documentation files (the "Software"),