From patchwork Mon Dec 10 16:52:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 153296 Delivered-To: patches@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3772493ljp; Mon, 10 Dec 2018 08:52:43 -0800 (PST) X-Received: by 2002:a19:5059:: with SMTP id z25mr6990239lfj.120.1544460763782; Mon, 10 Dec 2018 08:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544460763; cv=none; d=google.com; s=arc-20160816; b=yX1/RKj5e1fRcPSmKgMVCh/8Zdv9SMEtnQIcuQljpc+4qkkJ+vg9/7+7BGLB+297ep X03klyu8+TguMv+iOD02LA8SH3XHy9ojNH0REHJi8gSPZkUGlD7EzfcH1LJHDBT2ide2 i7JtMvLLj4l9pMmCZiaDxzt84F9r0SA/zYZpca8P7d5IOhqb+vyug9rskPsa8ifUwlMN iQ3x79HCcgxykV8wLCC1D94oosyJi5kYFj0mmq7jRyxFVSZwGt0gNTZ/j9Dz719zkBwR yk3t3BLNbtI9Nl7sA2TOQ0KE9DQHe7OCE7bLV9DnSUArfewm4Gmsec4QAvDrfNY/O350 WSSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=bGsmbTB+nZy0eVMBiGyBFstTvyDAI0702gdkSvUdMM0=; b=fIH2Vj2t2CwUgOf6ym1xkKyldrHS4Kizb0hzxJW3Ticjw28rxZfpbCSLUk/aQC/WJw rM2vv7sq9f771hB+RXM9ygKpGxrtFiPN9nEV/YI8LeyZYaBkfdgL9R/jcThqWbAhBvzx R9IJ1o50GKSbk40lQxh+H5aZ8NPfWIYqFNt9Syn7OJ7e/8+3Nmue6UXjlHdybQ2oqUP9 JFX1NVNq99JKasa0ZunP6HSX1Tjwjhz3W0s3d2Ns5UgY6W1f9pG0vEfr9EK3yHoXT2lw bkKFAed6L7sFVVVpi4lOgZ1CjEOekx/r3Ky5NhR/i4ob2UaZJvTZ0NWaFmt0RIioRzY7 nHKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GMcKnLEo; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s30sor2949788lfc.1.2018.12.10.08.52.43 for (Google Transport Security); Mon, 10 Dec 2018 08:52:43 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GMcKnLEo; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=bGsmbTB+nZy0eVMBiGyBFstTvyDAI0702gdkSvUdMM0=; b=GMcKnLEopHrk4ALLwbeqoYEE0LJZLauq+NHTG7ZJANtuow3l17AgyF/72osFzUuIOb QN7CW9NBIZWaxZffK0RB1MQW1sOa3JBrWese1r1ZgRcUOEXtpGH+l7wA0Zm9Is3kQ+kk 1FFLKoGb6b/72XswOHjgjHKC3jIbOk2VxxvCA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bGsmbTB+nZy0eVMBiGyBFstTvyDAI0702gdkSvUdMM0=; b=Z3i1UhOI9ji/bWVvbYegLQokgDY7P6ghwoQo8MwfbXPQZs+2Mgh+UVoB7/FBsaQ+0u dM4+vB2uA2lMSWQZYOmL4B0unEjvdHcjc9rn6tjnQM4kd1h1pNUbkr66mYrh8veSnEoM 9tydBdlJ5mRXJROqXRHDpSe2cH3ZnMyzgQDDOQUttXoN/uVZCrZKUg8jGO4dj/yTi+S8 BJu9by/d6x5P8fNFxU0mpxvjCvR4td4zU8gp43F6xRgkoe/P121BTtVuGM5AxB5zg/96 nc2zeMxDGQm0F4I3gsOrLA3pGJm7+KfAPhA820ztes7sDZ9UMw4SUB5f1YaPe5r5m/rD 0ftA== X-Gm-Message-State: AA+aEWbPz9VbPmcoi/FBx/RfZXE6voDsdZjqxWu9f/YxmE/362OfZwiw XsCCCmb3/FXFAeDo2W13lG/jydI8 X-Google-Smtp-Source: AFSGD/W8IbA7XSyrqv1mlk96tn9WPmT3ecVQ69wc0+Jxf6w8RNlakOl6Cho8ZUqZq4mgsQEBgHHdIg== X-Received: by 2002:a19:24c6:: with SMTP id k189mr7699619lfk.77.1544460763401; Mon, 10 Dec 2018 08:52:43 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id w9sm2194574lfc.66.2018.12.10.08.52.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 08:52:42 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Wolfram Sang , Adrian Hunter , Sjoerd Simons , Faiz Abbas , Jaehoon Chung , Shawn Lin Subject: [PATCH 0/5] mmc: core: Fix and cleanup HPI/CACHE/BKOPS code Date: Mon, 10 Dec 2018 17:52:35 +0100 Message-Id: <20181210165240.23101-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 >From a couple of different discussions/reports on the mmc mailing lists, I realized that there we have a few bugs to the HPI/CACHE/BKOPS support. The problems should be fixed in this series, but I also took the opportunity to do a few cleanups for the related code on top. Reviews and tests are highly appreciated! Kind regards Uffe Ulf Hansson (5): mmc: core: Reset HPI enabled state during re-init and in case of errors mmc: core: Allow BKOPS and CACHE ctrl even if no HPI support mmc: core: Use a minimum 1600ms timeout when enabling CACHE ctrl mmc: core: Drop redundant check in mmc_send_hpi_cmd() mmc: core: Cleanup BKOPS support drivers/mmc/core/block.c | 2 +- drivers/mmc/core/card.h | 6 +-- drivers/mmc/core/mmc.c | 30 ++++++------ drivers/mmc/core/mmc_ops.c | 93 ++++++++------------------------------ drivers/mmc/core/mmc_ops.h | 3 +- 5 files changed, 36 insertions(+), 98 deletions(-) -- 2.17.1