Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp320311rwr; Wed, 19 Apr 2023 23:05:19 -0700 (PDT) X-Google-Smtp-Source: AKy350b/XCQWRyrwRno9dlS3iXxmixoCcJc8X4ZHqUfwvnIPp3dlYFuV44AWZvZDwuOW8J0J/gzp X-Received: by 2002:a05:6a20:a5a8:b0:ef:4321:a8a4 with SMTP id bc40-20020a056a20a5a800b000ef4321a8a4mr598167pzb.44.1681970719303; Wed, 19 Apr 2023 23:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681970719; cv=none; d=google.com; s=arc-20160816; b=T31yThe2gPcIJsJyQIHiS3F3rJZlx1NqLnwmvxhynOkrHt2NxpZGdShHZnQzKghh5A gZIyMv0BNpwvJY6l9gNiDDE09yhC079D26r0UBGWU/qvBLj4CxN+Ig4+oogiaC+M6y6E aIbqnjJ3Tl5s/SnKZ+zx6xpcCRrpiMaBUzccRFQZy8smYlOV5lR2nrXbuWjIj56zU4NK +6XDVYHCs/GYfPJfnSs4TV+GFkOF+jpKPaD8przc+Qo+c7GkOQykJfemztoCqmWKikzR fWtdNyEDWf9YszJyQFvXibDd87Qnpzsi9bHnkFjl01Z/aAb5EqL8ffia2NMgx1kCxljl FI/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=fEGqrrZgMCeF/Pwgt+Q+Na4k1AnonyNB6+tOJttfQpU=; b=uKMTm4e1ldxgU34kjQD1CkQR0lYuDtJmiz1U2WsYCnc3ca+NhatFIITtAI2DMw/E7b O6aqbvo94HAGxAB4POcKr1bOkq1OZJ0gduSmWgBhPMJu6YKMD2lO6jp86LkC1QhR/DV/ upbOuZJTXHIv1xplO8ixEDoFZ2bGpa12ddGuC+p4oF+kSEXuyDbK2iD5ONLonS9FHfPI Ypg9bOk8IumakD3/XW4pMXxQVgbrYucVWVjQa7o1Rei5hTpUwpDiUaY2YYbUfZ/re/oK RlIOH6JQyP2aPIc1wBBkQL9AwNI3s5swHZXs5sGWVRy3sMQuQDTVJ46/SYrHdB7cc5AJ A8Pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 63-20020a630142000000b00520b3928be3si798143pgb.329.2023.04.19.23.04.58; Wed, 19 Apr 2023 23:05:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233967AbjDTGE2 (ORCPT + 99 others); Thu, 20 Apr 2023 02:04:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233968AbjDTGD7 (ORCPT ); Thu, 20 Apr 2023 02:03:59 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51DC86EA8; Wed, 19 Apr 2023 23:03:18 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 6C3F324E1B2; Thu, 20 Apr 2023 14:03:16 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 20 Apr 2023 14:03:16 +0800 Received: from [192.168.125.106] (113.72.144.253) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 20 Apr 2023 14:03:15 +0800 Message-ID: <2e9d1548-1a2b-d4aa-2582-f70299d1b050@starfivetech.com> Date: Thu, 20 Apr 2023 14:03:14 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RESEND v2 3/6] soc: starfive: Modify ioremap to regmap To: Conor Dooley CC: Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou , Walker Chen , Hal Feng , , , References: <20230419035646.43702-1-changhuang.liang@starfivetech.com> <20230419035646.43702-4-changhuang.liang@starfivetech.com> <20230419-headdress-surcharge-8017d6db444b@spud> Content-Language: en-US From: Changhuang Liang In-Reply-To: <20230419-headdress-surcharge-8017d6db444b@spud> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.144.253] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX162.cuchost.com (172.16.6.72) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/4/20 1:29, Conor Dooley wrote: > On Tue, Apr 18, 2023 at 08:56:43PM -0700, Changhuang Liang wrote: >> Modify ioremap to regmap which can be compatible with the syscon >> interface, such as: >> struct regmap *syscon_node_to_regmap(struct device_node *np) >> Convenient introduction of syscon operation. > > What's missing here is an explanation of *why* you are making this > compatible with the syscon interface. Provided everything else is fine, > I can fix this when applying the series. > > Thanks, > Conor. > Add this patch just for using the same member(struct regmap *base) in patch 5. Maybe I should replace syscon_node_to_regmap() with of_iomap() in patch 5. So that patch 5 will use (void __iomem *base) member, and I also can drop this patch 3 in this series. struct regmap *syscon_node_to_regmap(struct device_node *np); void __iomem *of_iomap(struct device_node *node, int index);