Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp263495lqg; Thu, 11 Apr 2024 01:55:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/fbuhes0KHBW8Fyt4AMN1XUb+b0igSt/QQelYLhcsotDRRQy4a/w1dIwHAtsD+nPX8EJ8BaUqxpglgHIajk0UpqI0p42ylxlzznZhRw== X-Google-Smtp-Source: AGHT+IFLs6ug7DwdPQnNmvl0l/Uo2+3+9H95u/HLqOCra9ojC4mFJNqTTjkhEFxBcKJVPp+7yNvZ X-Received: by 2002:a17:90b:4d8a:b0:2a2:acf3:4108 with SMTP id oj10-20020a17090b4d8a00b002a2acf34108mr6010272pjb.0.1712825729113; Thu, 11 Apr 2024 01:55:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712825729; cv=pass; d=google.com; s=arc-20160816; b=VowO2JrDzT0OQ5VRBVcN6B9XhMUKWEQCQECIcW3hu6y8oLRtZVziydweLMieIVXMZB IfGxJmRstTG2cw+s1y4V2kV7OTE+57ClKdfklTTXTUatlPiyC5pOQwJo1nViwYNP02om kbdB8Q+8G0TbmetnIEOq36tkeuYD74yhZBULV+AXNvvBmtvlENGzKby5WhxYP7/TF8P7 oueSh8/tWLvDpKWPT6saTm3wZiVzKJZQ4jpj1Xf//0nDhS5GemjAv0brUGjPSesRH1wz JvtwTNenEgqmxF/N+4vYWcPLsEJviDjJFmwGODmoPlk5Wws20QdCc4XZB4rogC+UZjEg YbTg== 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=0QD5Da1/oUZCgk2RAkPcPayR9HEg4C0LNnospNkTUmc=; fh=b0x409n1YPtJT58BLrNPHnelp/OfaaUeU913TEkV91o=; b=yAwMwRpVv+LB2L7YZq4iC7gVFYID5TXl6w0H7WfEI4bntAaO0RbvHsB7ffD8NDMegB GMg3ET/wSsm5PrWIBAVBqVTgadH9z43rxB90kyOEFWG+w8CXyOoLI3QF0zvOhAfv/jAQ wySNzpMoTS7ZwXaAwpu96q+LUPejEi2bXMceGmMXCCUdY/95KdP2gnrLYdtDXccDe3Fs yb/ab6iHSmzZU4IoNbxWaEg9Cdp2p5IpaW63UFW9p1WczmjYdPlo35n+uqq7H3kk0O3H Xq2NcRx+nahmeyqv0d5Qy3Xm4Gc+Z2yWeD3SN6wpP27csr6B7Ik5bkIFCxHIp3HbJETy RECw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aDFr8eo4; 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-140080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140080-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 gv9-20020a17090b11c900b002a525340be6si3009208pjb.93.2024.04.11.01.55.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 01:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140080-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=aDFr8eo4; 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-140080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140080-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 C5A0CB2479A for ; Thu, 11 Apr 2024 08:32:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56E6E13FD8E; Thu, 11 Apr 2024 08:31:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="aDFr8eo4" 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 D5CA1846B; Thu, 11 Apr 2024 08:31:55 +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=1712824317; cv=none; b=PFXwY6rhypNjPFpPoQ/nZ6WD84QEEmPHU5+vMvKh7m25NyE21x/BNFi4TwtAcLvYpz/3a1tAajbxIPOXn2KE2QmyT0wo3n/HfgE3z3hRSbE+vNJ2yFlOtSDWwJyJJVukdU/MT0DpVVqckGyYLPTJzgmKIhqWqfGyRuwQk1iW8Rc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712824317; c=relaxed/simple; bh=sDsx6/+mqmmjyVV0bm9WeLEM9nnWJMt059yWOadbhxI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kyNQc5ssrrf2uyVLufDgAVsQQtT0jJg0XXdljm4i7iecr+DuJjvd/TJitucUlH7lDD9vTNisohvMe67DGcMHCbNLL/ee1XIoJ2mrs4z8OgXqXnTpfxN+BQbhbRmqC64e1zeVUsY75d8Dt/zRpexELxlTkvMkP2cQYJ6mjg0zDtw= 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=aDFr8eo4; 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=1712824313; bh=sDsx6/+mqmmjyVV0bm9WeLEM9nnWJMt059yWOadbhxI=; h=From:To:Cc:Subject:Date:From; b=aDFr8eo4rept7g6OxiKh4g7UPaT2YM8MR/WVTHAhtmlH3P5PTYJB5vMl/E2bakJih 4ANO3gzHzd/Ppi+JyTHOOBu7S5/JDeoYKXwqHOLB9P/1GVu+dqD7b8Zj5MIuh3D15h y/+INT5L4JPEWXOnywRCf5VjxgqBv2Urqox9Q0bzsBA+l8RpWSuDDwgY0Ki+FNoZ60 F/Vu4TU2Gkrf7Nx8wgPNUkR6yhZnus9EAuLJ8zeXDdtJEU/ovHysOsZ3vjWMHytkpz qiCCx8FC1vJZHOoKGaWhcgMdXNf1pPE/4DhpoKgVaOfAUeyO6fQIDrhnjihPARnic9 Md1a7MZ6wBDVQ== 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 8944437820A1; Thu, 11 Apr 2024 08:31:52 +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, chu.stanley@gmail.com, jejb@linux.ibm.com, martin.petersen@oracle.com, lgirdwood@gmail.com, broonie@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, stanley.chu@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH v1 0/8] MediaTek UFS fixes and cleanups - Part 1 Date: Thu, 11 Apr 2024 10:31:41 +0200 Message-ID: <20240411083149.78537-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 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-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 | 28 +++++- drivers/ufs/host/ufs-mediatek.c | 91 +++++++++++-------- 2 files changed, 79 insertions(+), 40 deletions(-) -- 2.44.0