[PATCH 3/3] media: cxd2880: lower routine tune and L1 messages to debug level

From: Enrico Lorenzoni

Date: Wed Nov 18 2026 - 17:08:16 EST


cxd2880_set_frontend() logs two lines at KERN_INFO on every tune:

cxd2880: cxd2880_set_frontend: sys:16 freq:...
cxd2880: cxd2880_set_frontend: tune result 0

and cxd2880_set_ber_per_period_t2() logs at KERN_INFO when the DVB-T2
L1 signalling, the PLP information or the BB header cannot be read yet,
which is the normal state before the demodulator has locked.

A channel scan, or an application that retunes often (for example a
media server rotating its tuners through the muxes), therefore fills the
kernel log with routine messages. None of them reports a problem the
user can act on.

Print them with pr_debug() so they remain available through dynamic
debug.

The two set_frontend messages have been at debug level in an
out-of-tree build of this driver on Raspberry Pi systems for several
months.

The change and this changelog were prepared with the help of an AI coding
assistant (Anthropic Claude). I have reviewed them.

Signed-off-by: Enrico Lorenzoni <enricolorenzoni59@xxxxxxxxx>
---
.../media/dvb-frontends/cxd2880/cxd2880_top.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/media/dvb-frontends/cxd2880/cxd2880_top.c b/drivers/media/dvb-frontends/cxd2880/cxd2880_top.c
index 4daebb7ff..ca101b51b 100644
--- a/drivers/media/dvb-frontends/cxd2880/cxd2880_top.c
+++ b/drivers/media/dvb-frontends/cxd2880/cxd2880_top.c
@@ -825,20 +825,20 @@ static int cxd2880_set_ber_per_period_t2(struct dvb_frontend *fe)

ret = cxd2880_tnrdmd_dvbt2_mon_l1_pre(&priv->tnrdmd, &l1pre);
if (ret) {
- pr_info("l1 pre error\n");
+ pr_debug("l1 pre error\n");
goto error_ber_setting;
}

ret = cxd2880_tnrdmd_dvbt2_mon_active_plp(&priv->tnrdmd,
CXD2880_DVBT2_PLP_DATA, &plp);
if (ret) {
- pr_info("plp info error\n");
+ pr_debug("plp info error\n");
goto error_ber_setting;
}

ret = cxd2880_tnrdmd_dvbt2_mon_l1_post(&priv->tnrdmd, &l1post);
if (ret) {
- pr_info("l1 post error\n");
+ pr_debug("l1 post error\n");
goto error_ber_setting;
}

@@ -906,7 +906,7 @@ static int cxd2880_set_ber_per_period_t2(struct dvb_frontend *fe)
CXD2880_DVBT2_PLP_DATA,
&bbheader);
if (ret) {
- pr_info("bb header error\n");
+ pr_debug("bb header error\n");
goto error_ucblock_setting;
}

@@ -925,7 +925,7 @@ static int cxd2880_set_ber_per_period_t2(struct dvb_frontend *fe)
(pre_ber_rate * kbch_tbl[plp.fec][plp.plp_cr] + 748) /
1496;
} else {
- pr_info("plp mode is not Normal or HEM\n");
+ pr_debug("plp mode is not Normal or HEM\n");
goto error_ucblock_setting;
}

@@ -1087,8 +1087,8 @@ static int cxd2880_set_frontend(struct dvb_frontend *fe)

priv->s = 0;

- pr_info("sys:%d freq:%d bw:%d\n",
- c->delivery_system, c->frequency, bw);
+ pr_debug("sys:%d freq:%d bw:%d\n",
+ c->delivery_system, c->frequency, bw);
mutex_lock(priv->spi_mutex);
if (c->delivery_system == SYS_DVBT) {
priv->tnrdmd.sys = CXD2880_DTV_SYS_DVBT;
@@ -1112,7 +1112,7 @@ static int cxd2880_set_frontend(struct dvb_frontend *fe)
}
mutex_unlock(priv->spi_mutex);

- pr_info("tune result %d\n", ret);
+ pr_debug("tune result %d\n", ret);

return ret;
}
--
2.47.3