Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1647272rdb; Tue, 20 Feb 2024 02:43:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV35O7W/28RjuHeelZ5O8TsrVdA5TxbLMBWwrjND6XwWfy67YudRqVwEkkAE9l5RJ/mT6KQAGpaalb6QXjZ6pcXCxO4O/5p/FsOFsgrGA== X-Google-Smtp-Source: AGHT+IHbFrTx5KkmC8f4QQfHSn4iZHjatp50A+xyK0X0FY8OCCI5VopJyTaZylkpa4eliNkJzL1v X-Received: by 2002:a50:ec83:0:b0:564:1de7:5ee9 with SMTP id e3-20020a50ec83000000b005641de75ee9mr6034276edr.26.1708425829064; Tue, 20 Feb 2024 02:43:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708425829; cv=pass; d=google.com; s=arc-20160816; b=EleLEfePxyIc4py9xsh7CckYlqaRPmN5ZVTrU4WeSOx5e2x4ujale10mEXwV1QsAGn DZAQ3WySwLQMHnzeltutDUcqu+R8BsnqhRN+YcTalFPocoDwSwpvFUoHrVbZiLpOjSCB WHHuHuMxwwWIfIgfADG3OMyDy5ROZPjdIsjZXrcHaK6nUPQnZCKZJV3I/Fp06c4k2SzX sNkOIUYb+lXQgRWfQiolBqM02NZTaDEM7FuI8kjRNhCF8LEHqY2iEJbtd51bSKKBb5sk puUY0+T+mfCpj1Dov+iiA9uIPsFhat+RY6tN+yI0q4fXejrcbHSo4M3uN0lZ77u5QfgZ tBjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=7RLmEvEb9uthgWOA8C/L1GOxTd9uDNdhyoVcD48vMYU=; fh=LPX/fVrksH6lnRQzVi9y23pg9xRm7YmJJd3RF+9KWQg=; b=HnH2li1OvH2HnBgXeDDFNG/X6BVGABTgQCMYPY603OzWISYmGgJjLHmCUDEtjGMaZB C4QAj55Wy3e03Kei8EoGx1NXP+tZr0JFL6pBiXzgRauHt2uOLQH4KtBZAHTLiT0sYD3v vQxuid95s7x90jWfOhZkhtE+ZXKWUqpUP/LEDw1UjvNq4zdS/+cIdKO9OUIooPhgO+Bi Ca7XNzNdEhhF4pqvSBSJmX0I8McLQMlPselEyTeXiPF0Gj6NnH2F0ioYSWaPHZD1reZV f1vIVitXA9V58/r3ssVLooGWF0iXuNX62UdafbLwV2859co4+dYP2cMs5ia+6NymC7iT JYrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SnzrDt8/"; 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-72846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f21-20020a50a6d5000000b005645604575asi2266301edc.594.2024.02.20.02.43.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 02:43:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SnzrDt8/"; 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-72846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72846-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7D6FB1F20A9D for ; Tue, 20 Feb 2024 10:43:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A50946351D; Tue, 20 Feb 2024 10:43:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SnzrDt8/" Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (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 3644F626B2 for ; Tue, 20 Feb 2024 10:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708425821; cv=none; b=XXx3s11NK9htgWHqCNrGtUfZoWF64uGr/Y/mMmY4BsXaTN1ayvR1iP0KLJZS51cYifTQMlfh2TnuRWLb6M/pBZTJEmQnYDB2VyVBLEn6ewlVGBLKxBofQV7NDI4iI0B0CsUdLf0CHhucXwwTbBZJAsodh/1qtFjbkR2vRJGBNFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708425821; c=relaxed/simple; bh=2uVxjGx+3eud5qhkSTkqJX9rEMg+dS/p52YYnV0DAZM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=JKqwEWBdxEYjrpZ9vOK0OX3KiymMlFUOXqCjpG7ZTZrLmmCZSeOv18cTKM7wOoSLsWw5tox5V8w8WtaDAcr5ylYFDa7YgWkc7kxqr6+fTN6Zn68SCt596c+JW857uVsSFjdJR55Ka/cnVCpiyDfU9/XMGUbfBmeKBeGltwwHGUY= 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=SnzrDt8/; arc=none smtp.client-ip=209.85.222.178 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-qk1-f178.google.com with SMTP id af79cd13be357-7872614af89so457855985a.0 for ; Tue, 20 Feb 2024 02:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708425819; x=1709030619; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7RLmEvEb9uthgWOA8C/L1GOxTd9uDNdhyoVcD48vMYU=; b=SnzrDt8/dIP5HvFG1YD5S67CB+29fMANv0LN6tpqtBwHwonEFgTPrD+d0Rn/sf0sNI xDr7od/WtvvOLzCfLUTHmu2zvNQWgTZN2KVJpv+TlBFnasRoIRdrBZ2LM6DM3paH8MNe NgNtRzxjK9Q/2PLZn2EhsYaonoVLsr/JMc0/noZR8eF5/hbmWfsvFuD1yhQF+GGbCYEu g2qFiVo/qIN217NKBqXT4ObaIaFyH1xEcAqGJyKSTbiBkz7Ou6/Dc/VBaNVSE9dJOMdJ aWd6GeXazMRPmL3Ef/LE3UK1tFPxpkeWFxfGIKWdFp9OgolzxV23ApQEkuR3Bp0lDyYL ob3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708425819; x=1709030619; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7RLmEvEb9uthgWOA8C/L1GOxTd9uDNdhyoVcD48vMYU=; b=Tp2ewap3zP8BusNIHQP+gIa/ii2jrCwjLoPQL2WA1oLVCBX+E0ZVTlBdyWU70Z2042 UmuoMFc3BfV98kRLNgp3V+LKBo6VxGig9I9xZtekwrefYyW/dw4HT0/9MWdOViIJB51V /fTiX4ya2YxuZQyVqYM8HgUsMbh0zROYQEI3xwXogslAmCGB1Xj2YfESLTFN3RuPugGO iT9vBhhH1ZZY1nwxo4U8SclZBXM5CuwKVGP+coNQN21Q1foQm9x6WmUVtBcyczmEByEA X9U4OBPlqqfEniEkoam8ddl4UFGUE8yfwHqPOIHY4dWR7oZzmYcVmd0Yq+BZmjaT/QVC eI6A== X-Forwarded-Encrypted: i=1; AJvYcCX7F41baCdVyx0JR3oY7dKRHoHtJtXI0ZsNp4Gaza3oxpr1E27HepsFx5nPVYEb8VSFRvlgyMykj493m+qnJWZITkpWsbGYbICNNlr/ X-Gm-Message-State: AOJu0Yx4Svk1cgad+5DwY60sknMXR27tk68RsthfA7bzFpb6OYVNEaQk OlRfTGIsHddeipcmUokPZYePqAhLt1MAXshaMywtN1qLbFbMUneTvleISJllhden+2Wj/mJbwH7 OJavVrQSawBW8bEcrlpRcKKAo6jwYFarFWtLzkg== X-Received: by 2002:a0c:dd13:0:b0:68f:4e3a:29e9 with SMTP id u19-20020a0cdd13000000b0068f4e3a29e9mr5805704qvk.0.1708425819073; Tue, 20 Feb 2024 02:43:39 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240208161700.268570-1-peter.griffin@linaro.org> <20240208161700.268570-2-peter.griffin@linaro.org> In-Reply-To: From: Peter Griffin Date: Tue, 20 Feb 2024 10:43:27 +0000 Message-ID: Subject: Re: [PATCH v4 1/2] soc: samsung: exynos-pmu: Add regmap support for SoCs that protect PMU regs To: Krzysztof Kozlowski Cc: arnd@arndb.de, linux@roeck-us.net, wim@linux-watchdog.org, alim.akhtar@samsung.com, jaewon02.kim@samsung.com, semen.protsenko@linaro.org, alexey.klimov@linaro.org, kernel-team@android.com, 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 Content-Type: text/plain; charset="UTF-8" Hi Krzysztof, On Tue, 20 Feb 2024 at 06:56, Krzysztof Kozlowski wrote: > > On 19/02/2024 20:47, Peter Griffin wrote: > >> > >>> + > >>> + if (property) > >>> + pmu_np = of_parse_phandle(np, property, 0); > >>> + else > >>> + pmu_np = np; > >>> + > >>> + if (!pmu_np) > >>> + return ERR_PTR(-ENODEV); > >>> + > >>> + /* > >>> + * Determine if exynos-pmu device has probed and therefore regmap > >>> + * has been created and can be returned to the caller. Otherwise we > >>> + * return -EPROBE_DEFER. > >>> + */ > >>> + dev = driver_find_device_by_of_node(&exynos_pmu_driver.driver, > >>> + (void *)pmu_np); > >>> + > >>> + of_node_put(pmu_np); > >> > >> You are dropping now referencen from np when property==NULL. This does > >> no look right. > > > > Good spot, will fix. It seems syscon.c and altera-sysmgr also have the > > same issue. > > > > Do you plan on fixing them as well in such case? Yes I'll send some patches to fix syscon and altera-sysmgr as well. Thanks, Peter