Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3234085imj; Mon, 18 Feb 2019 23:12:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IZBe8PUih3LFXQB/+KKhFsfm5JcZOh9eYZlNdaQGKYjlRW6ynPoGbCThAyxfpGQQOxC5aHx X-Received: by 2002:a62:e519:: with SMTP id n25mr27887691pff.151.1550560369762; Mon, 18 Feb 2019 23:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550560369; cv=none; d=google.com; s=arc-20160816; b=j0s4c5kRsjWDeSNUcTZ7Nhn3mxSc2hgYN7+Mht8orn8tRN8ZtwaCBn9nHYbm+2TuNf losplydQW4gzi6elQJ7ht3IszKPZBvRbRd0s4Lm1r9tXtI9ac0UU9gyvktK/MWp5IUm1 0hCEuXD01sSDCFkvFJ8zjk5ewcvjiDTrHTZcEuU25+Q7COTEHLwPY46xxBWHtUwaqd9R Cg+C50iU5OnDWmmxDxP5JV2L9vY1kBJP8/PXHXuWAFwcsLIuoOH+IwbIJN0jZBHRafhw oMoXxNg9naKSCIXNo34rAetuqDYEF2n5KuCrbf2H2dhC3CmMoxFGebbx3NXhD+Vn4gEq dFPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=gv2xSdWrH2ZCR/A7UposjnfOM/yjKhPWf+HgBzt7TAc=; b=AVzf3SEbAwXnyNaAxCfJbd4EscXVq5Rd5U3u4yKTqI5KNWZuC8hdi/LC0f0YGTQvXi SrWPefn+6RaK57v0OVks3l5AB9m7nK06izd5c2Q8WG5Lx4JM5b3TuGPepFokBz4qMv7j 01TISSvP5m0V64SiRQZ8g6n0z1TLl8m625/qaXDWGHVkfyYI2XdgPALj0GQQ5fha4FZb 0Ekz57Sv1laNAwFlrrjCUIFuitJj39I5smi0AQB3a3OGpZ43bDf0mSZOHJiFzGRYAPWs hgwW8wUF/dU9V5J07+PgfH3R3UMXT5+m7XkZ5qHBHRkInptMYbHaMuqtS6BH7preK271 tmBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q17si2082388pgv.39.2019.02.18.23.12.33; Mon, 18 Feb 2019 23:12:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725802AbfBSHMP (ORCPT + 99 others); Tue, 19 Feb 2019 02:12:15 -0500 Received: from mx.socionext.com ([202.248.49.38]:33038 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbfBSHMO (ORCPT ); Tue, 19 Feb 2019 02:12:14 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 19 Feb 2019 16:12:13 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 54F256117D; Tue, 19 Feb 2019 16:12:13 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Tue, 19 Feb 2019 16:12:13 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id D3E8A4039E; Tue, 19 Feb 2019 16:12:12 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.119.83]) by yuzu.css.socionext.com (Postfix) with ESMTP id C169C121B6C; Tue, 19 Feb 2019 16:12:12 +0900 (JST) Subject: Re: [PATCH v2 04/15] ARM: milbeaut: Add basic support for Milbeaut m10v SoC To: Arnd Bergmann Cc: Linux ARM , Linux Kernel Mailing List , Shinji Kanematsu , Masami Hiramatsu , Russell King , Jassi Brar , Takao Orito , Kazuhiro Kasai References: <1549628778-30785-1-git-send-email-sugaya.taichi@socionext.com> From: "Sugaya, Taichi" Message-ID: <7266af3b-aeec-4c29-c96e-ee0d21d3e867@socionext.com> Date: Tue, 19 Feb 2019 16:12:11 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thank you for your comments. On 2019/02/18 21:15, Arnd Bergmann wrote: > On Fri, Feb 8, 2019 at 1:26 PM Sugaya Taichi > wrote: > >> +static int m10v_pm_enter(suspend_state_t state) >> +{ >> + switch (state) { >> + case PM_SUSPEND_STANDBY: >> + pr_err("STANDBY\n"); >> + asm("wfi"); >> + break; >> + case PM_SUSPEND_MEM: >> + pr_err("SUSPEND\n"); >> + cpu_pm_enter(); >> + cpu_suspend(0, m10v_die); >> + cpu_pm_exit(); >> + break; >> + } >> + return 0; >> +} > > It looks like you left the pr_err() messages from bringup, they should probably > be removed now. > OK. remove the pr_err()s. >> +static int __init m10v_pm_init(void) >> +{ >> + suspend_set_ops(&m10v_pm_ops); >> + >> + return 0; >> +} >> +late_initcall(m10v_pm_init); > > This requires a check to ensure you are actually on the right platform, > otherwise you break suspend/resume in a multiplatform kernel running > on anything other than milbeaut. > OK. I think the solution is adding a "if statement with mlbeaut compatible" above suspend_set_ops(&m10v_pm_ops). Thanks, Sugaya Taichi > Arnd >