Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1154753rwd; Thu, 8 Jun 2023 13:05:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7X4gW9F3FSa7nnwI4A5b9N8JSPKnxmZyczwtVC6p7HDw+GGQuQt6HI+VfazUxHhMu0qTSs X-Received: by 2002:a17:90a:1c6:b0:259:7ed4:d69b with SMTP id 6-20020a17090a01c600b002597ed4d69bmr8491161pjd.43.1686254742548; Thu, 08 Jun 2023 13:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686254742; cv=none; d=google.com; s=arc-20160816; b=YqGl88TdLHjUgoHJn2GGxSQfHRxlbL3oOxtNOX5431dNW+YQViXNN492rPH6J2KS4Z gNdwdxnYksISbWSWulB9fq37aMN42Jv0U+JkOcZ7kfwi1gdwceQpCHQy1ejJ9QI6gewy RZ4/Nq/64r7wCH2zSFpIIqXoRP9rfquodXj98bmxAEi1DFyIgmVhmSG41GnxwVEFlmvF XIzlX2poqGRrQmjPW0VgE7alu+A6YJ3z01vbdGkHBTq0npD7vlfhxS1p4VShlX1zbHQ1 hmlbO+zH0opgKc96w9QkSdvVFNazpS5Hq1jAIqEMm5/ojPvADnPooARXENotGJixUXRR gyeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UYyhScEA/c5YNBvdnw7SeEhFJVN3xlghSlfWUgA3+X0=; b=r25tZ6EPjfCOmDzNANzZ+QVtS8/OVS6jYD6yQGA8n5w3aPPm4jfeX3qHVbgJZUWcrh gOmhwSSSHAvFE4xjYxkGG3Z80k+pcQ//snVVa14+IFkIQ79XfaHbd6MlhbTQeyMh2wY+ 2V/5sU3xg2/KT48PRuERR+iXCfj/Hur1beQ0U3IAUbgsh00kdwGcUW9xm/EY8Tw93nC2 bOi976Dpdfv0USp0Oc4EPiEdDqx5QhxJy+W/t3MfULYOtmgX9DULo3aCNft/IyCz4ZGw XppZyhkYQOzcCWPgOdLCgdgODFzucpal/5QujpoDhcRFmWQ1rlAK9tPLujWeSlZuOmzX OI3w== ARC-Authentication-Results: i=1; mx.google.com; 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 j9-20020a633c09000000b0054570b4a405si1360161pga.478.2023.06.08.13.05.25; Thu, 08 Jun 2023 13:05:42 -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; 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 S235711AbjFHTpv (ORCPT + 99 others); Thu, 8 Jun 2023 15:45:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230125AbjFHTpt (ORCPT ); Thu, 8 Jun 2023 15:45:49 -0400 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FF632132; Thu, 8 Jun 2023 12:45:48 -0700 (PDT) Received: from localhost.localdomain (31.173.86.116) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Thu, 8 Jun 2023 22:45:41 +0300 From: Sergey Shtylyov To: Ulf Hansson , CC: Chaotian Jing , Matthias Brugger , AngeloGioacchino Del Regno , , , Subject: [PATCH v2 03/12] mmc: mtk-sd: fix deferred probing Date: Thu, 8 Jun 2023 22:45:10 +0300 Message-ID: <20230608194519.10665-4-s.shtylyov@omp.ru> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20230608194519.10665-1-s.shtylyov@omp.ru> References: <20230608194519.10665-1-s.shtylyov@omp.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [31.173.86.116] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.59, Database issued on: 06/08/2023 19:29:53 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 19 X-KSE-AntiSpam-Info: Lua profiles 177946 [Jun 08 2023] X-KSE-AntiSpam-Info: Version: 5.9.59.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 516 516 efd4d74ff4b68f90ca62ae34a19f27bf46d81db5 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_no_received} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.86.116 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.86.116 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: 31.173.86.116:7.1.2;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;omp.ru:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 31.173.86.116 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 19 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 06/08/2023 19:36:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 6/8/2023 5:02:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 The driver overrides the error codes returned by platform_get_irq() to -EINVAL, so if it returns -EPROBE_DEFER, the driver will fail the probe permanently instead of the deferred probing. Switch to propagating the error codes upstream. Fixes: 208489032bdd ("mmc: mediatek: Add Mediatek MMC driver") Signed-off-by: Sergey Shtylyov --- Changes in version 2: - refreshed the patch. drivers/mmc/host/mtk-sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index edade0e54a0c..9785ec91654f 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -2680,7 +2680,7 @@ static int msdc_drv_probe(struct platform_device *pdev) host->irq = platform_get_irq(pdev, 0); if (host->irq < 0) { - ret = -EINVAL; + ret = host->irq; goto host_free; } -- 2.26.3