Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1004150pxb; Thu, 4 Feb 2021 02:37:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzoHW73oaiItTi9UFtQXD0QZ0gnOSh0krpby/dIEmb7JOM1swpj8TFryFOiACialHaekliw X-Received: by 2002:a05:6402:1155:: with SMTP id g21mr7217879edw.279.1612435062048; Thu, 04 Feb 2021 02:37:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612435062; cv=none; d=google.com; s=arc-20160816; b=vGb1vdIB1/XOMOsn41iOy41QxkZTkLmGTeuEQj1IWi2ww3iVXYSYTue5xa7CwnHCzB q5fnKMTPj/F8rzNjCwIm8Q2CrlRYC1KIHaMwRkhqf3+AV3JMxQogE43rFWzWdJnXARaQ Fbqc3sCvP7ko18474R8i5m9rKfWtmq7UpAtov+3qoT03/jZ4PHKY1aE6y8k5ENKKxq6Z j83X+1m9wSm6r0aPxlZO5ni+Hvts5PCHvQh7hNFZdRcIQM8wcOj3RO/Sy/2vekyxUyur C6RvUGzPydAhBYuIQlKkeHxdBDv86LGMJvhtNaoXU3NgeCl8CDyDASVplaIkavYRmET2 0/dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GqBeoKuEyGQj5S4yDAjpDTao5r9MWVZzxgSg3q8we28=; b=qKgWxGnFwJX3RLhJ0eZjBWaod5YKCvFa4NoFgzEAAIvEdqvlRZ7CBAwgYcIGVFackT ZdNOFeLEA/h3zPdZ1kHsiDI3UmxJE1Sql9jmJcW8VblcIcA6rur/OK/Jcyh11FRKEDEn dXC5QNEmCKZJei87o6wMat9R4rIpC1mUDC/tQ9iYSheUGpxL9qJ7Yh/VRwO8XVI9VUEV d4yorcxYtjp+2/Wv6srLhMWX+Qyz2e9upvTpdawVEybA3ipVrzvZQa84fJmMmQ+7KdiV JUUNGlKlfoOraPToYZf9XD5Brt1BfLq/PjhtASN4tDWwTYq1x5rB3ikswdFUkvcgg4I2 MLLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nNzaMZmN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si2989268ejc.177.2021.02.04.02.37.16; Thu, 04 Feb 2021 02:37:42 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nNzaMZmN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235613AbhBDKeh (ORCPT + 99 others); Thu, 4 Feb 2021 05:34:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:42084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235603AbhBDKdT (ORCPT ); Thu, 4 Feb 2021 05:33:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0520C64DDE; Thu, 4 Feb 2021 10:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612434757; bh=EArjMRkmeuzvN8JsNJ4vSIHnn+1xYVxH7SoMRVxmXw8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nNzaMZmNi2fPLT5jJ1FU/xbW/ucUzV3vSg4M34QbPJf57oqeKuDiDCX2A6fk0+cBR YJPYCpmGENXHgmosjyejIsJKr/k6zLho9WPQ41KHook0yEolJc0Q69gD3RrUjq7ZJL XMlyJjHeG9/3DsVzsCYyRd7IwnbKOaFryKfBHyTk= Date: Thu, 4 Feb 2021 11:32:33 +0100 From: Greg KH To: Ruifeng Zhang Cc: "Rafael J. Wysocki" , ruifeng.zhang1@unisoc.com, linux-kernel@vger.kernel.org, chunyan.zhang@unisoc.com Subject: Re: [PATCH] RFC syscore: add suspend type to syscore Message-ID: References: <20210129082726.19406-1-ruifeng.zhang0110@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 04, 2021 at 05:06:25PM +0800, Ruifeng Zhang wrote: > Greg KH 于2021年1月29日周五 下午4:53写道: > > > > On Fri, Jan 29, 2021 at 04:27:26PM +0800, Ruifeng Zhang wrote: > > > From: Ruifeng Zhang > > > > > > Suspend type contains s2ram and s2idle, but syscore is only > > > available for S2RAM. > > > > Who else needs this? > In the s2idle suspend and resume, some vendors want to do some > things, for example the vendor implemented the watchdog driver. We can not add things to the kernel for code that is not in the kernel tree itself, you know this. Please don't try to go around this well-known rule. > The GKI requires that no modification of the kernel source is allowed, > so an syscore_s2idle is added for use. I have no idea what "GKI" is with regards to the kernel project, sorry. > The reason device_suspend was not chosen was that I wanted it to > monitor for longer periods, such as between device_suspend and > syscore_suspend. Why does that matter? What do you do with that information? > > > S2idle requires a similar feature, so a new parameter > > > "enum suspend_type" is added to distinguish it. > > > > Who requires this export? > > > > I don't see a user of this new code/api in this patch, so why would it > > be accepted? > > > > Also, you are doing many different things in the same patch, please > > break this up into a patch series where you only do one logical change > > at a time. > I think it's only one things in patch > 0001-RFC-syscore-add-suspend-type-to-syscore.patch, I do not understand what you mean here, emails do not name patches :) > add a new s2ildle type for syscore. But why is that needed? thanks, greg k-h