aboutsummaryrefslogtreecommitdiff
path: root/drivers/mailbox/stm32-ipcc.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-01-13 15:00:53 -0500
committerTom Rini <trini@konsulko.com>2021-01-13 15:00:53 -0500
commitab1a425524a79eeca61e7b67fdf382c7a499346f (patch)
tree08f3925c3cb439f674ebf41cc5003c95ea5c4a57 /drivers/mailbox/stm32-ipcc.c
parent795f8fd0b591eef7cf3f8c6fcf9788280029cc4a (diff)
parent7ccaa31380a4abb2b23718008a54fe2917db8edf (diff)
Merge tag 'u-boot-stm32-20210113' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm
- Enable logging features for stm32mp15 boards - Update MAINTAINERS emails for STI and STM32 - Activate OF_LIVE for ST stm32mp15 boards - Switch to MCO2 for PHY 50 MHz clock for DHCOM boards - Correction in stm32prog command on uart: always flush DFU on start command - Update USB-C power detection algorithm on DK boards
Diffstat (limited to 'drivers/mailbox/stm32-ipcc.c')
-rw-r--r--drivers/mailbox/stm32-ipcc.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c
index 093b570414..69c86e059f 100644
--- a/drivers/mailbox/stm32-ipcc.c
+++ b/drivers/mailbox/stm32-ipcc.c
@@ -3,6 +3,8 @@
* Copyright (C) STMicroelectronics 2019 - All Rights Reserved
*/
+#define LOG_CATEGORY UCLASS_MAILBOX
+
#include <common.h>
#include <clk.h>
#include <dm.h>
@@ -44,11 +46,11 @@ static int stm32_ipcc_request(struct mbox_chan *chan)
{
struct stm32_ipcc *ipcc = dev_get_priv(chan->dev);
- debug("%s(chan=%p)\n", __func__, chan);
+ dev_dbg(chan->dev, "chan=%p\n", chan);
if (chan->id >= ipcc->n_chans) {
- debug("%s failed to request channel: %ld\n",
- __func__, chan->id);
+ dev_dbg(chan->dev, "failed to request channel: %ld\n",
+ chan->id);
return -EINVAL;
}
@@ -57,7 +59,7 @@ static int stm32_ipcc_request(struct mbox_chan *chan)
static int stm32_ipcc_free(struct mbox_chan *chan)
{
- debug("%s(chan=%p)\n", __func__, chan);
+ dev_dbg(chan->dev, "chan=%p\n", chan);
return 0;
}
@@ -66,7 +68,7 @@ static int stm32_ipcc_send(struct mbox_chan *chan, const void *data)
{
struct stm32_ipcc *ipcc = dev_get_priv(chan->dev);
- debug("%s(chan=%p, data=%p)\n", __func__, chan, data);
+ dev_dbg(chan->dev, "chan=%p, data=%p\n", chan, data);
if (readl(ipcc->reg_proc + IPCC_XTOYSR) & BIT(chan->id))
return -EBUSY;
@@ -83,7 +85,7 @@ static int stm32_ipcc_recv(struct mbox_chan *chan, void *data)
u32 val;
int proc_offset;
- debug("%s(chan=%p, data=%p)\n", __func__, chan, data);
+ dev_dbg(chan->dev, "chan=%p, data=%p\n", chan, data);
/* read 'channel occupied' status from other proc */
proc_offset = ipcc->proc_id ? -IPCC_PROC_OFFST : IPCC_PROC_OFFST;
@@ -104,7 +106,7 @@ static int stm32_ipcc_probe(struct udevice *dev)
struct clk clk;
int ret;
- debug("%s(dev=%p)\n", __func__, dev);
+ dev_dbg(dev, "\n");
addr = dev_read_addr(dev);
if (addr == FDT_ADDR_T_NONE)