From patchwork Thu Feb 8 10:58:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 20154 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp806269dyd; Fri, 9 Feb 2024 04:14:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHeDlCw9agA+s64RdRKwyv0HOtSwnotkpSSNDnxCCxG8NNVnopAhAbgVc9+SOB9jVKzwh21 X-Received: by 2002:a17:903:1103:b0:1d9:66df:f7b3 with SMTP id n3-20020a170903110300b001d966dff7b3mr1444577plh.45.1707480877499; Fri, 09 Feb 2024 04:14:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707480877; cv=pass; d=google.com; s=arc-20160816; b=QoG08nCRExv11FaF8p8X2Lsg3AuUXOez4nLo7RWMMt42PzEft+0fxNTJRzhexsoJZx Jd3zsTrE+h0VRZn8TLrilcqGJpPCzLfX1laMSg78enXiMmUPBELZ0OVUYd0zRYv9n70J dX/2Ll2DbBY/lDldwKo67ithXQGSlZwUddfLNvhEI60M2UL0BmYGaTNW+kv27Tyy4SZw xu6T7HkFRORaDgOXsinqGKz1RpfJZYs6OdEao7kmEtfpdl/o5jDJChcCVAA84L00KIPU akJ6+zsZKMvyPrzZAn/QN5S365Sp6mqWPuzf9I16SiGCXyWYoWX0kpVmeoec3w2qPdRn 13Tg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=UMiRLJAT90vqgAxXHmFa9vUy566zx4/QASUV1IL63DI=; fh=8YHNe0J5rLSkj1+spVSqpaQtTFMymtEjo6a4dxy0rWo=; b=G01jh/pURRz90OUS+6W3OVjWvfSRtk/63GCtwvFJX0fGWAJvkmU8GQT+dB5bVV6AO5 0J/OdmOu/TqyhFXem9DL8rCe4KfImuFLdp3cactKsm217MXMAakw46RY3pm5BIDnQOeu KmVm19CiAtN72CJGlwONzcYbnlsJWX86Xy6KyM4c1h0njP06uzDYx1/N5gzsLNp8dZtx ogChwnthPMQkH6aQODtS6zZ0ZUTjrvj7LWOkoiEUiu8Lh5gqvWL1iMI4yS/pCv+i2jtb W/N1lUBKdxA1Zhg+BpZSeAoRgNPOQ4XK15ZktRd4voCZsnNq2qbllut1GWm7fGZYsru2 ZbIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Iw7HTzt+; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-57930-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57930-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVjEYXZiprzKigWKiLH/tLtab1NdjVugP2pllZZ3BJCzmmGtLOdmoEajos6T0xoGMsc/mn32KifRQ5UdGIWmUKn4zSCbQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h17-20020a170902f55100b001d8f0174884si1565803plf.180.2024.02.09.04.14.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 04:14:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57930-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Iw7HTzt+; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-57930-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57930-ouuuleilei=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B369F287B24 for ; Thu, 8 Feb 2024 11:04:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5670376407; Thu, 8 Feb 2024 10:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="Iw7HTzt+" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5EB8C6E2DB for ; Thu, 8 Feb 2024 10:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707389906; cv=none; b=FV/zbYPFM83z4J4vE3DYRscr6H1AmEo1DyXXbTVhZK8KWI1lYYvA1nin900UCcnZrj5/QRXOAHp78bgmNHi3VvbWl3ODYht+qmdz0+JA7XXhtCg6B5fZy+rex4aOT7PX58kDkjljta2HwAK2YzPhYroHau7b5kFz+6m7WLYf8J8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707389906; c=relaxed/simple; bh=uR0oljfQoh6iB/WKm0lAA5t+I2JdXaZjt7gj/Jb+GGE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=bqu7E+Xf3xtQ8YjSRQAOEVPQObQQV7nhJEwzWe/iPQloqAyyzOsXsiDE+30Xwg7rJ/KyHO6IvtxvBwqIms8U1OmFyDjekwkRItvErhf7ZAWvakGy3pBrJDck3eh3rEgx03PZ3hFABiyykMp79Agvjht6p9hRrgSsPYLFCPb1nxs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=Iw7HTzt+; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-511689cc22aso2596205e87.0 for ; Thu, 08 Feb 2024 02:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707389901; x=1707994701; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UMiRLJAT90vqgAxXHmFa9vUy566zx4/QASUV1IL63DI=; b=Iw7HTzt+qtQbZVltZFo8Cwuur1cnPJ6n5rnrycbnzF4wm0ATNSwUmYOqpoSILtN5H7 7A24UgMHsN5LI/TTMUM3mlkS1Z9pDjnhwnu1NVOY2tKXdtVg7uvwnv74XyHGvuXE4WO7 KEIWvIshfM+RK1T5d30+a0oVdW0YDceGR64nT0tBcIGk6vheRggR5UIdoUMybFTDFpp3 103tta1+YAklfoMLgn+p51nM7QBGIFl3WmnbtEwweYHb6N1MfBkY5/1w+w+jmN4B/TF8 KTefdF7y0RmMLz8rs4swmYRm3fbORfoqXVQg9Hj/iD7CRzbFJNNmjS5Ml7DBGdzGEONQ F01g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707389901; x=1707994701; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UMiRLJAT90vqgAxXHmFa9vUy566zx4/QASUV1IL63DI=; b=gSTiVJFfgVFXfoGWbsvzZiZh8rvqWQ8qsPym2ZmRatekcNOUUQ51NV2xd1eJUxFUt5 yA9DvSvWONfk5GHoh9yBImJsNgl4j1ViVr6voITyT61mCjLFDdpysXzviGi7TXA8ahp3 KhjKNr1V8pHJugnxFJ8nKAIIahKgN01Qrfbb5/GDsPk+vkLOvOG8GmzIEcQOz61K/zS/ YgFSuHLs/nz2+j8B0JJC2gVTI1Op+NmbhzwTBLRSAXW7YLYvyyP7rQLr1PBW2ho2ahF5 vueF8SrbtUUg8mueYunzXoAK+P9tnJCGF0Pe8tejYfav5KjFz2zqrpKrK2WxcOXl/1mH tsGg== X-Gm-Message-State: AOJu0YyoWRseYoF1ynbY27xJKWLDkiYluY31srQ9xJ8g5zg55h3XfAjD GPDKuSREy+e7Io7hG2MhgYldVlUR2DcfDR/AqJnn2mUqu0ah6b0BCGtdV/KPOt8= X-Received: by 2002:ac2:5e9b:0:b0:511:484a:dacf with SMTP id b27-20020ac25e9b000000b00511484adacfmr5185800lfq.30.1707389901282; Thu, 08 Feb 2024 02:58:21 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXxa3EjxzfRHUFyD5fIO3DNnW+M6vp5ApMtQ9Vw7UgjlljgfptNSF5+qrzDJQWcaG4QGfIr6kGeHO/mD7ZPAIwRcjEtHo8YvGo/GWWPh3eWGw2tyxam6Yy8t0KJ8pYQ36kuw9tfe/s4PXFvh/yGVsYuZTbU+lL10UPDioL3qFMN70iDVOr+hp626KqeyxovmWGyLCg1CBbtQGz+Y6kBUDndrV2HluDPTlSkOvofL2pxGYG6igjMB7QZqEieNLnuM7EnXV7PzJVFV5ijxeyAkHEeGTiTxqgrht9OtgVVXPSJK2ozpQoW2WaYFuvZtWnqTZ6nmyO5WbyA7lL5AV2uKuRfn/qS/30pC0UIQHNW8XrdsmUJ8knheFVfQKmJfmhhDEeqz6LSYB/oGp9ndYUxjW2nKEcVcJObiZ3LqwQcSNSDOGnOSkf5J+XtZavjvgE7t559nY7SS5qy8PGkw9M/IXw5+EoDv1ZkvwJlCkos7gQeP4BMWdrcaF5LHe7CaCDGshJRArG49+IygA== Received: from claudiu-X670E-Pro-RS.. ([82.78.167.45]) by smtp.gmail.com with ESMTPSA id a6-20020adffac6000000b0033b4a52bfbfsm3344153wrs.57.2024.02.08.02.58.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 02:58:20 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: wim@linux-watchdog.org, linux@roeck-us.net, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, geert+renesas@glider.be, magnus.damm@gmail.com, biju.das.jz@bp.renesas.com Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH v6 0/9] watchdog: rzg2l_wdt: Add support for RZ/G3S Date: Thu, 8 Feb 2024 12:58:08 +0200 Message-Id: <20240208105817.2619703-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790423468420427110 X-GMAIL-MSGID: 1790423468420427110 From: Claudiu Beznea Hi, Series adds watchdog support for Renesas RZ/G3S (R9A08G045) SoC. Patches do the following: - patch 1/9 makes the driver depend on ARCH_RZG2L || ARCH_R9A09G011 - patch 2/9 makes the driver depend on PM - patches 3-7/9 adds fixes and cleanups for the watchdog driver - patch 8/9 adds suspend to RAM to the watchdog driver (to be used by RZ/G3S) - patch 9/9 documents the RZ/G3S support Thank you, Claudiu Beznea Changes in v6: - update patch 2/9 description - fixed the dependency on COMPILE_TEST previously introduced in patch 2/9 Changes in v5: - updated description of patch 2/9 - simplify the code in patch 2/9 by using on a new line: depends on PM || COMPILE_TEST Changes in v4: - added patch "watchdog: rzg2l_wdt: Restrict the driver to ARCH_RZG2L and ARCH_R9A09G011" - collected tags Changes in v3: - make driver depend on PM not select it - drop patches already accepted (patches 1, 10, 11 from v2) - re-arranged the tags in patch 8/8 as they were messed by b4 am/shazam Changes in v2: - added patch "watchdog: rzg2l_wdt: Select PM" - propagate the return status of rzg2l_wdt_start() to it's callers in patch "watchdog: rzg2l_wdt: Use pm_runtime_resume_and_get()" - propagate the return status of rzg2l_wdt_stop() to it's callers in patch "watchdog: rzg2l_wdt: Check return status of pm_runtime_put()" - removed pm_ptr() from patch "watchdog: rzg2l_wdt: Add suspend/resume support" - s/G2UL/G2L in patch "dt-bindings: watchdog: renesas,wdt: Document RZ/G3S support" - collected tags Claudiu Beznea (9): watchdog: rzg2l_wdt: Restrict the driver to ARCH_RZG2L and ARCH_R9A09G011 watchdog: rzg2l_wdt: Make the driver depend on PM watchdog: rzg2l_wdt: Use pm_runtime_resume_and_get() watchdog: rzg2l_wdt: Check return status of pm_runtime_put() watchdog: rzg2l_wdt: Remove reset de-assert on probe/stop watchdog: rzg2l_wdt: Remove comparison with zero watchdog: rzg2l_wdt: Rely on the reset driver for doing proper reset watchdog: rzg2l_wdt: Add suspend/resume support dt-bindings: watchdog: renesas,wdt: Document RZ/G3S support .../bindings/watchdog/renesas,wdt.yaml | 1 + drivers/watchdog/Kconfig | 3 +- drivers/watchdog/rzg2l_wdt.c | 111 ++++++++++-------- 3 files changed, 64 insertions(+), 51 deletions(-)