linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulf Hansson <ulf.hansson@linaro.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-mmc <linux-mmc@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1 1/2] mmc: mmc_spi: Drop duplicate 'mmc_spi' in the debug messages
Date: Mon, 31 May 2021 12:16:29 +0200	[thread overview]
Message-ID: <CAPDyKFp1ziD7w9xp789XtTvhURKTuDUyCZSzMJ5As7Y8Pq0SNQ@mail.gmail.com> (raw)
In-Reply-To: <20210528112127.71738-1-andriy.shevchenko@linux.intel.com>

On Fri, 28 May 2021 at 13:21, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> dev_dbg() in any case prints the device and driver name, no need
> to repeat this in (some) messages. Drop duplicates for good.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/mmc_spi.c | 12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c
> index 9776a03a10f5..65c65bb5737f 100644
> --- a/drivers/mmc/host/mmc_spi.c
> +++ b/drivers/mmc/host/mmc_spi.c
> @@ -504,7 +504,7 @@ mmc_spi_command_send(struct mmc_spi_host *host,
>                 /* else:  R1 (most commands) */
>         }
>
> -       dev_dbg(&host->spi->dev, "  mmc_spi: CMD%d, resp %s\n",
> +       dev_dbg(&host->spi->dev, "  CMD%d, resp %s\n",
>                 cmd->opcode, maptype(cmd));
>
>         /* send command, leaving chipselect active */
> @@ -928,8 +928,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd,
>                 while (length) {
>                         t->len = min(length, blk_size);
>
> -                       dev_dbg(&host->spi->dev,
> -                               "    mmc_spi: %s block, %d bytes\n",
> +                       dev_dbg(&host->spi->dev, "    %s block, %d bytes\n",
>                                 (direction == DMA_TO_DEVICE) ? "write" : "read",
>                                 t->len);
>
> @@ -974,7 +973,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd,
>                 int             tmp;
>                 const unsigned  statlen = sizeof(scratch->status);
>
> -               dev_dbg(&spi->dev, "    mmc_spi: STOP_TRAN\n");
> +               dev_dbg(&spi->dev, "    STOP_TRAN\n");
>
>                 /* Tweak the per-block message we set up earlier by morphing
>                  * it to hold single buffer with the token followed by some
> @@ -1175,7 +1174,7 @@ static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
>
>                 canpower = host->pdata && host->pdata->setpower;
>
> -               dev_dbg(&host->spi->dev, "mmc_spi: power %s (%d)%s\n",
> +               dev_dbg(&host->spi->dev, "power %s (%d)%s\n",
>                                 mmc_powerstring(ios->power_mode),
>                                 ios->vdd,
>                                 canpower ? ", can switch" : "");
> @@ -1248,8 +1247,7 @@ static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
>
>                 host->spi->max_speed_hz = ios->clock;
>                 status = spi_setup(host->spi);
> -               dev_dbg(&host->spi->dev,
> -                       "mmc_spi:  clock to %d Hz, %d\n",
> +               dev_dbg(&host->spi->dev, "  clock to %d Hz, %d\n",
>                         host->spi->max_speed_hz, status);
>         }
>  }
> --
> 2.30.2
>

      parent reply	other threads:[~2021-05-31 10:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-28 11:21 [PATCH v1 1/2] mmc: mmc_spi: Drop duplicate 'mmc_spi' in the debug messages Andy Shevchenko
2021-05-28 11:21 ` [PATCH v1 2/2] mmc: mmc_spi: Imply container_of() to be no-op Andy Shevchenko
2021-05-31 10:16   ` Ulf Hansson
2021-05-31 10:16 ` Ulf Hansson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPDyKFp1ziD7w9xp789XtTvhURKTuDUyCZSzMJ5As7Y8Pq0SNQ@mail.gmail.com \
    --to=ulf.hansson@linaro.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).