Skip to contentSkip to conversation

soc: fsl: qe: ucc: Export ucc_mux_set_grant_tsa_bkpt

PATCH In review Herve Codina 3 participants 3 messages Sep 5, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: fsl: qe: ucc: Export ucc_mux_set_grant_tsa_bkpt

When TSA is compiled as module the following error is reported:
"ucc_mux_set_grant_tsa_bkpt" [drivers/soc/fsl/qe/tsa.ko] undefined!

Indeed, the ucc_mux_set_grant_tsa_bkpt symbol is not exported.

Simply export ucc_mux_set_grant_tsa_bkpt.

---
 drivers/soc/fsl/qe/ucc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/fsl/qe/ucc.c +1 -0
index 21dbcd787cd5..892aa5931d5b 100644
@@ -114,6 +114,7 @@ int ucc_mux_set_grant_tsa_bkpt(unsigned int ucc_num, int set, u32 mask)
 
 	return 0;
 }
+EXPORT_SYMBOL(ucc_mux_set_grant_tsa_bkpt);
 
 int ucc_set_qe_mux_rxtx(unsigned int ucc_num, enum qe_clock clock,
 	enum comm_dir mode)
Signature · 1 line
2.46.0
Acked-by on v1 1/1
#1 lore raw

Le 05/09/2024 à 09:22, Herve Codina a écrit :

Quoted 10 lines

When TSA is compiled as module the following error is reported:
"ucc_mux_set_grant_tsa_bkpt" [drivers/soc/fsl/qe/tsa.ko] undefined!

Indeed, the ucc_mux_set_grant_tsa_bkpt symbol is not exported.

Simply export ucc_mux_set_grant_tsa_bkpt.

Arnd, it is ok for you to take this patch directly ?

Thanks
Christophe

Quoted 16 lines
---
  drivers/soc/fsl/qe/ucc.c | 1 +
  1 file changed, 1 insertion(+)
drivers/soc/fsl/qe/ucc.c +1 -0
index 21dbcd787cd5..892aa5931d5b 100644
@@ -114,6 +114,7 @@ int ucc_mux_set_grant_tsa_bkpt(unsigned int ucc_num, int set, u32 mask)
 
  	return 0;
  }
+EXPORT_SYMBOL(ucc_mux_set_grant_tsa_bkpt);
 
  int ucc_set_qe_mux_rxtx(unsigned int ucc_num, enum qe_clock clock,
  	enum comm_dir mode)
#2 lore raw
Quoted 8 lines · Christophe Leroy

Le 05/09/2024 à 09:22, Herve Codina a écrit :

Quoted 7 lines

When TSA is compiled as module the following error is reported:
"ucc_mux_set_grant_tsa_bkpt" [drivers/soc/fsl/qe/tsa.ko] undefined!

Indeed, the ucc_mux_set_grant_tsa_bkpt symbol is not exported.

Simply export ucc_mux_set_grant_tsa_bkpt.

Quoted 7 lines
Quoted 3 lines

Arnd, it is ok for you to take this patch directly ?

I've applied this one directly, but I'm not always paying attention to patches flying by, so if you have more fixes like this in the future, I recommend that you forward those to [email protected], either as a patch or a pull request.

That way, I see them in patchwork and will apply them from there.

Arnd