Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1345549lqt; Wed, 20 Mar 2024 00:21:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHugtVURsjUgotS5RNVUZoQY3NRNAN1wgde1T6VrXuQffJbIZSAfI+VD185OVZt677w3yH3SOVw03wISNP52+Ion2ttj47YFJv6UrgDA== X-Google-Smtp-Source: AGHT+IGer8EKdGfZ/7oZF1gn/MpWoL5p+czJnePD63qjo4A7hqdp1Z0YrJXszwvZ2BUy7HmJTF5s X-Received: by 2002:a0c:cb8f:0:b0:690:cb71:b7f2 with SMTP id p15-20020a0ccb8f000000b00690cb71b7f2mr4126657qvk.58.1710919270207; Wed, 20 Mar 2024 00:21:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710919270; cv=pass; d=google.com; s=arc-20160816; b=MgUluYat+Lvxwdned3hTC07WWFIFS8yfwuLRNMUlUZdOdetJMkWjOBCUZIwPB9LJqC JxBop23fRunGnaec5Uy1WMEOkg7wbqrDWBUK5dJJ5AQimFFr1FE2lHWyxJSGWa29gUvI V7oKUAbqqGBphaCjnw++WVuO5I8Bb+6mhR4h7TWr15LeKIpXjUH1Gc4nOwrCmWQxhKyZ V5HdlVTBzrKGV9pOMWJD7+DuubGhoMy5sY1p/Ui619Mq927WASjYsoEbRpja7dJ4qfht IEaIFQP1WaaRviLn5bLsVrKK1oPTmG+JsJZkHdOnRcTBTePfDZL5cRxexDFnuz9P/KkC ssKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=kGGtH5pV+JgXK6yvZ/OzVX7sAz2a5zYCjHOqU+mGpgk=; fh=BaF4wc3ENrtmJu9k4o3rsl1zAw+NpuNi0i+zn0Lo+/M=; b=KkKwkNJ50v3RuESTUs0hX1DydKaQLfug0fuK3V4AcFK3v+UNZz3BZaS6Xk8EWPlQYk VsPNGTpZhutVAPodUhbf2V8waXohO59nId59AMifneDp28QmAxnVE7Cv+6VehsMNE9rr Q7e8lBdefbGoFFL3BM4xxwURf/P+2MhHld6YMVGjJmMTelF4T9hrPNMQBuFzVF5k1wZW eARy2OjnSImxMspK30g14QzADtijGsB6Bd5fXip/RHL1e2detRpjj6Vpou/iTO0ny+1+ vVZYDYXLaebpQK/5rAhCHcQJDEegkLp3elgxdhCyzwSHMTAX83OwbWQ0e6XPvyZSXNhZ sHXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xjWGYv1Z; 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-108536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kr25-20020a0562142b9900b006916700d754si11607410qvb.312.2024.03.20.00.21.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 00:21:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xjWGYv1Z; 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-108536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108536-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D74E11C2260D for ; Wed, 20 Mar 2024 07:21:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E8A12208F; Wed, 20 Mar 2024 07:21:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xjWGYv1Z" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 988D91EB51 for ; Wed, 20 Mar 2024 07:20:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710919260; cv=none; b=VT2468FMt+hkga6BlcSw8LRFpK8x9tdbH4Oab6r+aQEw/Ah5pT24uz9WcgEq3kCNGHebyMBJxTf/RGTlA72m8Sgo0N9meuPN+Un82Imfa0lcXn3nFcN1GvmZaxSEwnVDmekOH2qw7RBexYLovb8ynaRV7fuSBvYSnWcDjvgS+YY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710919260; c=relaxed/simple; bh=/6CqZEV50/HDUpwdn3sQhk8AnOPHuffll7LzWFbRSPw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sW4OUVYe/x0NjVvPeV8FAmYhC3ECos26i2Gooq8DV4EuC6zF+esDRt+40AcOEW/+bmtFUNsXtZ1XDrag2MccD0t7N3jars6QncTMjrMTjL8AnccAXMKsdrwbVXflA5j+anNQQJjROXdjrb1BD5zT1iVrpVJiGXQpLqLNaeQetRQ= 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=xjWGYv1Z; arc=none smtp.client-ip=209.85.218.47 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-ej1-f47.google.com with SMTP id a640c23a62f3a-a46cca2a979so159531966b.3 for ; Wed, 20 Mar 2024 00:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710919257; x=1711524057; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=kGGtH5pV+JgXK6yvZ/OzVX7sAz2a5zYCjHOqU+mGpgk=; b=xjWGYv1Z61nJJZ2KD+HxXcpt6xewYoczOT/a4ZDgQ7fuD+Kqw7ZZrt6JFwAVHMD/Ee iiW133V/a+BXXSj/+FwJPOhTPXkjoEAOOZrb9mpwGa7KQcedfCFZFuDjfcbTaKKFyGzg ZN7QY1k52y8ufMH1fkw/sFCaKswowIC3VQR9wX0NgNJeZZo0yT9Gz+Lti91tcnQGhCxI RujPIzp7890lUfgXcmy579BkzdHMxziybUfFJU5wksX2Q2gyfhgz8ihP6y4K5VY2ruio VwU9kayeTPfTKMZcA2hbntDu1ZEdASJ7430I0cztBPYgrP2lcnY1E9vqEzB96ovV3Dgr UkLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710919257; x=1711524057; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kGGtH5pV+JgXK6yvZ/OzVX7sAz2a5zYCjHOqU+mGpgk=; b=Njgd7+x6OlYzl7vmBCijOJO59/gVB2PZ03Qrt8fENiG0AAcwi3wcJCnzZiTAk6Ox2o LmbbTQIJKxNGewAllzheEtgsn7ju8YaLjp2XpJkmHnOXC8KaAO68Pd6u3G8ImcuGypIo ADqtoMTW7zZUYud/94+jE7aN/mF+6TNwRRdoh0Auj44qvNMtHNvtnQFzP1IWFou3jAvN 9b6NjEbPzRK+xOjNlI3loG3QrTSzGDJ4rH6ZZvfc+x4clw7vx4NNq1k5j5qnA1npu16E HPv2oeWnVvWu08Z4NdE/bLjsCcMp0UkYT226/+h0YVRCHm6TfFzFy2oNI2+UvgYC93B6 cv9A== X-Forwarded-Encrypted: i=1; AJvYcCXT17DygbTrW6zBjfOHfIWcMHB3awwBhbmLfLHThc4+amCMzIqFb0vcqNRXeOOjEsY3gy5xC9LSYv9lmDIHU0/NGNOxB3bLzTSEYWLs X-Gm-Message-State: AOJu0YwRA5MD4A1HXvhrFWBBKvAZggVDIxpEu3c/hP+chX9EJSjZqIUN vxRNwNNKc+ORgbka0kKyXjzp5mUfaZF43D60f0IjLgIpqihFDNIOPfhAJuNzMI4= X-Received: by 2002:a05:6402:3712:b0:56b:a8ea:9642 with SMTP id ek18-20020a056402371200b0056ba8ea9642mr1306169edb.14.1710919256953; Wed, 20 Mar 2024 00:20:56 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id g14-20020a170906198e00b00a46d049ff63sm2317751ejd.21.2024.03.20.00.20.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Mar 2024 00:20:56 -0700 (PDT) Message-ID: <4d5b2da7-2a45-4a9f-8a96-a6840d2751a2@linaro.org> Date: Wed, 20 Mar 2024 08:20:54 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] power: reset: add new gs101-poweroff driver To: Alexey Klimov , sre@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, peter.griffin@linaro.org, robh+dt@kernel.org Cc: conor+dt@kernel.org, linux-samsung-soc@vger.kernel.org, semen.protsenko@linaro.org, linux-kernel@vger.kernel.org, klimov.linux@gmail.com, kernel-team@android.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, alim.akhtar@samsung.com, linux-arm-kernel@lists.infradead.org, elder@linaro.org References: <20240320020549.71810-1-alexey.klimov@linaro.org> <20240320020549.71810-3-alexey.klimov@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsf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02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240320020549.71810-3-alexey.klimov@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/03/2024 03:05, Alexey Klimov wrote: > + > + ret = devm_work_autocancel(dev, &gs101->shutdown_work, > + gs101_shutdown_work_fn); > + if (ret) { > + dev_err(dev, "failed to register gs101 shutdown_work: %i\n", ret); > + unregister_keyboard_notifier(&gs101->keyboard_nb); > + return ret; > + } > + > + gs101_poweroff_ctx = gs101; > + platform_set_drvdata(pdev, gs101); > + > + /* > + * At this point there is a chance that psci_sys_poweroff already > + * registered as pm_power_off hook but unfortunately it cannot power > + * off the gs101 SoC hence we are rewriting it here just as is. > + */ > + pm_power_off = gs101_poweroff; So that's a duplicated syscon power off driver. Why syscon does not work? syscon_node_to_regmap() does not return correct regmap? If so, this should be fixed instead of copying the driver with basically only one difference. Best regards, Krzysztof