Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4191934pxm; Tue, 1 Mar 2022 13:18:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgAQvM1FqUS+d8vXBvN/5Jw1YU+dGuAOMq3BHI+27EEt7YY6a5mysLgVLfP/oeiKBYSgqw X-Received: by 2002:a17:903:10d:b0:151:45e9:5319 with SMTP id y13-20020a170903010d00b0015145e95319mr18702967plc.55.1646169515384; Tue, 01 Mar 2022 13:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646169515; cv=none; d=google.com; s=arc-20160816; b=rLurjiVlFgzA9Vu6b78xd3vCL8TwjBgJOOiekpcgc+I2IKXIacpAXaaXrTymZ2DTqV s7ELGgqmjp8PJ1JonXRYFkExsle0OScKYkCRcuKCDqb4BfJi+/dz6DiljAvnFtmD62pT /8zY3DhgXxWScJbUU8LbT5zJg6ZdC9vM18bleSNc3ZI4uTZglZrxCgo88ASHRSQ8KVfC jt7lU+Vnf0RfCKsU9x2ixI9g9ER+KFzc5z9VCJls5o1TfhfhkRBSR87UG45MCEV3FjG8 JHER41OguzAAdb+28RiwnPpJ9+kiI+VNYzR2WlHl9hLxjMcd1H4t1UCEcqVW4i366zKh iPfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:content-language:references:cc:to:subject:from :user-agent:mime-version:date:message-id; bh=DUVxRGNIA9teoqZCJYDuye51BuMYBdZ8QPlHCOaKZ5o=; b=NJbRP0Vr44C1fLfSvc3P8uKbeTqoGZbcEfEJQL3DYEVRNPJ3qBhBU+vTZOeWQKpqQ9 rvhl8vVREHyUgy6O4fvFfSzIriKigMVT/3k3CWFIS9lZxSuF7gcv2BFKVQEe97U3C5vZ GAETzP4OCqe41KDYEETVOADLXE+7Xkh+XkjFSfrssNQIxsWSJpMp0B+W80iIjxBOeScb u9vCBlOP2R6tbfOk5s/y7rBRVe5MQNcj1OaG94xrvbJSfnmOkaXeBk0DZHOf+Xv2fDsF 9IGYnuXYHl52bi5c61ciIZdJrtf8WGxEqHOhQ67rDjXSo4si+mvXeGAHHwXvO4Hm7CiX m3sQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w22-20020a63fb56000000b0036551f930f7si13191214pgj.27.2022.03.01.13.18.19; Tue, 01 Mar 2022 13:18:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234731AbiCAMZv (ORCPT + 99 others); Tue, 1 Mar 2022 07:25:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbiCAMZt (ORCPT ); Tue, 1 Mar 2022 07:25:49 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 067F84BB9B; Tue, 1 Mar 2022 04:25:07 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B48BCED1; Tue, 1 Mar 2022 04:25:06 -0800 (PST) Received: from [10.57.5.157] (unknown [10.57.5.157]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C8D213F70D; Tue, 1 Mar 2022 04:25:04 -0800 (PST) Message-ID: Date: Tue, 1 Mar 2022 12:23:54 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 From: Sudeep Holla Subject: Re: [PATCH v5] cpuidle: sunplus: Create cpuidle driver for sunplus sp7021 To: =?UTF-8?B?RWR3aW4gQ2hpdSDpgrHlnoLls7A=?= Cc: Edwin Chiu , Sudeep Holla , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "rafael@kernel.org" , "daniel.lezcano@linaro.org" , "linux-pm@vger.kernel.org" References: <1628e048220f066204b8ac27f3cedf7f3cc02963.1645427180.git.edwinchiu0505tw@gmail.com> <20220221105151.6rvyoqyvj6ehhtnj@bogus> <7b09a22cc178439aa41a752af936313d@sphcmbx02.sunplus.com.tw> Content-Language: en-US Organization: ARM In-Reply-To: <7b09a22cc178439aa41a752af936313d@sphcmbx02.sunplus.com.tw> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 01, 2022 at 09:18:31AM +0000, Edwin Chiu 邱垂峰 wrote: > > > > You really don't need a cpuidle driver to just WFI for any states. > > Add the driver when you have something non WFI in the suspend function. > > This is still valid and you haven't responded to this. > > > +static const struct of_device_id sp7021_idle_state_match[] = { > > > + { .compatible = "arm,idle-state", .data = sp7021_cpu_spc }, > > > + { }, > > > +}; > > > > This is better than adding new driver like you did in previous version. > > > > I did a quick check but couldn't figure out. How do cpus get switched ON > > or OFF on this platform(for example during CPU hotplug) ?. > > > > In this patch, I just want to submit cpuidle function. > So there have no cpu hotplug function now. You need to document the binding now for both idle and hotplug. You can't mix and match. You can either use PSCI or custom "sunplus,sc-smp" for both cpu on/off and suspend. So you must document it now even if you don't plan to support hotplug now. And when you add later, you must use the same method. However, you still don't need this driver for just WFI, so please explain why you think otherwise. Until then, you still won't get ACK from my side. -- Regards, Sudeep