From patchwork Mon Jun 3 22:08:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 13684414 Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5624713B791 for ; Mon, 3 Jun 2024 22:09:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717452547; cv=none; b=ZB/no4eEYwHX5zyD1Rz7T01KoVh8xLS0jWVCmDbPkexQwC3l7MYb2kkKTw3zrJeYaLk6dBKB6xRJv/x93KCdrkwXAM5x2hMVIT0Lsy6aj7blSQzw//b+dyFMtF5A/K73S15m7nD9nP+ZlK7hjjYDGDkiklbOpWB1oHPvQM8rq4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717452547; c=relaxed/simple; bh=b9veeStHZuWO+wy2xJ/BJ50uuaku8Js/Ky185Xj0IO4=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type; b=EiYbGQ4fT9qhwAoeQF8SILI3IYeRVWtmle7kflAaM5KqZWXKJmX2nyFu4306bgEHUvk0ZBEn/Wb+pyThDnjJc1/iOec71dHiRiE41mAr9sHWwOLU9nUEDGD4bseP7BgrT85lP+6xZRyqCDIfmSOFsd39o4hraXsU2K6i8WGUsp4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=bEFpTbWg; arc=none smtp.client-ip=209.85.219.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="bEFpTbWg" Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-6ae12762134so26251676d6.1 for ; Mon, 03 Jun 2024 15:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1717452545; x=1718057345; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PgrC+rU4dqx5dD+SPX/D+qQiv1trcpd9yK5mjwi6J9o=; b=bEFpTbWgsW3EdVCYhk+QKEHWUZGyMjFgei3Pv9XXF3HkSk6m9AY0TLkzAxyFRta8pc UhI1UQLXPCPQp3yfTfrwCCsYeT4sFzIajq7SKCAf97Bv5d/ZnfpeqC2IChdsxKRtHH3G 25ByO1jCtug51EBo89j1ZE7LVGaEvt2a8dfw0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717452545; x=1718057345; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PgrC+rU4dqx5dD+SPX/D+qQiv1trcpd9yK5mjwi6J9o=; b=l6eajOi//xAm4kHVR7f1GGRzmlWgzrD+rBVjVqREDZ1crNgNm4KW7xGiTxBWdQqecG tV97sFc+SiRgeZn0iSRxOBKiYY6fZ/VA33w3iUinSizErz7QbxBobuBvJlrzaahPWF3Y IhKps2++/hsp4ywgwaJ227mG95c1uew8nybldW+sdevL35ws5Nir1nlahQJ0Z1vWw72A G0fgHpAl5xgPSTzx/DpFenfIleCWX1lpIaeZ1TsNL1E+dArPk8rjoGNerOYBJSxO7UO7 pujeb1CCBtdHMsSudqX33Ti1l9odimRN3TgJImCCMeIP4LDcn6ogbee+cqM4WdOMGJn9 KG8A== X-Forwarded-Encrypted: i=1; AJvYcCWbPfIPwWKHrT5ieJbRVeI3w2KO28nZdPc/M4V6UjrFqNjIt2Yz3YsiQOO9bR1Bzo7/BkFBKIH7nzwadm8pDhi0mtR2SNHjH/Kf X-Gm-Message-State: AOJu0YyR1c2QS48E64ZjaNYTl30s7JyCetxY02gLqU2PrJhaa9LKM/J6 D5kJAYLYsyv0CywkD3cluy75nVnItOHqz7+kHprlkcq15iMqRzhaKXyql3E3EA== X-Google-Smtp-Source: AGHT+IHnph4NZXMTnKs5sfqOGanqWu4AOVYgGgvEiAgw/KG0ZZXkqndwhdHv7ath4yFg/ETUZLYNyQ== X-Received: by 2002:a05:6214:2f13:b0:6ad:625c:cb55 with SMTP id 6a1803df08f44-6aecd6f99ddmr140667996d6.55.1717452545194; Mon, 03 Jun 2024 15:09:05 -0700 (PDT) Received: from mail.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6aff97cc497sm546986d6.60.2024.06.03.15.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 15:09:03 -0700 (PDT) From: Kamal Dasu To: ulf.hansson@linaro.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, ludovic.barre@st.com Cc: f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, Kamal Dasu Subject: [PATCH v2 0/1] mmc: sdhci-brcmstb: check R1_STATUS for erase/trim/discard Date: Mon, 3 Jun 2024 18:08:33 -0400 Message-Id: <20240603220834.21989-1-kamal.dasu@broadcom.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: v1 change Modified the core mmc_ops to not use card_busy signal checkin fixes the issue observed on brcmstb mmc host controller when using BLKSECDISCARD ioctl during erase operation. v2 change The v1 changes [1] modified core mmc file to fix the issue however based on testing it appears to be related to brcmstb hardware behavior with the card busy signal not getting pulled up after secure discard erase operation. The fix would be more appropriate in sdhci-brcmstb host controller driver to inhibit using card_busy() signal. [1] https://lore.kernel.org/linux-mmc/202404232 Kamal Dasu (1): mmc: sdhci-brcmstb: check R1_STATUS for erase/trim/discard drivers/mmc/host/sdhci-brcmstb.c | 4 ++++ 1 file changed, 4 insertions(+)