From patchwork Thu Feb 25 17:03:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 387225 Delivered-To: patches@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp476921jap; Thu, 25 Feb 2021 09:04:05 -0800 (PST) X-Received: by 2002:a2e:6e12:: with SMTP id j18mr2120019ljc.142.1614272644639; Thu, 25 Feb 2021 09:04:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614272644; cv=none; d=google.com; s=arc-20160816; b=q0IjQYZdQhVORf/rDx1aoBI4Zoovt+vWQQdoGh82neuR/aXD3O+9Z1vSmlzho+TARr hafJssty7BCKOaPwV9u4lR7+wB21ByA4tOtc6aEObeJaA9zydrd9WOkS/zHFtLPUgDpG F6v+Pc4rVMfHOxSmNl2+awVnKN7qis2dAd9BfkHK7pc+weJCZn5+rEkqjB4zfPfVtPpK qCKpx4onL6cA+OCn5SGyHKkrNgLqRHMVsnrsfJgRfrU+OjYnFBJOyUjeJTBGHDOtCSYW jxnGQWfMM1AT/asVRqug0LUukKuF1uYIhotqBkED+Nqk6UU4cfvUxsY/HfNMPJVNfhYR Fjjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=DOap4yHkmq8CavcY7I4GN8w1SlMHMd4tkxnPryvWXe8=; b=T7Uj6e3dAzQzZcxfjPXDb8uB9xGAiN8Ryd+qdM8qqCIMERediQKJhg19XUGHOrsf++ EfHR8MWPZJ3dPcDAzIF/Us/QUC+xSWXSalByGGbM0FkQ29D+GS5xcIYyAnG+sSzOy0o6 nEe5eZSIAxjvbuz312NavpqMW4sMQYbJ5NkVnZ7OMGt5wjwYdOx17sBNyFZMQdPN27ZW I4aLDlpoGW1qF8xasIxXiNmr3rcjKhnP998xjYa2vX9NoFe1vf72XqRP2B0lDxjj8H8y lwFyNwGOKSxFnMdh12UT5YeVDakI81dGou4brZj0Y8RXvjoeip9wmUXzrv+lznQPSNr4 4Vcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hgNtW1+G; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 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-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id n62sor1699550lfd.15.2021.02.25.09.04.04 for (Google Transport Security); Thu, 25 Feb 2021 09:04:04 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hgNtW1+G; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 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:mime-version :content-transfer-encoding; bh=DOap4yHkmq8CavcY7I4GN8w1SlMHMd4tkxnPryvWXe8=; b=hgNtW1+GWpoz6K7hbtSnL7IQqJuU4A23n/pa13h69n5TBX7AIzjMqNemROx2zXyrkM CUqAKHgFSDQcY1UT8XsEcbgsysRJJDmLpnsgCouPMFFX8sdMO5x+U5YAqRCRONEpjkCu KSE+ALwaFtuaYwI/8SZc+gRWrC7MEhWEqWTB4qV10LyplFUWui7gT8eaarIjBnYpg5ot DBNbc2X7/Zu0GHKlxyEG0Qphudd/fJ+2A6d9TZQTa90YxiDxbW9/8bNV/p6wJqFZNxrK kh2DGGeXpmvGqkwM9Cqz18/WaCjwsMVHZ9TpwjxD8GtM5tYNFi0tRDS9PQP7AJUIGkfH 964g== 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:mime-version :content-transfer-encoding; bh=DOap4yHkmq8CavcY7I4GN8w1SlMHMd4tkxnPryvWXe8=; b=SsrzAeom57uMcb2GHIdRBmFfJNMYyxD++bRhvTw4xFSNvfGEe1+9pNIHcKeU/yHHMv 0PFLGzqCPGYClyozr2c/JBsi7ATP4VJLQ0juj9szfNGV5kflKGaY1CgEpkA4+cx41VPc wXks/09N2xZ7sGAxwIX5lNSXUbPDSPSFFhPa52v3DOT/T2wj7u8F89gBwd+bpab0YeBJ ROcP5uf+5gOSwHYDmvLTlHhmArK1WNqT9L7GjTdvVc4MTMfMvbcIwPblxzWb67R3IuFB kIpn1D2fjmDgBSCE/bT0rDe+YEMPCW4xr2HBmgOwVd05mhRfGaPrv2xxgy6SEJStT8sG cKBw== X-Gm-Message-State: AOAM531eSLeX0oIGc+P4ygIKUgbtjofRbcQn8DJXLDdMJVUD3Vybr/eh eY3c9ql8tiZr0uGufHQNuHn3DaGF X-Google-Smtp-Source: ABdhPJxvTvVREmUjSS6lpbqvTkeJX4iCimDk0nZyHdbyH/BFA8at+6wvgxayb4JO+PIlU9lZLFijjw== X-Received: by 2002:a19:7114:: with SMTP id m20mr2297506lfc.570.1614272644253; Thu, 25 Feb 2021 09:04:04 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-155-4-129-234.NA.cust.bahnhof.se. [155.4.129.234]) by smtp.gmail.com with ESMTPSA id b39sm1103749ljf.68.2021.02.25.09.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 09:04:03 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter Cc: AKASHI Takahiro , Ben Chuang , greg.tu@genesyslogic.com.tw, Renius Chen , Masami Hiramatsu , Takao Orito , linux-kernel@vger.kernel.org Subject: [PATCH 0/4] mmc: core: Preparations to support SD UHS-II cards Date: Thu, 25 Feb 2021 18:03:48 +0100 Message-Id: <20210225170352.76872-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 A series [1] that has been collaborative worked upon by Takahiro Akashi (Linaro) and Ben Chuang (Genesys Logic) is targeting to add SD UHS-II support to the mmc subsystem. Throughout the reviews, we realized that the changes affecting the mmc core to support the UHS-II interface/protocol might not be entirely straightforward to implement. Especially, I expressed some concerns about the code that manages power on/off, initialization and power management of a SD UHS-II card. Therefore, I have posted this small series to try to help to put some of the foundation in the mmc core in place. Hopefully this can provide some guidance and an overall structure, of how I think the code could evolve. More details are available in the commit messages and through comments in the code, for each path. Kind regards Uffe [1] https://lkml.org/lkml/2020/11/5/1472 Ulf Hansson (4): mmc: core: Cleanup printing of speed mode at card insertion mmc: core: Prepare to support SD UHS-II cards mmc: core: Announce successful insertion of an SD UHS-II card mmc: core: Extend support for mmc regulators with a vqmmc2 drivers/mmc/core/Makefile | 2 +- drivers/mmc/core/bus.c | 38 +++-- drivers/mmc/core/core.c | 17 ++- drivers/mmc/core/core.h | 1 + drivers/mmc/core/host.h | 5 + drivers/mmc/core/regulator.c | 34 +++++ drivers/mmc/core/sd_uhs2.c | 289 +++++++++++++++++++++++++++++++++++ include/linux/mmc/card.h | 6 + include/linux/mmc/host.h | 30 ++++ 9 files changed, 404 insertions(+), 18 deletions(-) create mode 100644 drivers/mmc/core/sd_uhs2.c -- 2.25.1