Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp251677lqg; Thu, 11 Apr 2024 01:24:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvuNk+g6R9XCuWLT6Typt6LQ9eXb08kiH4tLWExZ0LAUZWrRk6E+b4OmXTRWK1MHfkTr1IY4c3zXT8SRy7EBNfXisgXKZcvVOCnVqFQA== X-Google-Smtp-Source: AGHT+IG/A00lOfRGHDmW/nbRYzEaFiAXH1PLGCa9tgQAo+nXvgOxvS0B5oSNbOvUK/Mv/HjcpW1O X-Received: by 2002:a05:6a20:a11c:b0:1a7:74a2:6781 with SMTP id q28-20020a056a20a11c00b001a774a26781mr5194912pzk.7.1712823856984; Thu, 11 Apr 2024 01:24:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712823856; cv=pass; d=google.com; s=arc-20160816; b=NKS43nwzQ8oaGc+3O2Q8d0w+b8IGB6FwSAF2SzyVyh3Nt0oLl5Sibcpb7C5oBGaErb JVsPKAqExVdL7Kcqy7IYGdrKr6tKhz8ewyzXvGDYvCtDQ0yYze8rsED+U7CDd/43G+Ln IBqZx9Ry01zmW377jRXVRhW+/sn9M6VCerVbnqLEr2n8pKUQ/wzbaUfp1eDwrzR+Lotx o0li6an2A/IB13+CRXkWbIVsNeGOqnEQ822FSVKo7heP39hWuzObrKQ9pmAeldOUASU3 De5OsICEdELo/fvLa34c8z+C89Ra2rzMFNlRkiOY4QPjHIoybYPK1N7dVZshdsYWO3pI BtEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=amZXG7bYEtAZdkSyANw9mNU+LapKfmyHXP2YCuJlaM0=; fh=jhRrYQLgWLM4B5QwB9JZbmPhY4pZ0AXyVmVwIln+95w=; b=eMR8SjsKyEj/hYbVRXR9zX46LwsSRfSkGFW4YMK7uEyZ6Zo/CqMpa2keUBFXuiHYbG fY+W+xxFz3AwxYHFq/rfLwizzk1zl2sQLcbMVmu5P7ti3iGCuDuoL0q02Hi26oEUUEZU HAH859xTmEt0LVMKKVf3QU7GzERZPcwoV4EPqhOGgRwQl2/92ToahVPLLVgbYil4L5tM 9kySI9nhymuCz7nC86PBMaGTwC06p3wApb5SJ08dBNvZGmyMt14WqFh9VeJZ6yRzZbuu 6xt/h6i9fMl8WM3MmoSg/D4xvaKfXCs8VSRTURQ3ab39dgBq06LXIqYESPefjPSHNEIm JVrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bElwz7Tm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m2-20020a170902f64200b001e3e1e80bd6si870218plg.601.2024.04.11.01.24.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 01:24:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bElwz7Tm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 90FA7B25881 for ; Thu, 11 Apr 2024 08:00:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22BC113F455; Thu, 11 Apr 2024 08:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bElwz7Tm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3898C13E8AD; Thu, 11 Apr 2024 08:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712822416; cv=none; b=SaES5X7RfGM412Vg7q7Mq2M4CUEu2Oeapn5lHRoEB0GFvRoF6RyA0KN32esKNv1p9nq2pzLZKSBNXOBwLs9Mt5JBwc/Pz03nHfSgtP/FPrAd3La2nHNOjqsDs4nGhxLwcCOYXlh+tdHxD0eQDQwpXkpV3/P55ocn9ReJRd53yEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712822416; c=relaxed/simple; bh=waEt8fKtfTAHPrtNAXCwzW9ODp2LwQ41zoYR/MtoFg0=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=ZrWTAASFhYgRoFCgRKQPG7u1/b0RVDPxTvDUaP8rL4pLTnkIRyrZpm0bDp9Ibc6FmY69QmbnR4IiSziqIXw3p2IhFplEuRBC3FgQYuwzXE/o0CagHgj5rksdl7PP0NCtpvfAc/6InMmBIODYINwhxHcrwvq9zq9/qwavN+00Q58= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bElwz7Tm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97C3FC433C7; Thu, 11 Apr 2024 08:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712822415; bh=waEt8fKtfTAHPrtNAXCwzW9ODp2LwQ41zoYR/MtoFg0=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=bElwz7TmiuY0Qzn2A4CYKyVm6jRxsPz9fLs3tgdB5vbkfrFqq/CvpYY+HiqvhvcWw lqtS7Dsd7UV0xkKAnYzrbfp+De5XTarO7RjpWMJXiZzzs4K0klARaTsx7eta1gBAOb WeCh5Pt0hpJbL/YwkNUT3ZG70LkqMnsyzFK/z4XK2FQNILTpQQf/RqjV6GAN9nEK39 zViN+RjWkiJ4qdKDYzT6kEAcwCIq30WgrhGNr1z4TmyfaFL8gSPdSaQl5igSG2cN/W HXq6s6AOx3f1Qfg7vP62R6amtAeVDLyJjLMqgR4JhYR9sf+JJwQJT98faBihwRB+MK ntBtZB0ML9u5w== Message-ID: <3838e4684f98e1ce3818bfb6983844bc.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240402-pxa1908-lkml-v9-5-25a003e83c6f@skole.hr> References: <20240402-pxa1908-lkml-v9-0-25a003e83c6f@skole.hr> <20240402-pxa1908-lkml-v9-5-25a003e83c6f@skole.hr> Subject: Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver From: Stephen Boyd Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Karel Balej , David Wronek , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org To: Catalin Marinas , Conor Dooley , Duje =?utf-8?q?Mihanovi=C4=87?= , Guilherme G. Piccoli , Haojian Zhuang , Kees Cook , Krzysztof Kozlowski , Linus Walleij , Lubomir Rintel , Michael Turquette , Rob Herring , Rob Herring , Tony Lindgren , Tony Luck , Will Deacon Date: Thu, 11 Apr 2024 01:00:13 -0700 User-Agent: alot/0.10 Quoting Duje Mihanovi=C4=87 (2024-04-02 13:55:41) > diff --git a/drivers/clk/mmp/clk-of-pxa1908.c b/drivers/clk/mmp/clk-of-px= a1908.c > new file mode 100644 > index 000000000000..6f1f6e25a718 > --- /dev/null > +++ b/drivers/clk/mmp/clk-of-pxa1908.c > @@ -0,0 +1,328 @@ > +// SPDX-License-Identifier: GPL-2.0-only [...] > +static void __init pxa1908_apbc_clk_init(struct device_node *np) > +{ > + struct pxa1908_clk_unit *pxa_unit; > + > + pxa_unit =3D kzalloc(sizeof(*pxa_unit), GFP_KERNEL); > + if (!pxa_unit) > + return; > + > + pxa_unit->apbc_base =3D of_iomap(np, 0); > + if (!pxa_unit->apbc_base) { > + pr_err("failed to map apbc registers\n"); > + kfree(pxa_unit); > + return; > + } > + > + mmp_clk_init(np, &pxa_unit->unit, APBC_NR_CLKS); > + > + pxa1908_apb_periph_clk_init(pxa_unit); > +} > +CLK_OF_DECLARE(pxa1908_apbc, "marvell,pxa1908-apbc", pxa1908_apbc_clk_in= it); Is there a reason this file can't be a platform driver?