Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1656575lqm; Fri, 3 May 2024 02:25:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzYdCLUVAdoJLWmuxk5vvVOG71KqySEJTAjW2Lh/Abz5W7p7+0OTxlJUnmZe/CAmh3AAAs2LElWHjLD+zlWgjVg20fSKSv4U8GRsjuBA== X-Google-Smtp-Source: AGHT+IGeV3s1V6JMquaUIp4fPcNlR0XMroU0+FvmfdG5o4Gw58yzbH/EcYIFF8CQsdnTMZBOASlc X-Received: by 2002:a05:6808:116:b0:3c8:41ed:8738 with SMTP id b22-20020a056808011600b003c841ed8738mr2253457oie.22.1714728314359; Fri, 03 May 2024 02:25:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714728314; cv=pass; d=google.com; s=arc-20160816; b=Qp7INaGF6V/BBGIVGsUpo/e/cAAGCa0dVMaxk+zF7RfKpx9nqJJW2aW50R3XoiJQER ADm0e54k7dKkA4D2bD+42gC7rjoSf3OV/m5Xe87+rq7h2lgnUJ3lEuSGoXCKilItkceo SooxJ7mdYglx57q5+M91k6eeTRYmvTtfS/XmUkkvH5noIegbIsVW8ElfirlS8D99PEyP usIoz9Q6OcAOGvhwwsPq8Wz+fGfgcy3Nti7Tsc9I3sx7WSSkWh97lJ9C4+pbhlzHlPGc lFGUXIBFkmQKREVjV45mDNE3YbVBVkh8PITkuH8NEuBiXc97bN/Nhjp5mFxr/bEPhPOJ y02w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pGUFG0yqzqqbezCPL5Qz9Rt8Iw72AEQBop42f8Cmrkg=; fh=KlRpN6I4q9oFIqDT0x+JVvjFaLtgvAGiIoFVEQq3jkw=; b=N6Yo0Bi/7u2JRZHNt36Q0HhMraQK7NV+zczAasyG7l3Taa3hUOC244T3wk1x3FK0dB AviL/JB0oUzmEcjPaomBue+MKT00JLkW2g+G75t2LnGYOHh58X818rx756a7+mboOGzp 0X97BApZZdGwHRFROGJ01g0HOpqpmL3I3sU5zwcswQiQzejpkN++/Gz1iBdsGRCLe5PQ XNbNw1p7xqcCaDAvXnKKkc45eAo9Wette4H08q/4eb77HlYESq8AiMoZWnCjhKYpDliB M8j+9TYg+lboKeHClaqzHx/a+A5yjKpeOhJhNHhY5M/j2ZUO0jZ1FN8IkIHTtwFr88ut wgqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s0wlK9a7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pt11-20020a056214048b00b006a0a964a741si2871684qvb.345.2024.05.03.02.25.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 02:25:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s0wlK9a7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 193A91C216C6 for ; Fri, 3 May 2024 09:25:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D47F714F9C8; Fri, 3 May 2024 09:25:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="s0wlK9a7" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC81A139CE5; Fri, 3 May 2024 09:25:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714728305; cv=none; b=iYUGlD0eGUpxFEGFQmrsRnYHI+EiIjmq+wkylH7VUDLTx1/cJgGVhq5hr0aR9evaI45wH4pKkpI0wsvkLiCW7yk1wDnRjTmJg9EHPkCGDmRk/Qw0c+5xMjUxzAnR6pilz+ABnx03rQSq9vDb/xD4huVYbpDmp+qqAJIKbWiDyaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714728305; c=relaxed/simple; bh=zK7UnGMi4p05jwvR3aEI2aFoiM1mhz4XLglPB41yM18=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ap8zv9KBxyux9t681F+g0KB5IfsULxRBSgwO8D5xj3P5MJCv4nL8m3XoffU5MvotZuceDifjlhneRLAwINfykW5y/eJnCMwxt9f+gmLDFDIiuJ+ux38sDasPYn2ZCE9KiiQ6p99D0Tgsgn5KwbQHQKKIALu1afoBu6I4bAgvyg4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=s0wlK9a7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BAA9C116B1; Fri, 3 May 2024 09:25:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714728304; bh=zK7UnGMi4p05jwvR3aEI2aFoiM1mhz4XLglPB41yM18=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=s0wlK9a72ouNQmoFhqXfgNKQI+xm31/6CJEtIYe198RlKClcGzA0e24vvV5nzjZYq 6TIok9pF1J9VamFuQfUy7yg7pG2NN58/sPl8L8TFHVG8qP3Uw41zPjt+X4+iz4Fi+4 QztH9oN5aKKBNLgua90geuYD2YIrv4DRX2Jvhu2enpkucIzsjI8pCPH72hHpqIp16W O4FNsfkGxcqKEId4ayl9a9X17cCHtHdCH1AkK68tw8htrMeCIjQkQc7yrwyGDQ5S8l Q5pkQazhInpMTXLXMlltCxzx+eS2Qlaq2xi+Wg4yaVoXscSsH2yj1CG6iMPDHa/mYq QmExpUd9z37aA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s2pA8-000000005Of-0cRG; Fri, 03 May 2024 11:25:04 +0200 Date: Fri, 3 May 2024 11:25:04 +0200 From: Johan Hovold To: Krzysztof Kozlowski Cc: Johan Hovold , Jiri Kosina , Benjamin Tissoires , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Douglas Anderson , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] dt-bindings: HID: i2c-hid: elan: add 'no-reset-on-power-off' property Message-ID: References: <20240423134611.31979-1-johan+linaro@kernel.org> <20240423134611.31979-4-johan+linaro@kernel.org> <2e67e4e6-83a7-4153-b6a7-cdec0ab2c171@kernel.org> <48ec0bb5-a06e-4f18-97c3-1370b7facea4@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48ec0bb5-a06e-4f18-97c3-1370b7facea4@kernel.org> On Fri, May 03, 2024 at 11:11:16AM +0200, Krzysztof Kozlowski wrote: > On 02/05/2024 11:56, Johan Hovold wrote: > > On Thu, Apr 25, 2024 at 11:39:24AM +0200, Krzysztof Kozlowski wrote: > >> It seems it is common problem. LEDs have property > >> "retain-state-shutdown", to indicate that during system shutdown we > >> should not touch them (like power off). Would some variant be applicable > >> here? First, do we talk here about power off like system shutdown or > >> runtime PM, thus suspend? > > > > A name like 'retain-state-shutdown' would also be too specific as what > > I'm describing here is that the reset line should be (or can be) left > > deasserted whenever the OS wants to power off the device. > > I don't think it is more specific than yours. It is actually more > generic. First, shutdown=poweroff, so that part is the same. My point is that 'shutdown' is a specific OS concept (i.e. turning the whole system off), while powering off a *device* can be done for a number of reasons including closing a character device, suspend and system-wide shutdown. The policy decision of when to power off a device is left up to kernel (e.g. if a device needs to be kept on as it is currently configured as a wakeup device). Johan