Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E83EDC433F5 for ; Mon, 20 Dec 2021 10:28:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231263AbhLTK2B (ORCPT ); Mon, 20 Dec 2021 05:28:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbhLTK2A (ORCPT ); Mon, 20 Dec 2021 05:28:00 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6538C06173E for ; Mon, 20 Dec 2021 02:27:59 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id l22so20520964lfg.7 for ; Mon, 20 Dec 2021 02:27:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=iv9ezRnnrzcHGD7Zb6emmI6B8JBj8Iod8EtTwFfPyKk=; b=IU9FCUD6ZbT12fwfcmTgP3229sxley+tDcIVfiXETS1ySJMlCZVXeXgEeOeGzctNDF HTGwAdxc6B+Om9p/DoKu+Gxi/BH5dfqs3Rv2oMxKa5VwwNiHgnWjuUft/SIIfjDucfv5 QWAiyDkaztoWvwmuWj9yuWoqBZJ6sk6JkNf2gFR2KwsmEuFyJ5/wT14zJDfuJ4ypT0qB VO4OdAUaPFbjQqK/10Icg/oOwuakFhZw9fyfhOkm+7hrP4Yh3HHPp4i8NZh4EpxD0TZV 67QqXRnMW+NNuo75gd5SofLtSy596jh87wufPBa93Ske/GFz2A/kLfaqdcEt1tUNpBqx 0STQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=iv9ezRnnrzcHGD7Zb6emmI6B8JBj8Iod8EtTwFfPyKk=; b=KczLN+ln5fKQrcDlWR74Xp0MLIe3fj8yxJjeq6GP0OGYbwJxSQcppWaQYv6atqRB04 3vgDNrkwDZNvdr3ZLWlXKsb0ZADVWFRz2vokIDZcRWPb1Ksk/brbF+E8LMI6sKtPftVl D2RTSzM5Yira5EUtwswH4InpZhecdfxr3FbmFpaHmgGwVsPZgfMKAQLgt6eKXYID90Og 0BDeQnzi2XcqaTqYl+gSA1yM3+piVCwIbBup59a/WxHSBdAHS95FMmJI/LcUd95D20gC qK7qYQ3KPNNz3Hn2FBhtHKrqCHvq9kYji77t91hS12reJEwuauG8sIrI6/UoiBHZrneK zk0Q== X-Gm-Message-State: AOAM533m+4f4hAvQvRJfSwjazEyEZX4cPZs7aRdyI7XArag39EJd4LkO EJt5NEDjcwuhQm5QL9h1AUkM41mJvDF2HsrM+Me2D27YV+c= X-Google-Smtp-Source: ABdhPJzVD42zDGhQBZQ8mnNcZi4O56hS1KMRBbiRJIrt2G1Xnxk7kGTcitYeIsKqM4Iy7AgW5gqkRCEPzUVCypeQjAs= X-Received: by 2002:a05:6512:3d9e:: with SMTP id k30mr617624lfv.184.1639996078020; Mon, 20 Dec 2021 02:27:58 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ulf Hansson Date: Mon, 20 Dec 2021 11:27:21 +0100 Message-ID: Subject: Re: [PATCH] mmc: bus: Log bus width info when attaching card To: =?UTF-8?Q?Christian_L=C3=B6hle?= Cc: "linux-kernel@vger.kernel.org" , "linux-mmc@vger.kernel.org" , "johan@kernel.org" , "sudeep.holla@arm.com" , "linux@dominikbrodowski.net" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Dec 2021 at 14:03, Christian L=C3=B6hle = wrote: > > Might seem unecessary to print the bus width and a bit confusing, but it = is the only 'bus info' that is not printed in that line. > So I suggest adding it. Well, I am not sure I agree with this. There is other information too, like the clock rate for example. But, I think it may be a bit too much to log everything. In particular as the information is already available via debugfs, for those that want more information. > > Regards, > Christian > Kind regards Uffe > > > > From: Christian L=C3=B6hle > Sent: Wednesday, December 8, 2021 2:02 PM > To: linux-kernel@vger.kernel.org; linux-mmc@vger.kernel.org; Ulf Hansson;= Christian L=C3=B6hle > Cc: johan@kernel.org; sudeep.holla@arm.com; linux@dominikbrodowski.net > Subject: [PATCH] mmc: bus: Log bus width info when attaching card > > Add info about bus width of the attached card to the bring-up message > > For both MMC and SD cards the bus width that is used might > not be obvious to a user. For MMC this might be 1, 4 or 8, > for SD only 1 and 4. In both cases this would be a restriction > by the host (setup). Like using an MMC in an SD slot or an > eMMC to SD adapter. > > Signed-off-by: Christian Loehle > --- > drivers/mmc/core/bus.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c > index f6b7a9c5bbff..71a675dcd9b7 100644 > --- a/drivers/mmc/core/bus.c > +++ b/drivers/mmc/core/bus.c > @@ -358,7 +358,7 @@ int mmc_add_card(struct mmc_card *card) > mmc_card_ddr52(card) ? "DDR " : "", > type); > } else { > - pr_info("%s: new %s%s%s%s%s%s card at address %04x\n", > + pr_info("%s: new %s%s%s%s%s%s %u-bit card at address %04x= \n", > mmc_hostname(card->host), > mmc_card_uhs(card) ? "ultra high speed " : > (mmc_card_hs(card) ? "high speed " : ""), > @@ -366,7 +366,8 @@ int mmc_add_card(struct mmc_card *card) > (mmc_card_hs200(card) ? "HS200 " : ""), > mmc_card_hs400es(card) ? "Enhanced strobe " : ""= , > mmc_card_ddr52(card) ? "DDR " : "", > - uhs_bus_speed_mode, type, card->rca); > + uhs_bus_speed_mode, type, > + 1<host->ios.bus_width, card->rca); > } > > #ifdef CONFIG_DEBUG_FS > -- > 2.34.1 > =3D > Hyperstone GmbH | Reichenaustr. 39a | 78467 Konstanz > Managing Director: Dr. Jan Peter Berns. > Commercial register of local courts: Freiburg HRB381782 >