Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22346601rwd; Fri, 30 Jun 2023 07:02:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlE2H9wgZq9ZrsKhmbfO0XNE76WEVqD/Cgb/iBJib1igtoh6LTqjpXKaq76GyQQDWaMC5dx4 X-Received: by 2002:a17:902:ec8b:b0:1af:d225:9002 with SMTP id x11-20020a170902ec8b00b001afd2259002mr2001089plg.14.1688133752758; Fri, 30 Jun 2023 07:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688133752; cv=none; d=google.com; s=arc-20160816; b=z/Culs8p9xzC7ED5QRA7Xbs3nYa7EegmKZ62YjcWq6t5WkAZhSWxcHAQJmrLM9ilLh sMngLGLzg5NGhgFfKVBLpyITe6OyCEQD8TLlnQgMOD9R4TORkGGhnzEJG/7Uk/na+XgF MX57qk+nubkslzh3vtcDqYsAMTBuaECMrvu8z27iG9VVfOEMinw+bQAyXCVPyCbjtHny mDZU2hwm3W9yQBX7b5Gkez+qTa4j9dOrwPobVCIMeBVSAM8+qp+iwbE9eGKFnLjOcvZ1 kxw2enNc39xOsgZdKiKx017XpQaD0o+rTw0E5+cSyFfzGAMR2+RV4bLkyt0kjpGASRA1 X72Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=PcXxNOWHcmxCDQGZ2++gyrvWOg/Jh/8imTf8rTAbNTE=; fh=ACIDYp+DZeGK21e11LUtcOFcxwKDj/zAfh13DOuS59U=; b=zvxd4obWwAOIH0W3XWkMnhYrhiqSlFlPU3ABrQty/koMjy3jnTcNtlf+Pn5yUU/RKt 4p+wzslI/+P/fM0470xUc3wyk6Q31jyVlB95g4eyIEFCmFJ4RybywF1hZTNnlrj3uYAK BXGEV18FCg7MDvhbpJRp93+DLLT/CG3HswRmlbcjBkCxvuaAbVo4EXjSKF9y2Sf4jfUp DTJi4xnIU6e0OSGGU3gkUtaRbgTvcqoY6ICqQJ8jCEc1YP6t1SgWzBExm0gaZsPM+szU r0cLD++Ec2e+FBCvnEyVyNLNQ0QFNQ5XW7XceCam77yplvqxWT/TOgJUEUO+Q1+EGfGJ 1TqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=DsIVyAe8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a170902e1d300b001b06707ac12si10684595pla.49.2023.06.30.07.02.14; Fri, 30 Jun 2023 07:02:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=DsIVyAe8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232694AbjF3NfW (ORCPT + 99 others); Fri, 30 Jun 2023 09:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232764AbjF3Ne7 (ORCPT ); Fri, 30 Jun 2023 09:34:59 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F9173C34 for ; Fri, 30 Jun 2023 06:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=PcXx NOWHcmxCDQGZ2++gyrvWOg/Jh/8imTf8rTAbNTE=; b=DsIVyAe8mFx28qd+QeJD uVFoOFwyRgGUdSRK3s95176ucP4mtVNJvkbpuSQHjtil/AcjknGDu2M2tLlkdnni IvqHZtwebQA6xCFLPBEzHVT88UADuJB7QBap9y0cgKtXPdRBJyQf+61y623k8k+K kXtCG7axscYjCCGscPZ8Ki1Umy7ohF7AviVcmoBOp/TleNIoqy36//zS3x6oAiWD E4SRXiVKMseKF3mC3OOCMU01hzc+3kVL00Ez9PWKjjegElWxVbWQWsXo6+HvAFes /sr4cmkS8DRC9sLbT8MERJkUjETrTCZa9M9jb0NwKJVa6ZpvQGhKh9wHnto7DsJR LA== Received: (qmail 4184676 invoked from network); 30 Jun 2023 15:34:39 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 30 Jun 2023 15:34:39 +0200 X-UD-Smtp-Session: l3s3148p1@/4TB4Fj/db7BVfKA Date: Fri, 30 Jun 2023 15:34:36 +0200 From: Wolfram Sang To: Ulf Hansson Cc: Dennis Zhou , Geert Uytterhoeven , Linux MMC List , Linux Kernel Mailing List , Biju Das , Linux-Renesas Subject: Re: [PATCH v2] mmc: inline the first mmc_scan() on mmc_start_host() Message-ID: Mail-Followup-To: Wolfram Sang , Ulf Hansson , Dennis Zhou , Geert Uytterhoeven , Linux MMC List , Linux Kernel Mailing List , Biju Das , Linux-Renesas References: <20230329202148.71107-1-dennis@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ardNddU0yOlyz+Nq" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ardNddU0yOlyz+Nq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Note that, even if the offending commit below triggers this problem > 100% of the cases (as the probe path has now becomes synchronous), > there was a potential risk even before. Previously, mmc_add_host() > ended up punting a work - and if that work ended up sending a request > to the host driver, *before* the irq-handler would be ready, we would > hit the similar problem. I bet adding an msleep(1000) immediately > after mmc_add_host() in tmio_mmc_host_probe(), would then trigger this > problem too. :-) >=20 > That said, I am going to revert the offending commit to fix these > problems, for now. Then I will try to help out and fixup the relevant > host drivers - and when that is done, we can give this whole thing a > new try. I'll work on the TMIO/SDHI driver next week. Thanks for the input! --ardNddU0yOlyz+Nq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmSe2egACgkQFA3kzBSg KbYL0w//Uf2zwM8QA+MvS/28kErGL3iHJwmv3aOLVBcTQcZobGoGYTX7ylZridqi k2bsQszEYrOqQHg5Nrgze3x1CmSW4zbKZhz67yhBWobwTY8wkYg/lVraQuXJPJQG 13J/Cfugtx+QcCfWwvdAyEd/FarBjMMUlBjjft8zz8OT5S4j3MWLKNg+k08Ytkou C6TX2YYaSuzkUXo/6j8Zak+OUlIWVAthAnmExWwL8a2azufZoFizG+kWZIXyyjB3 MGFkNo39lM72eNCKhV8yScEm+DwRIVwnlMxGpy8bk5/Xh9YwJaYDAJgZHB3ZwcyE LF/iI8h/EM6GTodNB97UQCFSkrHCyp9En+tqViXKaHrzZvG4Uudju8JZsNl1e/nX TOmaSS4usgQfYX7nyO9niohJiw40KXC2xM+ZSLIQkxYwfPF0icqcOXm8mBTiJYO0 2W+Gs7iIK1+jroPGZtgu6uFplX8A5RgXSnBGyq0lE00GoEmVuV31kPuZPKGIXpdD Q3INCdeaFEeR+0l+h9D3T5IkrVRv0VkxIPrgc2wZ13ZdgQx3/UzM57kybPZAz6Zk x4FTMSxVOAQP57dOykCLOJMN0UhIB5RUJCJgKBPjbGt06fLEiuAzimd8+1O0jotl BA9qn0A08k17fGaSL7bjmeNZkHQUoNiYiXgqJSMk5RREMDnavD8= =suR+ -----END PGP SIGNATURE----- --ardNddU0yOlyz+Nq--