Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1358279rdb; Mon, 19 Feb 2024 12:43:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXKQvilBNIL5hYj5N7T4sO0x8EU0lOrW+4GxBzwQH5p+Z9nKhIU9SnI50jdnf1DdV1wWunVRu/B7UPHyXYK0nDviTfxNPWl5EXRA4bJUQ== X-Google-Smtp-Source: AGHT+IFVYlVxYx/OcEB5W6/WsSRBpGqD3nFt6HVTZ2MWCZsC0P9TnZpouCG9GuLSsUcC1Eupsz41 X-Received: by 2002:a05:6a00:139d:b0:6e0:f752:b442 with SMTP id t29-20020a056a00139d00b006e0f752b442mr16340606pfg.7.1708375416471; Mon, 19 Feb 2024 12:43:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708375415; cv=pass; d=google.com; s=arc-20160816; b=R933fh5wDtZf9JQwEyKFzQUSuX0fUahhkkaNzlFOb4H1YP88febKy/0VJoKAnnzzzs 7niV0H5KlLLj6wRCUBHAMty1oj1f61IB/JGy/XzY2zPz3mF9cy1NfZ+23Xx55YrtZud4 8LDwrHEkwwW5sHpNFky7sdbptyXE1NNQaSGlFIZ8hX+PAmH0p2Cba+dO7wB1avayxekr GOEMX1kLdeaKk7SoJo8ecZzNsTawJkeu/WwrW0QsEw6O7CneQKntfWtxlmDzXByb0u4a bEYhxF0TlFnWQjUJj3BVKkk/FGxK87164gnDA/kn8RAlfQFXRC/pwlbvaRqBi1J11RM+ 4yZg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=daii2vCQdv00wY9FjSBPTiVONH9pzRxUrLR+kFtKtA4=; fh=6Ya8Ge1mev4BXSClQrnVDVfCfRuu4sZiopHruscisKg=; b=A5tml7zUU+lRawG40MsOHJiVWtEqMHNFC8V80zhkBVu8+yBxGPUiYv/iduovpwhB9g 4OQ70YckMbI4F/W0MYwacA86rPxwCcqmPREf8JCQR13ViKiAZQl2C0SIggrSiKjYCGAW 62pNqGJbLHF74+lJu0wC5ZlwP0HsgB7JgDQfu57VPyWLOrXjKuVp9fFkCDgMSlGN5wnO WMWhlc3x+Nia/Ri8LP+M8SeXKzikGRcHfUstMQobe4KqK6sTGuWHckIG+XZg9GYHc19/ SnTU6wYeQ0WP4EEzqMJNp4sS4kiFQGtmgNzmG0ilgJm9RS1DH/ITy3kIaTEjnxpjXqnd YXEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y2xgjGJc; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-71983-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s2-20020a056a00194200b006e11fb673cdsi4954485pfk.397.2024.02.19.12.43.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:43:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71983-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y2xgjGJc; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-71983-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 9B569287BFA for ; Mon, 19 Feb 2024 20:43:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EEB7535D5; Mon, 19 Feb 2024 20:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y2xgjGJc" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 D064A535C6 for ; Mon, 19 Feb 2024 20:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708375369; cv=none; b=atvTGUqqti1jRVOuQWfGwDmXSZw1rC0lY+3yBUA8k4k59XNqIjiYHTACPT3ELgBmxx0iFK4vtbfeYaQPGWO9nM5CMKWJ76URfkcqyF1zaTg/9Ps0BIvmFWdw1wYnUC8J1dP6yt8rZNkuTJwQ1+mXixKyJgKb6zMWXQS2kxCadrs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708375369; c=relaxed/simple; bh=0qlxg4Wl4LV4zmhyFrXH9tW2Y2omtNhqxGLvqo65VnU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L7GyKMW2xVkB2qHhBuAeEIYdH2EnVXvyxuBA4gBvpEEIRUkXMUnMfniIzmLOM+/3jEcaXFr4Bkn53p4Pmgo3EU2/or/oOV6u+tMrrKwkXpbcf86o6pnc6TOxChM4dABisTz/MohJdgf3Y2lt3hnD7TnTblMGp+HRHe3vm6UGkuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=y2xgjGJc; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-33d4c0b198aso739124f8f.2 for ; Mon, 19 Feb 2024 12:42:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708375366; x=1708980166; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=daii2vCQdv00wY9FjSBPTiVONH9pzRxUrLR+kFtKtA4=; b=y2xgjGJcOlH7IL7GMCQGPV2NXmJd10ZYfSYkU2FBiReg7CJKEuIKHvEIY4hgOuOGQW 0mb8MFcCNJ4q/s7kzLA3yhxz8G9jRQQYid7twKvpSKnWRcCFLEDcy1ae6RwsZ07RgYIs j2ZizWZow1J7oWgKgFde/9WPsxlqdMLWgiaHS9qF/OHREs4913wZd8BH0MiHGaM2ZlFT JwAXVDACSc03gH38MQv60dqRd8P3dVJwATdVXMUm7nt5q25GM1xd9Eg1FMW0C8R366az Fkd1Ni25TlfHCLJMteX+Ki6MYmzopztyqJtEibKCa9FGH3nBPUSPBnzmOI8114hkUykU AEGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708375366; x=1708980166; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=daii2vCQdv00wY9FjSBPTiVONH9pzRxUrLR+kFtKtA4=; b=w+dojxXvDVEcw+07+yzYnBhNLzpr+SdwOM6EehLU1Xe8BdKtOKKqQaEyFQfDc8muHg 91WlSV92IBXVaW8klfuykQQRsm/q/uKC1/VeD1B1QvAZQ6wt8vJbjKNVeEFpxbYJRkn7 Kj+4ch4Y4CaPOKPVlEsXUKKaYg8DxloaSrWbDhuUUO2vSvvjaFQYf3dI1fBVwVwyPMTd bWXZZeV9dvi663CWxRGIR9EZru/2BeqqDF2VZFqadSVM0zlx4AsLw+JuhA53iVzvxzOp TwXLTCUDRdkrHpRMr4ODgwcdz3XWbIFNZH/TbACjl8xrP0i+aEHyXhKC0Up3CPn5zfpK nV9g== X-Forwarded-Encrypted: i=1; AJvYcCW1wMIc9v2So35DAJiNVTSja/R7lC/tBHaUBD0Rq0bdY7pvs0XJ0/yy/qFpOKrsclTfm93mdcBbQxZdMwK68RoA/0qrgO6Oi82McYo/ X-Gm-Message-State: AOJu0YyMUIeMDejIo+xkQiW5vC6pAqOY3a5rp/v7hgl8cersKE78U4Z9 z7nZiP40wp6AkbF1Mh0B8XOQ5NvhdidDZhedYxKlWmLBoqCgxl+c39u5nQu2qL4= X-Received: by 2002:a5d:624b:0:b0:33b:381d:a71e with SMTP id m11-20020a5d624b000000b0033b381da71emr8750226wrv.17.1708375366132; Mon, 19 Feb 2024 12:42:46 -0800 (PST) Received: from gpeter-l.lan (host-92-18-74-232.as13285.net. [92.18.74.232]) by smtp.gmail.com with ESMTPSA id bx15-20020a5d5b0f000000b0033d202abf01sm10561000wrb.28.2024.02.19.12.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:42:45 -0800 (PST) From: Peter Griffin To: arnd@arndb.de, krzysztof.kozlowski@linaro.org, linux@roeck-us.net, wim@linux-watchdog.org, alim.akhtar@samsung.com, jaewon02.kim@samsung.com, semen.protsenko@linaro.org Cc: alexey.klimov@linaro.org, kernel-team@android.com, peter.griffin@linaro.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, linux-fsd@tesla.com, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v5 2/2] watchdog: s3c2410_wdt: use exynos_get_pmu_regmap_by_phandle() for PMU regs Date: Mon, 19 Feb 2024 20:42:38 +0000 Message-ID: <20240219204238.356942-3-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog In-Reply-To: <20240219204238.356942-1-peter.griffin@linaro.org> References: <20240219204238.356942-1-peter.griffin@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Obtain the PMU regmap using the new API added to exynos-pmu driver rather than syscon_regmap_lookup_by_phandle(). As this driver no longer depends on mfd syscon remove that header and Kconfig dependency. Tested-by: Alexey Klimov Tested-by: Sam Protsenko Acked-by: Guenter Roeck Reviewed-by: Sam Protsenko Signed-off-by: Peter Griffin --- drivers/watchdog/Kconfig | 1 - drivers/watchdog/s3c2410_wdt.c | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 7d22051b15a2..d78fe7137799 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -512,7 +512,6 @@ config S3C2410_WATCHDOG tristate "S3C6410/S5Pv210/Exynos Watchdog" depends on ARCH_S3C64XX || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST select WATCHDOG_CORE - select MFD_SYSCON if ARCH_EXYNOS help Watchdog timer block in the Samsung S3C64xx, S5Pv210 and Exynos SoCs. This will reboot the system when the timer expires with diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 349d30462c8c..686cf544d0ae 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c @@ -24,9 +24,9 @@ #include #include #include -#include #include #include +#include #define S3C2410_WTCON 0x00 #define S3C2410_WTDAT 0x04 @@ -699,11 +699,11 @@ static int s3c2410wdt_probe(struct platform_device *pdev) return ret; if (wdt->drv_data->quirks & QUIRKS_HAVE_PMUREG) { - wdt->pmureg = syscon_regmap_lookup_by_phandle(dev->of_node, - "samsung,syscon-phandle"); + wdt->pmureg = exynos_get_pmu_regmap_by_phandle(dev->of_node, + "samsung,syscon-phandle"); if (IS_ERR(wdt->pmureg)) return dev_err_probe(dev, PTR_ERR(wdt->pmureg), - "syscon regmap lookup failed.\n"); + "PMU regmap lookup failed.\n"); } wdt_irq = platform_get_irq(pdev, 0); -- 2.44.0.rc0.258.g7320e95886-goog