Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6220153rwb; Tue, 9 Aug 2022 11:07:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR4UkIgdQNqfBjuV1u4qfKibnv5QXKrTpYri0DprIQtv7axgUb1vYu/PkuSa+osGUmUvFG5O X-Received: by 2002:a17:907:7e8a:b0:732:ff29:d1d6 with SMTP id qb10-20020a1709077e8a00b00732ff29d1d6mr1221406ejc.175.1660068460985; Tue, 09 Aug 2022 11:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660068460; cv=none; d=google.com; s=arc-20160816; b=kQVFYitHnNvo+u00LL/oaWugLXL/70T5s6oP+l80x6Hiu8C3ovbOGROAM3b1SEsjK2 UDi6k9S2VbnpmHI1YWnnFXN7S84yfvFkQuoyUukBhldZ145pPkvL06XLO6iRTSKYGPCV W1d+ogu5OX8ATEXP/UyuRhfHBwBmE3tnYFodcD23DKJpbYeaMw13PFEXpBF2hx0c4DUf ufyMwxVO2QhEViSv/xEgVQJIGgJzz4bCNRkfq5seAXc6MCjjn1HaO7MUjeRH7ZbrYkwl jOrqfi1TD0dogubSPX8aCdW5y1QpnECnCktbFuB2ngsSN9eAso4tGCBDP/6DZUJ3Tfbw HyEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=lJgNFnKBAD3W6+nMLS3KtRGHN5jjeaSLik2catrtBLQ=; b=Sq0HwNNLpKld4g0MC+WsdQ/4nWCIsEMnpOxGSUzSlGkxpQ/MomyhRBtjFW8tI7kO6u r7lDhMMvfj4Ac9EOUD5bHj0LOldRbuHgU4tPym+8sd+9nsTH85TbtRFoUTALN4tm6j37 nAhBOFEDSD98QgEMzhs/gnjIG4afX+kEfspgdzLK1yVzo11ld7RU30XeWYgWpTq+FEFB vZy9S9PaFcznGyeOTaCiJ/YLCN6jJIOAq6qzpFoZOJBpHwea3mtWSGtD8jinLM9WuAHP fWyLnqoQ8JG7MqCamE+vWGPeXSmWzCRxHQE4kBoGuUqkDtLztogFMm/hGoqWCg+Y6NTb vjcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EVR37ynf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v23-20020a056402185700b00440e4be2c8bsi3599130edy.507.2022.08.09.11.07.13; Tue, 09 Aug 2022 11:07:40 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EVR37ynf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343531AbiHISGC (ORCPT + 99 others); Tue, 9 Aug 2022 14:06:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344672AbiHISFT (ORCPT ); Tue, 9 Aug 2022 14:05:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFF2827CEA; Tue, 9 Aug 2022 11:02:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 649EEB81722; Tue, 9 Aug 2022 18:02:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22D78C433D7; Tue, 9 Aug 2022 18:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660068148; bh=lJgNFnKBAD3W6+nMLS3KtRGHN5jjeaSLik2catrtBLQ=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=EVR37ynfgVxGgjgEcwtYqTtzrPixXH1kEcatTawE2JTaQLXiYyQYFS0BBFgeu+h8v EZPPjLlL/PYOBVCfiH6txoSdeeTnHfasPst7YWKv2JM/YJ4GYmcU3rR37gYXoG6T8G tP3gn/ge/WhxnN44ArX0nXU7HFUhS3tkP4Zx6HylJl5+wXPeC49Wp/ofPrRlTGdNNQ CUQ1VOZ0EcrHZIDDngG6IXDCLZo9KD7Y73NN7nfVNkqbmKCVH7EvYpfFwnsb1DQ10F j2JbGFZ3NV0Bqz36vvyXli++/yhGzj4O+GzL4xloblwzImWisqCTTFFhT3W0ST4dWB IuAaqtX+CtyuQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20220711123519.217219-1-tmaimon77@gmail.com> <20220718191454.5B5D3C341C0@smtp.kernel.org> <20220723030226.8E43CC341C6@smtp.kernel.org> <20220729225603.12528C433D6@smtp.kernel.org> <20220804200549.60512C433C1@smtp.kernel.org> Subject: Re: [PATCH v8 04/16] clk: npcm8xx: add clock controller From: Stephen Boyd Cc: Arnd Bergmann , Avi Fishman , Benjamin Fair , Biju Das , Bjorn Andersson , Catalin Marinas , Daniel Lezcano , Geert Uytterhoeven , Greg KH , Jonathan =?utf-8?q?Neusch=C3=A4fer?= , Jiri Slaby , Joel Stanley , Krzysztof Kozlowski , Guenter Roeck , Lubomir Rintel , Marcel Ziswiler , Michael Turquette , Nobuhiro Iwamatsu , Olof Johansson , Philipp Zabel , Robert Hancock , Rob Herring , Shawn Guo , Tali Perry , Thomas G leixner , Patrick Venture , Vinod Koul , Will Deacon , Wim Van Sebroeck , Nancy Yuen , devicetree , Linux Kernel Mailing List , linux-clk , SERIAL DRIVERS , LINUXWATCHDOG , Linux ARM To: Tomer Maimon Date: Tue, 09 Aug 2022 11:02:26 -0700 User-Agent: alot/0.10 Message-Id: <20220809180228.22D78C433D7@smtp.kernel.org> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Quoting Tomer Maimon (2022-08-08 06:08:08) > On Mon, 8 Aug 2022 at 15:37, Tomer Maimon wrote: > > > Using platform APIs means using platform_*() functions, not of_*() > > > functions, which are open-firmware/DT related. Regmap can be used to > > > operate on registers mapped as __iomem, which is different from platf= orm > > > APIs. > > I will use platform_get_resource() and devm_ioremap_resource() > > functions in the next version. > I will use platform_get_resource() and ioremap() function next > veriosn, is it fine? As stated earlier it will work for now but eventually you'll get patches from janitors trying to convert to a devm based API that reserves the register region. Can you ioremap the register once and register an auxiliary device and driver for the reset (or clk) part so that the driver can be moved out to the drivers/reset/ path?