Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp307362rdb; Thu, 15 Feb 2024 00:07:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVRkaqoD51vYWn6P0Ew5ADKWZ3QNb1+P+cmd8HdBSgGXQCvrE32RqBTRxvUFqAmqNtTCwUuI+YPApxrFeURmNscjUyUqebJ3Iw/G9zzvQ== X-Google-Smtp-Source: AGHT+IHCe3jH06wgOTmy37X0/nOCOgZvFeCW8Z1V5vTVJP3BEck6u5KdAP+DRCIJaRGF4EXzqdqq X-Received: by 2002:a17:906:e088:b0:a38:9923:46da with SMTP id gh8-20020a170906e08800b00a38992346damr795321ejb.20.1707984433181; Thu, 15 Feb 2024 00:07:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707984433; cv=pass; d=google.com; s=arc-20160816; b=xNw1zjls1/ERBxH3bZultL1JLdIpjuioIKEDTIFItxh43qBA/YoBWu9ZMzuV2aULEH 78AzLJfjpLx6fjdsFbl605e634yTu+6jeAfNLQOBcq9VxoRntbDtf9TOlqnVfyHUeHKY XVd6CLlgnL/75EQowZBJLjlJ0GjDNZr3AnIVXMpJxuIeduDeSnKgErVXY+zf4ZuXphj5 BjP7JWJn/iyyEXVIXFM4ugsPprypbEaSQ9KHcc1TvDpOFP0/tFfv7BAEpow5/GKH/ssX tL5IZzp47nAiPYXRu9x9I7hha0EcVxWseKTbuqyrxJy1lGiTQkUNpKjos73/z+cwo43+ Frsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MQt+f9w7OUn997W5195ApePxUxcgPafoWuDe/nIg9lw=; fh=26uPRp0p70Zj7fuWA9YF+zAA5bPsoOjS0fd6rYrDwak=; b=KSB1X/yhAgMOi/RPfRhUacbUT8pmrzyjtW+a78g55FuHZdSYKKWq6jyjHIUrOzdQMf jmjfyepFiLCrN7RofhztLgPAflYx/5TyKsMzDhnB497srnNDihYrLF1n+s/++s9yjkR6 u6MLZjKCj+NKbWzaoIGy8UBE8vwA0lJ3Hdktkap9sSley2y8Hrv04Ec49P7MoRKi9fTi XX5f25WFtm3/QalQun0uHPrXUAajyJKgiQHMKFiRKyRXyuwawLZ/1F1NWpudg2dY2vmo 9H3xC3WaVK+/7lDIHE+jLWjDuWD0EnGpRr1wbx1MY3MBuCNPADHq46qdEWjl0cUMMzHA p/yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iHl+L19V; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-66385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i9-20020a170906114900b00a3d7bcfbe1bsi407850eja.1015.2024.02.15.00.07.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 00:07:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iHl+L19V; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-66385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EA6001F22213 for ; Thu, 15 Feb 2024 08:07:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4037811CB0; Thu, 15 Feb 2024 08:07:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="iHl+L19V" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69F4D33CF; Thu, 15 Feb 2024 08:07:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707984424; cv=none; b=eYNOGw57wS2nhyFFSJHpA1Vapooud/kkcQXGjXMXp3cQwwen0fYcNWO+9iVs4i1/BiIisyZVcAN83d292FSm7+18qWcjOolEM/ByRo8zGJDeu6+WNh+9D0fKVWHq1aXIpL+fXZHBiXMML97xYx8l4qesR5hshAf6ILHaNb76cd8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707984424; c=relaxed/simple; bh=1f7rP1QogMvRWMxoLXoMIvoz1PjKs9oP2HNlZ1xGuQI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lD90Gou9ZhJiOdhcdyAojpHywTgAgF/6yCFnKzgVsa3kog2AUDPkTZ+TQKSleOXbfn/47GTt7vecHWc5ggY8CepLvVjYEAJ3XNERMB90EB2vqPFMqXqHfHV/YXCSz+fT7cIez6e58ivv3M6h0cK4Qfnc3We9J7csgcwmRjx+oE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iHl+L19V; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D1F0C433F1; Thu, 15 Feb 2024 08:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707984423; bh=1f7rP1QogMvRWMxoLXoMIvoz1PjKs9oP2HNlZ1xGuQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iHl+L19VPMG0RTdD3H3BE5efs0RMB8LlYat3dMwouUbN9EnrJXigfAP77qWj2iN/F BYAEfEiZaKWK53faL0ecFVwkPW1COsczdnVgFmWfB7v/0pPYrlERk267a5eoqh+IKl IMDK6bWkVS1X6WAn5/cBsKmp+9eJ5NxF1NymXTWg= Date: Thu, 15 Feb 2024 09:07:00 +0100 From: Greg KH To: =?utf-8?B?7J207Iq57Z2s?= Cc: 'Ulf Hansson' , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, avri.altman@wdc.com, grant.jung@samsung.com, jt77.jang@samsung.com, dh0421.hwang@samsung.com, junwoo80.lee@samsung.com, jangsub.yi@samsung.com, cw9316.lee@samsung.com, sh8267.baek@samsung.com, wkon.kim@samsung.com Subject: Re: [PATCH] mmc: sd: Add a variable to check a faulty device Message-ID: <2024021528-fretted-sustainer-2ebc@gregkh> References: <20240213051716.6596-1-sh043.lee@samsung.com> <000001da5faa$d34e1600$79ea4200$@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <000001da5faa$d34e1600$79ea4200$@samsung.com> On Thu, Feb 15, 2024 at 10:03:45AM +0900, 이승희 wrote: > > -----Original Message----- > > From: Ulf Hansson > > Sent: Wednesday, February 14, 2024 8:27 PM > > To: Seunghui Lee > > Cc: linux-mmc@vger.kernel.org; linux-kernel@vger.kernel.org; > > gregkh@linuxfoundation.org; avri.altman@wdc.com; grant.jung@samsung.com; > > jt77.jang@samsung.com; dh0421.hwang@samsung.com; junwoo80.lee@samsung.com; > > jangsub.yi@samsung.com; cw9316.lee@samsung.com; sh8267.baek@samsung.com; > > wkon.kim@samsung.com > > Subject: Re: [PATCH] mmc: sd: Add a variable to check a faulty device > > > > On Tue, 13 Feb 2024 at 06:13, Seunghui Lee wrote: > > > > > > In mobile devices, suspend/resume situations are frequent. > > > In the case of a defective SD card in which initialization fails, > > > unnecessary initialization time is consumed for each resume. > > > A field is needed to check that SD card initialization has failed on > > > the host. It could be used to remove unnecessary initialization. > > > > It's not clear to me, under what circumstance you want to optimize for. > > > > Is the SD card ever getting properly initialized during boot? > > > > Kind regards > > Uffe > > > We receive a lot of reports about SD card issues in the market. > There was no problem with the first time at the time of use, and there are many cases where people recognize that it is not recognized later on. In most cases, this is a problem with the SD card itself. > > SD card users cannot determine whether or not an SD card is a problem, so they should be guided in this regard. > It is necessary to distinguish whether the SD card is inserted but unrecognized or the SD card itself is not inserted, and if there is a field that can check for initialization failure, it will facilitate guidance, so we considered the patch. > > The variable's usage is expected to be used through the sysfs node in the vendor module. What "vendor module"? You need to include all of the needed code here please. thanks, greg k-h