Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1986873pxu; Fri, 18 Dec 2020 02:47:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxy7ENdP0CjghTuDe6v7tosFQIy6Qm/NzDyK7Yf5zSHgv3GwFSvV/ngBsjaazHQM2OgfzHy X-Received: by 2002:a17:907:b09:: with SMTP id h9mr3434376ejl.155.1608288465727; Fri, 18 Dec 2020 02:47:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608288465; cv=none; d=google.com; s=arc-20160816; b=ChHp+hnY4i5dVjrtXmtt3coR8j3SwGGuvWs+wPZPywlsbklIs/wzmiZzDmAL1Xg8Oq Ks5nRaJO+6lJkx+UbGSHtOYpnowMd4xWic1/qQVUHn99mItco+mUby9NUgZDRS0ylFcF 9lvoftzwE1s790mANzMKFmJeAdXQtuvGu1Y3wdN+IdES/VnaSuaZ6mXwspQtFUjvnZhe 1uZzbPRGO7SvqZYFhi72iYgUo+JaS6w7lkky9hSET6YkvAkI0U3LS2PRi0kPwRHBK5pn fNwZ8R+H/nJpuh0Wigh53mccVnAXaNrIescwvZn5NWUxr1VpsCx285EyQQELzi1o3z9G b5mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=0cr48TZsCwMPdlk2gn48H388SkA8sVrr4kzCmBPsg3k=; b=vZRd30+BQ008APudZH8TEkKNSI+APwfonBRrPAk26gAnSLC0tdyzDyUy+XzSJOchUQ X98DL/+M1Til529qRABEfGUc9P6GGUa9IK/06dpHuQPi11jyQHPtwV1ubrtz6ctPoOL5 vhPg0GDvITkaHlUOB2cVEp7iYol0ykjZVFpZJFENBW71FyzofQV4GO+msj+r7Scs2s5H h7rsQsBosZWAEJR0ZHjrVqMIc5pUxY6bnhOhwO61AJGA2SwvMZD9y0jrGy2D4f/D0c8z 0TCNbn7VDxNVm8LJpsHZQXYSST3AqwmG3eT5eOBhVJBktoxP31AeXm8doS4CaLNI2Tl/ JmIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p19si4450910ejc.398.2020.12.18.02.47.23; Fri, 18 Dec 2020 02:47:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389255AbgLRKpD (ORCPT + 99 others); Fri, 18 Dec 2020 05:45:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733203AbgLRKpC (ORCPT ); Fri, 18 Dec 2020 05:45:02 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5F0CC0617B0 for ; Fri, 18 Dec 2020 02:44:22 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 1491F1F461AC Subject: Re: [PATCH 2/2] platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot. To: Pi-Hsun Shih Cc: Nicolas Boichat , Benson Leung , Guenter Roeck , open list References: <20201217081423.896862-1-pihsun@chromium.org> <20201217081423.896862-2-pihsun@chromium.org> From: Enric Balletbo i Serra Message-ID: Date: Fri, 18 Dec 2020 11:44:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20201217081423.896862-2-pihsun@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pi-Hsun, Thank you for your patch. I don't accept patches with an empty commit description. Can you add it? (maybe you could just explain more what cold-ap-off means here. Apart from this, the patch LGTM. Thanks, Enric On 17/12/20 9:14, Pi-Hsun Shih wrote: > Signed-off-by: Pi-Hsun Shih > --- > drivers/platform/chrome/cros_ec_sysfs.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/platform/chrome/cros_ec_sysfs.c b/drivers/platform/chrome/cros_ec_sysfs.c > index f521a5c65091..8210fb10e839 100644 > --- a/drivers/platform/chrome/cros_ec_sysfs.c > +++ b/drivers/platform/chrome/cros_ec_sysfs.c > @@ -28,7 +28,7 @@ static ssize_t reboot_show(struct device *dev, > int count = 0; > > count += scnprintf(buf + count, PAGE_SIZE - count, > - "ro|rw|cancel|cold|disable-jump|hibernate"); > + "ro|rw|cancel|cold|disable-jump|hibernate|cold-ap-off"); > count += scnprintf(buf + count, PAGE_SIZE - count, > " [at-shutdown]\n"); > return count; > @@ -46,6 +46,7 @@ static ssize_t reboot_store(struct device *dev, > {"cancel", EC_REBOOT_CANCEL, 0}, > {"ro", EC_REBOOT_JUMP_RO, 0}, > {"rw", EC_REBOOT_JUMP_RW, 0}, > + {"cold-ap-off", EC_REBOOT_COLD_AP_OFF, 0}, > {"cold", EC_REBOOT_COLD, 0}, > {"disable-jump", EC_REBOOT_DISABLE_JUMP, 0}, > {"hibernate", EC_REBOOT_HIBERNATE, 0}, >