Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5083164iog; Wed, 22 Jun 2022 11:35:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sH8oKNFFLDAPV8MsOZy9mATOyVIOjxpFW72BD5n7Ow4FvOXJp9rkY+gOght4tDHL6S/sE9 X-Received: by 2002:a05:6a00:1306:b0:512:ca3d:392f with SMTP id j6-20020a056a00130600b00512ca3d392fmr37114044pfu.79.1655922919345; Wed, 22 Jun 2022 11:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655922919; cv=none; d=google.com; s=arc-20160816; b=ey0p9uukc8R1IFHutloedCEMYUIcV/2HIPFAMKmWSxDxoNABJfieuR64Qs20Op6QfJ iM2O2hg7J9k8opcOV/K4OnSf61WDDnKYiSJphZcfqHY+zd0u0I/KR4baEgenZ6DHPA0P EhjY7BdxlQpyQkQ3b8Uz3KA/8Yba1tMYSuroekg2PiIXL+q6DHKFkjo9XaAJDCmcWUwM fwQkDgCitusvGDy3Sx0azMhBSat8DddFg/EGX6dp+fsHaPvbWQNZAVJ1u7hRlDvkZyD0 cd5kdSI2Sw6i6Zqxuu5l/2pUh2VVbVjneIqZBLDVJyeXs8Y7Y9ffTv3lgWZp++zkWpU2 pEOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=S6RaOwUUNsa35j0zwNNMMC8L4W+AYUi6AJGjFqNAiII=; b=DcijNNsrV7I/eT3thiVB2u4uNZGMQZsizLYhzeipmMJfLuERGQp1mNEHmRfvjR8JTi +1FLvJhgKGRYCXFf91ol1Vg9z1FM81CTMM+Nw8y1bQTRSZJDpGZ5GN2chIpyrgF2sC2n In6LA4dNPQpY/wmTQBL8rnvzve/oIj6YQpbzGASlYcS+LoAVT/8NXZ02npBQkMycgRrP umWmT3lK3j+LOc6ctuoZJRbkY/27LnD2wqftbMw2S6aWYmglsG0WaGvB32MiiRjOT865 kHsKtlvFaZEIokgDujSMky5R/9IGQvwNuB9vrsUxsJpFuO760tmQtEKDg6UlQmY71NPH F+NA== 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 s82-20020a632c55000000b0040c702d2483si17767343pgs.731.2022.06.22.11.35.06; Wed, 22 Jun 2022 11:35:19 -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 S1376608AbiFVSPP (ORCPT + 99 others); Wed, 22 Jun 2022 14:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346019AbiFVSPN (ORCPT ); Wed, 22 Jun 2022 14:15:13 -0400 Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54BAB3CA45; Wed, 22 Jun 2022 11:15:13 -0700 (PDT) Received: by mail-qv1-f46.google.com with SMTP id g18so18839431qvn.2; Wed, 22 Jun 2022 11:15:13 -0700 (PDT) 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; bh=S6RaOwUUNsa35j0zwNNMMC8L4W+AYUi6AJGjFqNAiII=; b=0kQHv3upiApeFF9omqaSCSpIB6eQU+qedKYNIKpqhxiC9TEarUoDcnkfNeNxvupMuW IHKT2NZgK8/apwvbpZs/Zacdy2YjhIJMqScQpp7NYKNtLzrdVeeLgvdnIi2sIYxReHEc kg2DSjXREoMBTCqh52/ZAtJ41A4nLWXqne9Lg+zpCAP+6Mr3WD81vUWLzm2nHF4N7U4j lSJxub34JFhfouQ5q2f5NFHFhZiLaLcSrID//FE8BvoTQMT+B8WPQrHVrwKAPub3/7Jj un3wiqVWZcvzDmyYIk1b15CsW9eWOsdQc77YZL9kJx+CpPa048P9zdrKX7aqZ3AVoPEn SLFQ== X-Gm-Message-State: AJIora+XuyRFdqeWNwoxTAa0ZNA+xgb+TlQKyfohUYX+x40c1aqkVGWX 5l+MqpHdMzr5oDj3W/iSpx5lbVnnhDaDBA== X-Received: by 2002:ad4:5ba1:0:b0:46e:2f1f:9836 with SMTP id 1-20020ad45ba1000000b0046e2f1f9836mr28566864qvq.87.1655921712257; Wed, 22 Jun 2022 11:15:12 -0700 (PDT) Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com. [209.85.128.172]) by smtp.gmail.com with ESMTPSA id u12-20020a37ab0c000000b006a34a22bc60sm16148165qke.9.2022.06.22.11.15.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jun 2022 11:15:11 -0700 (PDT) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-3137316bb69so170898137b3.10; Wed, 22 Jun 2022 11:15:11 -0700 (PDT) X-Received: by 2002:a81:3a81:0:b0:317:7dcf:81d4 with SMTP id h123-20020a813a81000000b003177dcf81d4mr5778535ywa.47.1655921710907; Wed, 22 Jun 2022 11:15:10 -0700 (PDT) MIME-Version: 1.0 References: <20220622173614.12778-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220622173614.12778-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20220622173614.12778-2-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Wed, 22 Jun 2022 20:14:59 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] mmc: renesas_sdhi: Get the reset handle early in the probe To: Lad Prabhakar Cc: Wolfram Sang , Ulf Hansson , Philipp Zabel , Yoshihiro Shimoda , Geert Uytterhoeven , Pavel Machek , Linux MMC List , Linux-Renesas , Linux Kernel Mailing List , Prabhakar , Biju Das Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Wed, Jun 22, 2022 at 7:36 PM Lad Prabhakar wrote: > In case of devm_reset_control_get_optional_exclusive() failure we returned > directly instead of jumping to the error path to roll back initialization. > > This patch moves devm_reset_control_get_optional_exclusive() early in the > probe so that we have the reset handle prior to initialization of the > hardware. > > Fixes: b4d86f37eacb7 ("mmc: renesas_sdhi: do hard reset if possible") > Reported-by: Pavel Machek > Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds