Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp274959lqp; Wed, 12 Jun 2024 00:44:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxtApOt3MW7Y7wlK9tMkOc5X2vaCS7p2bC5qFgelklJ8b4dXZkfFzm0/eJ2Z6ikFsUXd6E/Va3/bLhSxpXlV1PRqXElxnyqEtfd3yn0Q== X-Google-Smtp-Source: AGHT+IEhLP7o8GA1y+d6S97//9ccItzN275TS/EdeI2H3yIxKxmNgLQD0H4Ie3+AzCVhSA9YyxV2 X-Received: by 2002:a17:906:c14a:b0:a6f:47c0:d8f2 with SMTP id a640c23a62f3a-a6f47c0d971mr66531066b.17.1718178218784; Wed, 12 Jun 2024 00:43:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718178218; cv=pass; d=google.com; s=arc-20160816; b=wTav68Fbu5hwIv+YIanFXahK2bt2AgIuACaVZdI0UyAyhoXbowPXtnLzifY/MnDDG+ 6T1bBo/5rVGSBfvNZeJBsOjnl+S7KlATu7syb4myaXsKtmumZt673RAHx2BwPkKVyEr1 YktFnDnQCS7wYCKdJnlU4rZRznmMdb4Viq/SRRw5Lluzy10BdfD8lNTZry6FfWuJq1cQ K4XFD0ZfRNDvcmr4tsjnzP+anZOEx9Nk59a+CktH1GIOhx3VT4CFGtzrnmdJZ8uetxmj GiZgagArphW4EDLdUESR6YjFpajw13qqtZuNZbavjBELXVR850AQmJNVRoznETvjWpvr Da8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=5H8C3/avF4muzyDMl2EQz7isZqqohk3NMtYGzd6roGU=; fh=oWMdVgkqmnRIAyyDwk/SB66OBEgnRGZ7+sVKUaV49JI=; b=00ELmyalSWDHcZk+ByOmPjsCUKUUNcN8wtOS6X392ZDIu0Cynf9OX4dNgiehwldIwB 9Uf7bqMvJ/EUmTnrwbwrHtT/k2G01ktZuwKOKOeo8CLNIyipD6sF7A/AZbI80rxMkhec nSLnHa8jKlCpm1UUTrC0JBdo2gfg0Ok1R3hciq+6gjVRnj4CvsYOTBjEOPw7g2yqWs17 fmQEoTYfLEcS6AolNuDN8nb2/aIjKvYj4qmWZjXDl9CAPYgh2ypNNSsJMm6koUK1xSdm VqwBPRNcorV3RpIRLH0EfYEoc1FZjHLy6Z8d/fIHZyuzrij7SnK5HEv0pzw6nJCCQAbs b7Gw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=cABS5A2D; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-211085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c80591cebsi663362266b.36.2024.06.12.00.43.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 00:43:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=cABS5A2D; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-211085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 57AC61F221B0 for ; Wed, 12 Jun 2024 07:43:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41E0A16C445; Wed, 12 Jun 2024 07:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="cABS5A2D" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 E2AE6B651; Wed, 12 Jun 2024 07:43:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718178205; cv=none; b=uWyxHgSdRPGrE1VWm8UF9CskdpWu+iuTny7eze094W8JyXligguIOeWTRzP9Kcekiz+TcxDjQDMdnsXNDX7ilQoBM/PYnF/4LOZs2PSiKmWpj2vKYJu7KIQCeQyCXqtvIc1IiotGpNoMIskqijP+jWTPlNx2aR+lYdr8osfCcEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718178205; c=relaxed/simple; bh=QHmdx0T93KlMa0bAVjuFjeI5sMM5BrBaWcIHBFNDdIU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ky/l/GOKTRW3U5//9wtQeUqKmsh3b/HGGAbS3wLoVJ7z8osSO8uDiFYEz9kfdZcOIKmVdR50y343/H5XNhUmaGnDaV1eqpteRGsrDPV4sQnmX1B+7JkW7HYBj1cH1irTK9a819XvtiDV4sS/Kuqzt2DJJEAHDaFrZPw3T3TTmNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=cABS5A2D; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718178202; bh=QHmdx0T93KlMa0bAVjuFjeI5sMM5BrBaWcIHBFNDdIU=; h=From:To:Cc:Subject:Date:From; b=cABS5A2D46NNjU2XYkoKIpIpxaFkbqZ5J6LFiXJfNs/7wCEz0umyq0B4HpOooDbAL o79Ojstduxq2Ht+OQvLdrD3xg9XDNrkj14ny/VnSFT6xyhRhwQuyksxi2Tuy3AMQx7 q7/jJdrDjIUJS0rdBYGIToWN1cNXK4kbnloRGN3Y4NQ8FBkO4Rhib6VjGpAZ7tr6Nl E/oITx2EqXOWtLO9w5GkN19L9L992pQ6Ogx2O2q25Sc7HZkSlX70PHaWuxJkYrz+eQ mGNTy0zI+9CcZoHVWH+PEclJ76pTaHglvT+dunJOpPkEEbDOiTiLBIbt9h8inBtHso 5PLYwAmAjyThQ== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id E6A253781188; Wed, 12 Jun 2024 07:43:20 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-scsi@vger.kernel.org Cc: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, peter.wang@mediatek.com, jejb@linux.ibm.com, martin.petersen@oracle.com, lgirdwood@gmail.com, broonie@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, wenst@chromium.org, michael@walle.cc Subject: [PATCH v5 0/8] MediaTek UFS fixes and cleanups - Part 1 Date: Wed, 12 Jun 2024 09:43:01 +0200 Message-ID: <20240612074309.50278-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Changes in v5: - Rebased on next-20240612 - Tested again on MT8195 and MT8395 Changes in v4: - Replaced Stanley Chu with myself in maintainers as his email is gone - Fixed commit [5/8] Changes in v3: - Disallowed mt8192 compatible in isolation - Added maxItems to clocks Changes in v2: - Rebased over next-20240409 (because of merge issue for patch 1) - Added ufs: prefix to patch 1 - Added forgotten ufs-rx-symbol clock to the binding This series performs some fixes and cleanups for the MediaTek UFSHCI controller driver. In particular, while adding the MT8195 compatible to the mediatek,ufs binding, I noticed that it was allowing just one clock, completely ignoring the optional ones, including the crypt-xxx clocks, all of the optional regulators, and other properties. Between all the other properties, two are completely useless, as they are there just to activate features that, on SoCs that don't support these, won't anyway be activated because of missing clocks or missing regulators, or missing other properties; as for the other vendor-specific properties, like ufs-disable-ah8, ufs-broken-vcc, ufs-pmc-via-fastauto, since the current merge window is closing, I didn't do extensive research so I've left them in place but didn't add them to the devicetree binding yet. The plan is to check those later and eventually give them a removal treatment, or add them to the bindings in a part two series. For now, at least, this is already a big improvement. P.S.: The only SoC having UFSHCI upstream is MT8183, which only has just one clock, and *nothing else* uses properties, clocks, etc that were renamed in this cleanup. Cheers! AngeloGioacchino Del Regno (8): scsi: ufs: ufs-mediatek: Remove useless mediatek,ufs-support-va09 property scsi: ufs: ufs-mediatek: Fix property name for crypt boost voltage scsi: ufs: ufs-mediatek: Remove useless mediatek,ufs-boost-crypt property scsi: ufs: ufs-mediatek: Avoid underscores in crypt clock names dt-bindings: ufs: mediatek,ufs: Document MT8192 compatible with MT8183 dt-bindings: ufs: mediatek,ufs: Document MT8195 compatible dt-bindings: ufs: mediatek,ufs: Document additional clocks dt-bindings: ufs: mediatek,ufs: Document optional dvfsrc/va09 regulators .../devicetree/bindings/ufs/mediatek,ufs.yaml | 29 +++++- drivers/ufs/host/ufs-mediatek.c | 91 +++++++++++-------- 2 files changed, 79 insertions(+), 41 deletions(-) -- 2.45.2