Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1350325lqp; Mon, 15 Apr 2024 04:05:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwr8pbctx+oooA0wCsAWXxpkoOMvtJqXOaUSwt03zcIDKqcTBhV8G5d2teF/ehnUImr52h3ARSosX19N6yMBsHMzgBoCHa5fyp4E/nkQ== X-Google-Smtp-Source: AGHT+IEf3itdZQDjNaLcnYj9zkaVsmArvnXwa/jUQwdUY97EuVhDs0lpoBBjVqjHq3GO5revw2B9 X-Received: by 2002:a17:902:d485:b0:1e4:3e23:ca72 with SMTP id c5-20020a170902d48500b001e43e23ca72mr8776131plg.42.1713179113687; Mon, 15 Apr 2024 04:05:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713179113; cv=pass; d=google.com; s=arc-20160816; b=Y9/gj/lZ8lZp8iXe9XfG+pYV7mkTPpu/F4jdqZHlQEZdCA3ZuRkVMX8KN3KZ3Tcdps 3Hqpt8WhqBKMwMrAANArBx8tiYIU194mvkPKjm4xsaaapFPWe3V+tzXcfuxLIVNsYxFr BYWqu7X8OT3i1svFGm+EejoPs8kJe0O0lWmdDmXoZIlAuFtbBzJkx5LTVq7lhXKRmVnZ R+EpdzPov/i0mu/0nZKP0b/wfPEq8MWjGxPRtoALOSsRvX1AAi4xPg+b41CN79ibaMdN +akkRYA2cwPO0PGDJAxhARirriy+JDf6te643H/F12H5qDV0bPDup+X4rImOBQHyq8AF pknA== 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=66rMgXjDRj7iuyzONZeOmCWgiIYlP3xNvPWCzReNO4A=; fh=YwOpT9hosAFiTtwNp4abu3M4Hd3ttT8qEFVmhIFf1lQ=; b=TGxQEZ7bFLIwtr/jZMBuY/vWBz1x9CKyn6lAb57gF5l+Y9TBzlTHF4bvmLgdyaPkvK p9Q+BwCJtrOwQBJl03Mgd+O9wKzikhOuPPcrH7HIjuizwes94ggDSOMtsM60plluknKm yE6a7H66JxKRJV9BJ8Ga9B56E0tUtzfAHF5T84SMoZa6LI+Gyaph4W4+g2Da+TuIdGky bLa9dhktZ6uQvKB3SwXw0SAwYQVyVqEOoT3aTFkgxAYN1yafzI6Co5aiYVi5PE6syyqt sHuYMsiBKgwKWAUEtV5hbQyReKNxWIGdTZa/PW9a1OOiN48wxASWpyRed5J6LnTxSgw+ 5ltw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GUXCDZ5C; 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-144953-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144953-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m16-20020a170902f65000b001e0b2a3fc17si7636314plg.311.2024.04.15.04.05.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 04:05:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144953-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GUXCDZ5C; 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-144953-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144953-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7BDDAB22B46 for ; Mon, 15 Apr 2024 11:00:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCBB05D48D; Mon, 15 Apr 2024 11:00:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="GUXCDZ5C" 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 A62DA4EB42; Mon, 15 Apr 2024 11:00:17 +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=1713178819; cv=none; b=HipbUGFyE6UfKBsm1BlmFQKLxGM8ZtuIXij9/hRk2YojuZB4RAtdu9xvx3iU/TdBFaxxWHoaWCHP7JtEv4RedGaxQf6xUrxidrsx/V0NIsALapKhVvpaWJnFCsLCCs75HXicjowORmSpg0KH7RNwXkfsBlijJIsJsnjhIUwVtk8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713178819; c=relaxed/simple; bh=q/mYk8lU6ClHh16h8UHvuyzapBbcS2gBCHZS8xDauBE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E4u2s3OR9mraPmPqJM2xLSEoxKR0CkzXfmVHoWGrnNNavP87QY2QvrAb6EWqCM2mSyDKvh7M6WcgCjMvik6K0AbLF576D3k2JcGw2IUZgXufpu+tQ+Y8VxS1Cxn8OXs0NvMJCL6USBXvCoYMSpSYDjUPweN+LjLPbiKDEnHicQM= 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=GUXCDZ5C; 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=1713178815; bh=q/mYk8lU6ClHh16h8UHvuyzapBbcS2gBCHZS8xDauBE=; h=From:To:Cc:Subject:Date:From; b=GUXCDZ5C3gFucvZ41xUJK2ewkecca9YSoSxXcYkhAqc5l5S0jgIJ5kVJbK3JvWgRM OquhVFJiTGIqCYUrmK1W4ITvcUN9bp9I5IgHG3+kh0AL01Lg5xlMfWiIHX1LuOMFwT jmUOm2t3Ce3JzKgqcgnWTV+wu8NB/MUOgGB9niCzmphM4FQNcx7aWENz2PkC6AiY4G 4anPK3ezp9lFpz3W9uIyRwAnM78MnhdGukwsxnul/j8rT1eINpHl5gfnM6A79AkWm0 CWGsVmDV+W3uAWWdeAiP2Xb3tCYKjzCD/HHJQO72DaEzj4aB4GmEaZ/6MSdM1U3cWz 23mZMq9fNDRtA== 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 97B243780022; Mon, 15 Apr 2024 11:00:14 +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 Subject: [PATCH v4 0/8] MediaTek UFS fixes and cleanups - Part 1 Date: Mon, 15 Apr 2024 13:00:04 +0200 Message-ID: <20240415110012.148871-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 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 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.44.0