Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5ECBCC07E9C for ; Thu, 8 Jul 2021 10:09:12 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B10B461451 for ; Thu, 8 Jul 2021 10:09:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B10B461451 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D904082A29; Thu, 8 Jul 2021 12:09:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="LAtVWKYI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3DF1B82BC3; Thu, 8 Jul 2021 12:09:06 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 944F3829EF for ; Thu, 8 Jul 2021 12:09:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=1823935de6=patrice.chotard@foss.st.com Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 168A6rFv025191; Thu, 8 Jul 2021 12:08:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=ar7CSp8KrJHhdln8JF92PmEclfFim9aidUS9dPiJJaw=; b=LAtVWKYIfdQHZ/z1scUaj5BnX+BcPddLoVYtq2Pz4xcSB7Qg3EbbFX/kLFySqhcNaOsx RlzYoOWr/v2wNKv9bqTMi5JLD5mVFbaajlWvvSZjq9RLhOZUx4O5frDDCz1YkyrS3XuZ NN4t94M76ksgnNCjNVHEHzObdtnrs53Jv0TOcZRRf8kiUZ0/c3Mfp7bXuXYnfVkFOv+u 08U4JeuKxQzCusIjsLgrt4kHMQyq1RT8REqq1BG12t6lvqMqPCOovo/ITv7YRlfT+GkP eLycLAWKpFCupQ6gkRIhKjX246xrrXcOYZod6Q3R9WJcO6ARlPfPHB14rcXRfkniazVg gA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 39npqd30gt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Jul 2021 12:08:59 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 74F5410002A; Thu, 8 Jul 2021 12:08:58 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4660621B519; Thu, 8 Jul 2021 12:08:58 +0200 (CEST) Received: from lmecxl0573.lme.st.com (10.75.127.50) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Jul 2021 12:08:57 +0200 Subject: Re: [PATCH 1/4] mmc: arm_pl180_mmci: Don't bind to all arm, primecell devices To: Stephan Gerhold , CC: Linus Walleij , Patrice Chotard , Jaehoon Chung , Peng Fan References: <20210706145436.165037-1-stephan@gerhold.net> <20210706145436.165037-2-stephan@gerhold.net> From: Patrice CHOTARD Message-ID: Date: Thu, 8 Jul 2021 12:08:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210706145436.165037-2-stephan@gerhold.net> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-08_04:2021-07-06, 2021-07-08 signatures=0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Stephan On 7/6/21 4:54 PM, Stephan Gerhold wrote: > The arm,primecell compatible is used for lots of different types > of devices, e.g. I2C, SPI, coresight, ... We really should not bind > the MMC driver to all of them. > > Looking through the device trees in U-Boot there seems to be always > a second compatible string for the pl180 device, either arm,pl180 > (already listed) or arm,pl18x. Add the "arm,pl18x" compatible to the > list but remove the generic "arm,primecell". > > Note that on Linux these compatibles cannot be found in drivers > because AMBA/primecell devices are matched based on their peripheral ID > instead of the compatible. > > This fixes the following error messages when booting the ST-Ericsson > U8500 "stemmy" board with the arm_pl180_mmci driver enabled: > > MMC: ptm@801ae000 - probe failed: -38 > ptm@801af000 - probe failed: -38 > funnel@801a6000 - probe failed: -38 > tpiu@80190000 - probe failed: -38 > etb@801a4000 - probe failed: -38 > > Cc: Patrice Chotard > Fixes: 6f41d1a17e20 ("mmc: arm_pl180_mmci: Sync compatible with kernel") > Signed-off-by: Stephan Gerhold > --- > > drivers/mmc/arm_pl180_mmci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c > index b2d1b4f9aa..5d1ee64356 100644 > --- a/drivers/mmc/arm_pl180_mmci.c > +++ b/drivers/mmc/arm_pl180_mmci.c > @@ -539,7 +539,7 @@ static int arm_pl180_mmc_of_to_plat(struct udevice *dev) > > static const struct udevice_id arm_pl180_mmc_match[] = { > { .compatible = "arm,pl180" }, > - { .compatible = "arm,primecell" }, > + { .compatible = "arm,pl18x" }, > { /* sentinel */ } > }; > > Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard on stm32f769-disco Thanks Patrice