Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp649270pxb; Wed, 20 Jan 2021 17:15:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHJzF7p0q83le3LVLfNyIcVoNuvtiswCzPe//80Y9Ap82exhQ+j4q0MRxxf0TO7xNDDrDz X-Received: by 2002:a17:907:c2a:: with SMTP id ga42mr7412399ejc.511.1611191728090; Wed, 20 Jan 2021 17:15:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611191728; cv=none; d=google.com; s=arc-20160816; b=Y+nyn+EHeTul/+1FoZ06bA3X/1QqUlAM4ne3GweI0X8jWLmEOQAzljvAZYJo7JUtb/ Rn1wDoItLhxZvSQXa+p/FbyfHdmi9A2X8Dp9QIJPAW/ywhEHDWj26iKO3pWx0f3ytND4 4eTbXoonmiAWZu7CKHbutQYz/b0B+mbRp/CAa2CyQzG8N54+AVuHRC9xu4AdrpR3SI8y JoDIwI4B5B2Ig0Dc6255OoK8At4DGDEx4WxzcCCcPkwLl5ptAqd/zyLBb9i94yAFSabL pL7fQXQkarwotjPKwsFp2E79bNv77iIj+m47sg3nrzI/4xi9Gr/V8tH4TE0MMbBceNsZ q3uQ== 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:dkim-signature; bh=D3rkP3sTkrcG+gjHiR+284Vvr0UULqneoyGJYqtXMhY=; b=lXAhPONEguWup2FpzG5cUeCk7xNfLlJXwLxhGAVypEQXglnCBy3eMXmTWGicxkw29N NbDrNdJjrn4tAfz+sKjsrXKdumvd9xryAUFwC6nDGkj7eckFCUuHKV+OS+P3poHCM3Wt XSSRcnwqVdN8VscY8/oof021C6EL8bvbIjZJngQdUeMZ/qkUgx5DB8qf3VT34O6pVKL+ J/Q2v0QwU+vVAIDk5R/1z4q2pBCcYOVAxoc813gEa3hH5npCjay/EmINGwQGZ7tCGyHV hjlfLyNZByhqUAU8S3I8GhyUGaJ836LTt3cBE7bDd0QWSbOg9d1hx/4A2Ajg6YbbNEUg iCtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RRW2kvSz; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si1217177ejz.505.2021.01.20.17.15.04; Wed, 20 Jan 2021 17:15:28 -0800 (PST) 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=@linaro.org header.s=google header.b=RRW2kvSz; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436618AbhATU7Z (ORCPT + 99 others); Wed, 20 Jan 2021 15:59:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733287AbhATNmB (ORCPT ); Wed, 20 Jan 2021 08:42:01 -0500 Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7933C061575 for ; Wed, 20 Jan 2021 05:41:17 -0800 (PST) Received: by mail-vs1-xe30.google.com with SMTP id p20so5770444vsq.7 for ; Wed, 20 Jan 2021 05:41:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=D3rkP3sTkrcG+gjHiR+284Vvr0UULqneoyGJYqtXMhY=; b=RRW2kvSzIJp4rJU/Kqn0fcqX+MmV/Rxfbu+0qeGnPqTQaCOSEFO9jzWYxtlEpylmg1 0RaOwqsIYS0IPUR3OqEfujosWXn0PpeJdZKSKTpcms2WLPBcbCT4Oh4jZoIxRslPJ1ef dXB6mDJ2KxNjURiaak4Z9QrP26A55ZankVQ/W1XEcDgv23sqhlZtsATp65kA80f6L3NT tHn4DTKyog2t34FT4mcVSAcYbEATj0jxc2UiNYTQ9DheZfUlvrz1qKilmcufjaKsUOP6 zl6xw3M3idN4j+LCiHNC311d+yjNd4diIr1qUFftwi+F22WXlrqSkwjs60fS1V7jlXcp RYzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D3rkP3sTkrcG+gjHiR+284Vvr0UULqneoyGJYqtXMhY=; b=XP7Fn2FFpiPYMxj8Q2LUmu1yLQUCxcLyFB0hdZWk84AZJ7Ew6F7ef0GZSBfvoitrqY oyVhp8R2VNJrULrv/7WXQzbA6fXnVlTR5hsiQLouOVe22ecLSQ9haw0J9CPYgx8zo7hY X6itFW463ICIN/kW6Iipt6QXJ+sX1lcjEKIaWPNPCbfSCt4ZFCW2iW4wTxeePM8+RWOR O3eWSS0EO+3tUqfw4dM69gFP/12cPggu9tM4FfJFTz0hkwM9Lw0Jl7fmyfUsfeAY7C8y W3Vjn4IIcaCKQ2KncfgT7Fbaqe0WXHfCr9FvpTs9POGRyU0GDkeLANVQTrsXgkvABwxl Cmsw== X-Gm-Message-State: AOAM5334N24I6LHbDN0q9bvQ5Q6FpS/UxW5HGy2Z59GB3ibwVEiyWqgQ gdM/mUqJWunZkKxAOUj5Ug0WMOrutDxlVIzUumGBlw== X-Received: by 2002:a67:7f41:: with SMTP id a62mr6403069vsd.55.1611150077036; Wed, 20 Jan 2021 05:41:17 -0800 (PST) MIME-Version: 1.0 References: <20210118042717.2549123-1-xiaolei.wang@windriver.com> In-Reply-To: <20210118042717.2549123-1-xiaolei.wang@windriver.com> From: Ulf Hansson Date: Wed, 20 Jan 2021 14:40:41 +0100 Message-ID: Subject: Re: [PATCH] mmc: core: Apply trim broken quirk to R1J57L To: Xiaolei Wang Cc: =?UTF-8?Q?Pali_Roh=C3=A1r?= , Lee Jones , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Jan 2021 at 05:27, Xiaolei Wang wrote: > > R1J57L mmc chip hw capibility indicates that it supports trim function, > but this function does not work properly, the SDIO bus does not respond, > and the IO has been waiting so set quirks to skip trim Are you sure this is an eMMC problem and not a mmc host driver issue? Can you elaborate more what happens? Kind regards Uffe > > Signed-off-by: Xiaolei Wang > --- > drivers/mmc/core/quirks.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/mmc/core/quirks.h b/drivers/mmc/core/quirks.h > index d68e6e513a4f..63e02391c133 100644 > --- a/drivers/mmc/core/quirks.h > +++ b/drivers/mmc/core/quirks.h > @@ -89,6 +89,8 @@ static const struct mmc_fixup __maybe_unused mmc_blk_fixups[] = { > MMC_QUIRK_SEC_ERASE_TRIM_BROKEN), > MMC_FIXUP("VZL00M", CID_MANFID_SAMSUNG, CID_OEMID_ANY, add_quirk_mmc, > MMC_QUIRK_SEC_ERASE_TRIM_BROKEN), > + MMC_FIXUP("R1J57L", CID_MANFID_MICRON, CID_OEMID_ANY, add_quirk_mmc, > + MMC_QUIRK_SEC_ERASE_TRIM_BROKEN), > > /* > * On Some Kingston eMMCs, performing trim can result in > @@ -98,6 +100,8 @@ static const struct mmc_fixup __maybe_unused mmc_blk_fixups[] = { > MMC_QUIRK_TRIM_BROKEN), > MMC_FIXUP("V10016", CID_MANFID_KINGSTON, CID_OEMID_ANY, add_quirk_mmc, > MMC_QUIRK_TRIM_BROKEN), > + MMC_FIXUP("R1J57L", CID_MANFID_MICRON, CID_OEMID_ANY, add_quirk_mmc, > + MMC_QUIRK_TRIM_BROKEN), > > END_FIXUP > }; > -- > 2.25.1 >