Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2504389pxb; Tue, 13 Apr 2021 03:40:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVw/T5WZ5DhCrGml4r4nJLr35DIbDXs0xBuJx9lM21buxyANwhSVegn5+HFDIy7Yk6gEL0 X-Received: by 2002:a05:6402:c1:: with SMTP id i1mr33793068edu.315.1618310434644; Tue, 13 Apr 2021 03:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618310434; cv=none; d=google.com; s=arc-20160816; b=Xb3LeRni08j3DeX+RYwtCHI/2zv93IBmmEAtJ/TZhsXviVD4XdeHPjp/+4irD3oRC9 ef9vwI9ACvDgpVM3YVv8ZsnKl2pa8XT8k8AUuZ8IaMleHJ+8edDDnhXHAS+FFJIBj9/j zuuqHFbCvtdNAy/574vIjZOysWKTY9mLtEPQGCbuB1povU1Qpf2ya/evieQIJ2AK+JrU ueIFEgISxaRvnc8VboKQdVA2ZbJla8+O5eQ9cDh26Fe6ABLkyLKb5y2qoPG3GwWjX5fQ sgkxGg86H1F4P+eg3qtTZf1pf0Oa5u7OLMf987ZzgSd9eNAPFaMFrSSLrDU4+GyQoJlI N+vg== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=kcD1QZqIuNz4WcBW32lQIKsKLiIqCZYBdkHqfOIUFEI=; b=IDqSY0P69iHWriLTRLYGL4mDHCv8GXi3yu9/N4XyyQEJKCuqlyCa4AjyrulOB/XdFR x56vWO8/rzMCKLjV0GPCrPruTZZVWeaa7OMA61DoZv43q9GikrMiFHCmezzIyEa+Ob+y qtUhI89xJNAzklRqNivRa4W0Wartvp4Z30LS1Et/bN6yOT6c7fms0Fq8fWIHYFjspuOx 5P+MXc0C5BLFBNB6T9JiIFiXIXZp8WvF5cSfqStwZ54E6l7vQlaoYo4SiNYk9h+vS7QF lXOzw42mB3HreDceuLYYv5zrrfjvhbE+BaT2NUlME8uQAxnHZEXzESnhBzbI0yvqTSgS 220w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mRUWSOq7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si9425623ejp.664.2021.04.13.03.40.11; Tue, 13 Apr 2021 03:40:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mRUWSOq7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244285AbhDLRrS (ORCPT + 99 others); Mon, 12 Apr 2021 13:47:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238523AbhDLRrR (ORCPT ); Mon, 12 Apr 2021 13:47:17 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C30AC061574; Mon, 12 Apr 2021 10:46:59 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id r9so21679471ejj.3; Mon, 12 Apr 2021 10:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=kcD1QZqIuNz4WcBW32lQIKsKLiIqCZYBdkHqfOIUFEI=; b=mRUWSOq7blVHzvZOrWQQkCCxuMIcervNYvtLYmwJNxD9rVCaKIF/tkMAJyYhq+q/bD ESKaKgTS9+zv0fGFTqw2Zg3/cJere9z3Zq4lvCeArOZzltV66Zg6pppMq2dLjo0QLcTR 1Jw8gIigW3nrx6oCxFTIe+FjJBJIO9/qvS+8/hstrv3rw1m2+Uu5SpWTV/Plm2FPmjYn AxpaGupni1BHY6hDX7bBd9b0pUJZ3S5oZmsvFxqsAYVOHs99s0gzQJzBR6EVuDbn/wpS I6CifUateCQPDjfOr+zCfgAFCOH11yBgK5fKTret/DUeiLqAu1jBSTnzbGxZr6IXX2ol K5jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=kcD1QZqIuNz4WcBW32lQIKsKLiIqCZYBdkHqfOIUFEI=; b=I8c0XE4mAODd923U9VCm5lfmdBdRqe0Lyr4c9Dzy5wP2lB6+4vUdQ5a/MzC+0JniD+ Lp8x8a0Vwx18YBQV3h6PW34iIW/A1UkXRpuMzg70CGSs/dLbed1RjLOLlXPjEP24E6VD NXfsiDyR82WNFeM3gBOGw/uBXFospTVfgNgkqNpjgXp8ZAf2NrwKSLoT0Jg0Zxl1gxSE 8CbrqdbfN3tu149gec4e3LNMBUhKIDGPmEkPnghbVt8Arg5JYZcLvUoHy9k2kYilRC2x n1adzot0edrZu2/P3qJeFNtIVSZeS87AGlcP5qVcVR7RG5KMNBFhVBE+9dKtznkdUb8X 5ZcQ== X-Gm-Message-State: AOAM533iMA70BtOrVrsEi+u8Ijqu7OjK1x4yeoFxEFShKwmNlwF1VBDQ 0yKm6S2faWkhEOv1Xq7CB7o= X-Received: by 2002:a17:906:3915:: with SMTP id f21mr7027865eje.256.1618249618090; Mon, 12 Apr 2021 10:46:58 -0700 (PDT) Received: from ubuntu-laptop (ip5f5bec5d.dynamic.kabel-deutschland.de. [95.91.236.93]) by smtp.googlemail.com with ESMTPSA id w25sm7308133edq.66.2021.04.12.10.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 10:46:57 -0700 (PDT) Message-ID: Subject: Re: [PATCH v3 2/2] mmc: core: Let sanitize not retry in case of timeout/failure From: Bean Huo To: Ulf Hansson Cc: "Shimoda, Yoshihiro" , Wolfram Sang , Adrian Hunter , linux-mmc , Linux Kernel Mailing List , Bean Huo Date: Mon, 12 Apr 2021 19:46:56 +0200 In-Reply-To: References: <20210402092432.25069-1-huobean@gmail.com> <20210402092432.25069-3-huobean@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-04-12 at 09:50 +0200, Ulf Hansson wrote: > > diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c > > index 8bfd4d95b386..9778093d7006 100644 > > --- a/drivers/mmc/core/block.c > > +++ b/drivers/mmc/core/block.c > > @@ -836,7 +836,7 @@ static inline int mmc_blk_part_switch(struct > > mmc_card *card, > > ret = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, > > EXT_CSD_PART_CONFIG, part_config, > > - card->ext_csd.part_time); > > + card->ext_csd.part_time, > > MMC_CMD_RETRIES); > > > I would rather not change the mmc_switch() function definition, but > > only __mmc_switch(). Just let mmc_switch() pass another in-parameter > > (MMC_CMD_RETRIES) to __mmc_switch(), which means all callers of > > mmc_switch() doesn't need to get changed, but only callers of > > __mmc_switch(). > > > > [...] > > > Hi Uffe, Good point, I will change it in the next version of this patch. thanks, Bean > Kind regards > > Uffe