Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp182190imp; Tue, 19 Feb 2019 21:18:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IYjMjauny7t4x4tfLTXZbr5Mvo9XGP2nLD3eF6EclWD9xKcsr8Go1T3wx31giwplJ2HWTsG X-Received: by 2002:a63:df09:: with SMTP id u9mr31151393pgg.299.1550639918416; Tue, 19 Feb 2019 21:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550639918; cv=none; d=google.com; s=arc-20160816; b=R4ejZmJquq7ygKxHvirQsxxEoKX/tOWOMYnYN7VwSmSGIRITrg2ZuBtK6bqEfjIOCj TghPvsZMXe0G/xURFF/bwfzNAt/WULRvQ+jr1d/ZBaU+bVlS4BXZmRifvFifDhKw50JQ FhyxDj4rFHZh7mMfKRNjpih2UBsD0/xE/7jjVXJPTPEjGmvnWNkWNWMX4UJY9OR6+UKH /vGM5+3ApBfb6iNEhKFvt6i2KD4N7C9F8yI7+eTzsTBz8ZCzI4G1axOScUBInty8SA0s eVgtLvoGIb9OF6JSPpAk4QBZAgp1/wRUEIj0/2l6V2fQk3VLwNTtkmB1SEEgKRmB6Ryv c1ug== 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=Mn8QYHrVDLBAWlrZd1uGFvStSienuep69TmAsRh6iis=; b=IPWgFG6WDy1oWSDdhkia92QgF60vzP6+pFgiw2IRCuLz49zLzB9dPF6cls0/lGwCcP CqB7gfjn0WGv3cvE+H+pvKU/7MxagodPMdfV8Nner0+MXUwDlObsBlcsz1lsXTHazGrs Yj2DzWq3ZOph+XppdBrHlwh78js1Qm1oBmEsalzV0YGgpqHcg2CWpiQi74W1ApH/kACG uaeOvs2c26bv2WWUCvXzFON8K3d4dxFRjx0ajlafOo1pm/sUj6qNGN8H0y63Rz6mqJki 8UpSao2nkthsmRoyYdLXwsiiFq6lnmn4r63Pdwel9y3XqNw5dgOVNtX18vLlgqKaO33D E9hA== 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 i19si17585487pgb.263.2019.02.19.21.18.21; Tue, 19 Feb 2019 21:18:38 -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 S1726331AbfBTFR7 (ORCPT + 99 others); Wed, 20 Feb 2019 00:17:59 -0500 Received: from mx.socionext.com ([202.248.49.38]:45868 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726011AbfBTFR7 (ORCPT ); Wed, 20 Feb 2019 00:17:59 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 20 Feb 2019 14:17:56 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id E031F6117D; Wed, 20 Feb 2019 14:17:56 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 20 Feb 2019 14:17:56 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 7D5FB1A04E1; Wed, 20 Feb 2019 14:17:56 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.119.83]) by yuzu.css.socionext.com (Postfix) with ESMTP id 6B78D121B6C; Wed, 20 Feb 2019 14:17:56 +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> <7266af3b-aeec-4c29-c96e-ee0d21d3e867@socionext.com> From: "Sugaya, Taichi" Message-ID: <9979cb94-ce35-56de-df2e-33c10517ed77@socionext.com> Date: Wed, 20 Feb 2019 14:17:55 +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, On 2019/02/19 18:21, Arnd Bergmann wrote: > On Tue, Feb 19, 2019 at 8:12 AM Sugaya, Taichi > wrote: >> On 2019/02/18 21:15, Arnd Bergmann wrote: >>> On Fri, Feb 8, 2019 at 1:26 PM Sugaya Taichi >>> wrote: >> >>>> +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). > > Right, you can either use a call to of_machine_is_compatible(), > or you add a machine descriptor with OF_MACHINE_START() > and use this as the init_late() callback. > Yeah, I will use "of_machine_is_compatible()". Thanks, Sugaya Taichi > Arnd >