Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3869213rwd; Sat, 3 Jun 2023 13:55:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5f8BIM2+Gq58p54DQLgZ108hWN5Opf5fQRw8zWPyIK17bhZd1ipgzQzLBuzNegx4ruzJ5E X-Received: by 2002:a17:90a:ce07:b0:253:3eb5:3ade with SMTP id f7-20020a17090ace0700b002533eb53ademr3527861pju.8.1685825750326; Sat, 03 Jun 2023 13:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685825750; cv=none; d=google.com; s=arc-20160816; b=QNXraB0i5ioz3HUDDHb8SquVkIo/HXU33e8lN23GTPAeahrZVbNGvujqDHK8UfbtSd CsYbRyYYoGzhBYjaJMNW61SZbggB4IH/OBT+mC2h25AQapfMkcbB1jw2V7aFsaEOmPnR zmwqs9ZuzotTsO5J5ZPz7YwUxP58vEGuv1b5weuSomPJi66TTNcnNkcf/mwvW6M9LHZV ev7li7tdwPcZWYCt41WH5+mL8+Lp5ABTm1R7d/21vGDpoMYq4/0J9q7cFxhpH+8AMPWT V90Fponf79MjSuHenIKzICJ8UenvPL1KFG1BJ83QKq97SpdN9RAp0C5Nv629h+xHF/pG G/Kg== 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=QIEBE3biLKU3Hwy6iTMLhXDsZ1citfqTy9dR/yPpW1c=; b=bNlsIVZ7ubkOu2T0GF5y/pwS4W7bq4S9hfjLNDIQQ2Mxo38W4Bs0KXVzv6aHyDHCz/ lSRbL6bfWGXO41UzDMmGX9FOveuu103VuKqZbwmEYbpGMIog4nX80KUeSfQjtAcsIOXz vnrVJ2jWJKN5ljOFy/OHIewTohU1tqoMvWsAqhBojAj5eRUWn5U8/35AZNwilJ+B0ZQf A948dMhNXi7wz8YOFc5PuAUoXZEMZVhZOk5KnutsaZYOOWdZk4sqMWZ9y+WYDVS7hP2C ut5JiisD9yXr3jxkD5SA+YoLngBMWXwoo3bFszegvgAvrjyyh2y9fgggpuKHpe8BagAs QKhw== 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 k62-20020a636f41000000b0053feb93b539si3190287pgc.330.2023.06.03.13.55.37; Sat, 03 Jun 2023 13:55:50 -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 S232056AbjFCUY7 (ORCPT + 99 others); Sat, 3 Jun 2023 16:24:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231267AbjFCUY6 (ORCPT ); Sat, 3 Jun 2023 16:24:58 -0400 Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D832E132 for ; Sat, 3 Jun 2023 13:24:56 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id b367a8af-024c-11ee-abf4-005056bdd08f; Sat, 03 Jun 2023 23:24:54 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Sat, 3 Jun 2023 23:24:54 +0300 To: Nikita Shubin Cc: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Sebastian Reichel , Michael Peters , Kris Bahnsen , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v1 14/43] power: reset: Add a driver for the ep93xx reset Message-ID: References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601053546.9574-15-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601053546.9574-15-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,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:34:05AM +0300, Nikita Shubin kirjoitti: > Implement the reset behaviour of the various EP93xx SoCS in drivers/power/reset. > > It used to be located in arch/arm/mach-ep93xx. ... > +config POWER_RESET_EP93XX > + bool "Cirrus EP93XX reset driver" if COMPILE_TEST Can you elaborate this construction, please? > + depends on MFD_SYSCON > + default ARCH_EP93XX > + help > + This driver provides restart support for Cirrus EP93XX SoC. > + > + Say Y here if you have a Cirrus EP93XX SoC and you wish > + to have restart support. ... Missing bits.h > +#include > +#include > +#include Wrong header. One is mod_devicetable.h, dunno what other implicit dependencies you have in mind when added this. > +#include > +#include > +#include ... > + struct notifier_block *res_han; > + struct device *dev = &pdev->dev; Longer lines first? > + int err; > + > + res_han = devm_kzalloc(&pdev->dev, sizeof(*res_han), GFP_KERNEL); You have dev, use it. > + if (!res_han) > + return -ENOMEM; ... > + err = register_restart_handler(res_han); > + if (err) > + dev_err(dev, "can't register restart notifier (err=%d)\n", err); return dev_err_probe(...); > + return err; > +} -- With Best Regards, Andy Shevchenko