bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-1150-w1-Disable-kernel-log-spam.patch
1 From 0924b74687bd195b98f223814ff88b4227654e85 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Mon, 20 Nov 2023 14:46:14 +0000
4 Subject: [PATCH] w1: Disable kernel log spam
5
6 See: https://forums.raspberrypi.com/viewtopic.php?p=2159344
7
8 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
9 ---
10 drivers/w1/w1.c | 2 ++
11 1 file changed, 2 insertions(+)
12
13 --- a/drivers/w1/w1.c
14 +++ b/drivers/w1/w1.c
15 @@ -742,8 +742,10 @@ int w1_attach_slave_device(struct w1_mas
16 atomic_set(&sl->refcnt, 1);
17 atomic_inc(&sl->master->refcnt);
18 dev->slave_count++;
19 +#if 0
20 dev_info(&dev->dev, "Attaching one wire slave %02x.%012llx crc %02x\n",
21 rn->family, (unsigned long long)rn->id, rn->crc);
22 +#endif
23
24 /* slave modules need to be loaded in a context with unlocked mutex */
25 mutex_unlock(&dev->mutex);