Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3788669rwd; Sat, 3 Jun 2023 11:58:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5s0++8PPivCHHuoDAWSK/U3kZGvo9zNrP6NLR1mS9h2L09Q9cRWHjKTgz28nqP/RtCyJK+ X-Received: by 2002:a17:902:c146:b0:1ae:6947:e63b with SMTP id 6-20020a170902c14600b001ae6947e63bmr2750634plj.16.1685818734357; Sat, 03 Jun 2023 11:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685818734; cv=none; d=google.com; s=arc-20160816; b=ONY4d6pFI0AFyiwiJWRPs7TwWcZJr4hLo3k/GQIepOMRvajq1QAA50v3WlhOWTh40s unnk7cxB/syhOSl9EjxPtj7GaNXgLWjBbf9KbRL/cRzW60VmJXsoP0WpImrqulKxclYc mqqTxgJuMKkJCogkIny9nknzQaZ+yZ3JgctPSUgI0EjJ4qG/BTUo+h1azIoi7vIq/6W4 +DZY0HCWk+M/MbgUdi5ye9X/8pVw3uIJaL6wKR0HFmIUR5vbaWkMYayv1uuDos3SABuZ qdovXMtyyLwNdarxQ/gCr54Ahe2KI2UYTei67PK+EFyz7RrTDu+ChM54PizWvJvl0hC/ ketQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=CZAM9qYfAJCP+32eYCe5rFUkYhMbZiC/rwN2F4ExLGk=; b=ytR+YfTPSQCWC0zXsiUmzBYiJJ52uTY180AVmkn4DZzjR69MD/s+hpFiIpRJ7Yio8T SFOBOeG/5nm58x4ba6va8UX+r1ii6HtrhzmAnRtCIhrIownk4jqL4wrk/5duuXS+2HDF EszRtGqjX6vriaf3Cjnp2TJ2ZFoXT88LFMohKhOrR67cvjfyK21XWMnFq6zYKBeXb4Nf EZlSZd8zgMGjW8ocybSPc85/LyfC+c1epcTLSsK6iofAZqhlEemqJnQdxsLbCbnk9rZz tThJtkwMhmEqF717gQkB0Xw+R4OPHxWE9MWhPTg1YNZ3Cr51NXnOoLDkQy8k7c32DIUx lxKg== 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik29-20020a170902ab1d00b001a6b6085041si2859049plb.512.2023.06.03.11.58.42; Sat, 03 Jun 2023 11:58:54 -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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbjFCSfV (ORCPT + 99 others); Sat, 3 Jun 2023 14:35:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjFCSfU (ORCPT ); Sat, 3 Jun 2023 14:35:20 -0400 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69420B1 for ; Sat, 3 Jun 2023 11:35:19 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 60973bd3-023d-11ee-b3cf-005056bd6ce9; Sat, 03 Jun 2023 21:35:17 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Sat, 3 Jun 2023 21:35:13 +0300 To: Nikita Shubin Cc: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Joel Stanley , Conor Dooley , Heiko Stuebner , Yinbo Zhu , Hitomi Hasegawa , Jonathan =?iso-8859-1?Q?Neusch=E4fer?= , Walker Chen , Paul Menzel , Emil Renner Berthing , Alexander Gordeev , Vasily Gorbik , Michael Peters , Kris Bahnsen , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 03/43] soc: Add SoC driver for Cirrus ep93xx Message-ID: References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601053546.9574-4-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601053546.9574-4-nikita.shubin@maquefel.me> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Jun 01, 2023 at 08:33:54AM +0300, Nikita Shubin kirjoitti: > This adds an SoC driver for the ep93xx. Currently there > is only one thing not fitting into any other framework, > and that is the swlock setting. > > It's used for clock settings and restart. ... > source "drivers/soc/ux500/Kconfig" > source "drivers/soc/versatile/Kconfig" > source "drivers/soc/xilinx/Kconfig" > +source "drivers/soc/cirrus/Kconfig" Why not ordered? ... > obj-$(CONFIG_ARCH_U8500) += ux500/ > obj-$(CONFIG_PLAT_VERSATILE) += versatile/ > obj-y += xilinx/ > +obj-$(CONFIG_EP93XX_SOC) += cirrus/ Ditto. ... > +/* > + * Soc driver for Cirrus EP93xx chips. SoC > + * Copyright (C) 2022 Nikita Shubin > + * > + * Based on a rewrite of arch/arm/mach-ep93xx/core.c > + * Copyright (C) 2006 Lennert Buytenhek > + * Copyright (C) 2007 Herbert Valerio Riedel > + * > + * Thanks go to Michael Burian and Ray Lehtiniemi for their key > + * role in the ep93xx linux community Linux community. > + */ ... > +#include > +#include > +#include > +#include > +#include > +#include Can this be ordered? ... > +#define EP93XX_SYSCON_SYSCFG_REV_MASK (0xf0000000) GENMASK() ? (will need bits.h) > +#define EP93XX_SYSCON_SYSCFG_REV_SHIFT (28) Here and above, do you need parentheses? ... > +static struct regmap *map; Global?! ... > +EXPORT_SYMBOL_GPL(ep93xx_syscon_swlocked_write); Can it (and other exported symbols) be exported with a namespace? ... > +/** > + * ep93xx_chip_revision() - returns the EP93xx chip revision > + * Redundant (?) blank line, but... kernel doc validation will complain here a lot. Either drop kernel doc style or fill it correctly. > + */ ... > +static int __init ep93xx_soc_init(void) > +{ > + /* Multiplatform guard, only proceed on ep93xx */ > + if (!of_machine_is_compatible("cirrus,ep9301")) > + return 0; > + > + map = syscon_regmap_lookup_by_compatible("cirrus,ep9301-syscon"); > + if (IS_ERR(map)) > + return PTR_ERR(map); > + > + pr_info("EP93xx SoC revision %s\n", ep93xx_get_soc_rev()); > + > + return 0; > +} > + Unneeded blank line. > +core_initcall(ep93xx_soc_init); > + Trailing blank line. -- With Best Regards, Andy Shevchenko