Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2496908rdb; Thu, 21 Sep 2023 23:29:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoGhb6DvgGmWE1KI6NIsniBJeF73a2rX6ZGcYJT5sd1ARroYAjyR4nwF0A39ka8qx0AvJn X-Received: by 2002:a17:902:a407:b0:1bc:2c79:c6b6 with SMTP id p7-20020a170902a40700b001bc2c79c6b6mr5865002plq.28.1695364150072; Thu, 21 Sep 2023 23:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695364150; cv=none; d=google.com; s=arc-20160816; b=NZtSGxD3xjByNotSiqQ0pVi0bjUCVJ87gdvzF6G+no+yLWEL87gzOG20G0XRJvwjO0 hYCgn8gfobZJH5q6/wVs0+yzOyora3oruEGAXm9WE0U7iNQTc41PJ6QBmMGMzRLqZ/9C hZU+E9K7p7FYFtsUX5ZIiT5g/ToFvuvbGYJ4lp1UEV/njpHdIvTGvsrfbTPwd47l0nae g+K/XLL2YmHLq4G+qmfDUWRdT3G/Xg+5lFY3YJ2eq8N3gF2HA8+qzx7xFG4nWO/Lriwr oJwdJWzEmQoBy7fK8baY0fFbVnbwYaLypmTqsH+bKLuXjZLZTMyK/5e9u3KTZWwaMs+d VVqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7gUBOoqTlbZ34jWzvWp/PZwh/7TmuavtEhdrQ6m/SdQ=; fh=kxe0WRziv7CVSpkNH/bNiH26639+950jD1JJwWX77uk=; b=YqRdJgh2X7JJCc/F5fT7JJtQ1UvAiEbuU1fZDCCEeHjbrF0Z4ifo2QHqsVloF8oLhy dJI294FUifs+FuY2i6CP+O+rE/0qWWomNm+jMrtQR0uOYCp7Fe9XD8GXYUAvLIKMnPdw 2Yfshw4o4U/T8vvzSxHNVGRn8x9KA/+kMHbGaZCUHOVh7mlUudQVJFRmNodW3U3T0shG HIH0LLj215ap3oR9eZM0drrwJn1iEUAoGrNo+wVRUDqs7EPmbRJxuXHlWBMwiUA16J8v 7lq7KBRFjw3HJCqjuJvT50+VclCqU2C/vgSSByy4G5iO8PMZU3S6EPTinI9DbPwmOXQt rzyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id jz13-20020a170903430d00b001bbae3ae2bcsi2960945plb.413.2023.09.21.23.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 23:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id EB5FB806141E; Thu, 21 Sep 2023 23:28:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229803AbjIVG2s convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Sep 2023 02:28:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbjIVG2r (ORCPT ); Fri, 22 Sep 2023 02:28:47 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C64D83; Thu, 21 Sep 2023 23:28:39 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 6983424E2B1; Fri, 22 Sep 2023 14:28:36 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Sep 2023 14:28:36 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Sep 2023 14:28:35 +0800 From: William Qiu To: , , , CC: Emil Renner Berthing , Rob Herring , Jaehoon Chung , Ulf Hansson , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , William Qiu Subject: [PATCH v3 0/3] Change tuning implementation Date: Fri, 22 Sep 2023 14:28:31 +0800 Message-ID: <20230922062834.39212-1-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 23:28:49 -0700 (PDT) Hi, This series of patches changes the tuning implementation, from the previous way of reading and writing system controller registers to reading and writing UHS_REG_EXT register, thus optimizing the tuning of obtaining delay-chain. Changes v2->v3: - Rebased to v6.6rc2. - Dropped redundant criteria. - Keeped "starfive,sysreg" in dts file. Changes v1->v2: - Rebased to v6.6rc1. - Keeped "starfive,sysreg" in dt-bindings but removed from required. - Changed the function interface name. - Maked the code implementation more concise. The patch series is based on v6.6rc2. William Qiu (3): dt-bindings: mmc: Remove properties from required mmc: starfive: Change tuning implementation riscv: dts: starfive: add assigned-clock* to limit frquency .../bindings/mmc/starfive,jh7110-mmc.yaml | 2 - .../jh7110-starfive-visionfive-2.dtsi | 4 + drivers/mmc/host/dw_mmc-starfive.c | 137 +++++------------- 3 files changed, 44 insertions(+), 99 deletions(-) -- 2.34.1