From bcd539392e9bc23b9b47250eacf84907dd993089 Mon Sep 17 00:00:00 2001 From: Lionel VITTE Date: Fri, 8 Nov 2019 16:52:39 +0100 Subject: [PATCH 04/31] ARM stm32mp1 r3 BLUETOOTH CHAR --- drivers/bluetooth/hci_bcm.c | 3 ++- drivers/char/hw_random/stm32-rng.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index 59e5fc5..c553235 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c @@ -1324,7 +1324,8 @@ static int bcm_serdev_probe(struct serdev_device *serdev) if (!bcmdev->shutdown) { dev_warn(&serdev->dev, "No reset resource, using default baud rate\n"); - bcmdev->oper_speed = bcmdev->init_speed; + if (!bcmdev->oper_speed) + bcmdev->oper_speed = bcmdev->init_speed; } err = bcm_gpio_set_power(bcmdev, false); diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index 37b338a..0ef5b6a 100644 --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -161,6 +161,7 @@ static int stm32_rng_probe(struct platform_device *ofdev) #endif priv->rng.read = stm32_rng_read, priv->rng.priv = (unsigned long) dev; + priv->rng.quality = 900; pm_runtime_set_autosuspend_delay(dev, 100); pm_runtime_use_autosuspend(dev); -- 2.7.4