From db467023bd136c97c2e13c3a8b9e41dbdfafbc66 Mon Sep 17 00:00:00 2001
From: Jason Kridner <jkridner@beagleboard.org>
Date: Fri, 16 Dec 2022 04:51:04 +0000
Subject: [PATCH] reduce kernel noise

---
 Makefile    | 3 +++
 bcfserial.c | 8 ++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index ba4fc5b..3eb1f58 100644
--- a/Makefile
+++ b/Makefile
@@ -3,5 +3,8 @@ KDIR ?= /lib/modules/`uname -r`/build
 default:
 	$(MAKE) -C $(KDIR) M=$$PWD
 
+install:
+	$(MAKE) -C $(KDIR) M=$$PWD modules_install
+
 clean:
 	rm -f *.o *.ko *.mod.c .*.cmd
diff --git a/bcfserial.c b/bcfserial.c
index c20c04e..2c55913 100644
--- a/bcfserial.c
+++ b/bcfserial.c
@@ -473,7 +473,7 @@ static int bcfserial_tty_receive(struct serdev_device *serdev,
 					}
 					else if (bcfserial->rx_address == ADDRESS_CDC) {
 						bcfserial->rx_buffer[bcfserial->rx_offset-2] = 0;
-						printk("> %s", bcfserial->rx_buffer+1);
+						dev_dbg(&bcfserial->serdev->dev, "> %s", bcfserial->rx_buffer+1);
 					}
 				}
 				else {
@@ -648,7 +648,7 @@ fail:
 	dev_err(&bcfserial->serdev->dev, "Closing serial device on failure\n");
 	serdev_device_close(serdev);
 fail_hw:
-	printk(KERN_ERR "Failed to open bcfserial\n");
+	dev_err(&bcfserial->serdev->dev, "Failed to open bcfserial\n");
 	ieee802154_free_hw(hw);
 	return ret;
 }
@@ -674,7 +674,7 @@ static struct serdev_device_driver bcfserial_driver = {
 
 module_serdev_device_driver(bcfserial_driver);
 
-MODULE_DESCRIPTION("WPAN serial driver for BeagleConnect Freedom");
+MODULE_DESCRIPTION("WPAN serial driver for BeagleConnect");
 MODULE_AUTHOR("Erik Larson <erik@statropy.com>");
-MODULE_VERSION("0.1.0");
+MODULE_VERSION("0.1.1");
 MODULE_LICENSE("GPL v2");
-- 
GitLab