Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3010219imm; Thu, 24 May 2018 21:06:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrcp17KVWmmDOOIRGJCmvU0CybrVamFeoy8gUEoBTA5dOafgGcUBi1JErdxhe7eN4quuBhY X-Received: by 2002:a63:6a04:: with SMTP id f4-v6mr648960pgc.225.1527221170168; Thu, 24 May 2018 21:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527221170; cv=none; d=google.com; s=arc-20160816; b=okf5EEGLiL0wUJFRVYp0k4IhH3ISgna64nvpj5jey6lumUlh5Pc9M9d9lel+NnknmY V56dahe4Jh4TakCHdAth+FFUenk/OV415jrXCi2muXKeGBgxI4QJhrCCIIXV7dE+f8a8 V/+TUBuD38YaXVE8Hk6n2q5Fx+p47mLmDtdoOvRrFswaGVDA2YQGq2XdfKEecvsau98v B5btyVOS0WIdSrtts6F5jQQW82hdNEY+xcgB29V7PqLwxV0urcN/vKZfn3Hnz+hDtgLg qFM+oYAnledCT90yXR5eMNfCw4nqwoHV9oqAatmLv09I1M/Ru5o/XKtoofDXSioVP8Mr ZiOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=UKPKfp4dl3x/e0Aj4Bf1FSgHqFWaqTVLv/2mEd1ukIc=; b=ri6IoYCAd+Ty7J3NrkeCogdbxtbLLsyCJljU3U1+DPv6Iof8oOTxnpUpCQQwoYxtqH l/80UG9inYhkxSUs83ssJWdzWFQXYPw/MRiCLhsKyeXY34cR8pcjvPubSJ2Va5Bq4W/g bHJwNLZ9dbFxfKzS/7BkZLNQ4C16I/IHeCTWNYVx+y+RIaBlhZmukpI3DUJwtjBMzD6f ESMLyrpV/6CMYAwRiFCS8FAN730y/SbntZ9QlCLDqxaZxDg9V/FQQDOYGRobnEtIgmfr vrofqpaxXyfSzMy4HXK+VBZQOkI/eHqWFdiz/IiexO9yA6ubpMGb1QPISD0YrLb32drR R8bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ihpqIHwT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12-v6si21544636pfl.283.2018.05.24.21.05.54; Thu, 24 May 2018 21:06:10 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=ihpqIHwT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751889AbeEYEFm (ORCPT + 99 others); Fri, 25 May 2018 00:05:42 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:45402 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbeEYEFk (ORCPT ); Fri, 25 May 2018 00:05:40 -0400 Received: by mail-pl0-f65.google.com with SMTP id bi12-v6so2314300plb.12 for ; Thu, 24 May 2018 21:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UKPKfp4dl3x/e0Aj4Bf1FSgHqFWaqTVLv/2mEd1ukIc=; b=ihpqIHwTgle65kOYn/v62wIY+NStdX7GAf9/BahPt4ZjCNLXY1/SXMZNaRQfUZMU4y 8M/uSc4swbcLiEn73A4AuhJ2IIVPgHFH2jB1DPYeNC70RLDQq4qh5w7ekOlVBwSv1YAf 0RHOWobAPhGg1hpcrb0OOlrWBuowIUOu9Q2nE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UKPKfp4dl3x/e0Aj4Bf1FSgHqFWaqTVLv/2mEd1ukIc=; b=eWHB4yLEE2BKkaajbbUS55sxniZEJf2rQpgpDC5ZKekpl3bGORBCmB9cCBxW7zSLrS qcudF10Xa5Mn+yWL8Xyfxs/ALl2jvfobroP7uYKd+cpaAC0L9hq54S7Ly2qIyBgizMqQ //LrnoqF5yczCF2UI4lKvrChLWYdjgfcldEW/MF4GhMiblMHsa0Ay8rdVqOqjNtdvAPN AHrdBfgvTddO2VtFu1WcBC56s9u4wdYMrpJkLZ0XEfyveP52wp0HNxTgeQAxpg5WTbWa psrQuwHhfSDzAVHNzsLLBmQbJ7rXz+/LiXlQd7q6ITD8SdcEL+hzPBVBgwo1uSIaQIzZ D+BA== X-Gm-Message-State: ALKqPwfDoluT2Sw8yHSILyVwvRSmQagjLXRmVFlOsJJNmvgzzm4bBoHA ojoVZD+UhZkTDci14kYt6rJoaQ== X-Received: by 2002:a17:902:7615:: with SMTP id k21-v6mr834852pll.97.1527221140396; Thu, 24 May 2018 21:05:40 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id y24-v6sm40414377pfn.23.2018.05.24.21.05.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 21:05:39 -0700 (PDT) Date: Fri, 25 May 2018 09:35:36 +0530 From: Viresh Kumar To: Ilia Lin Cc: vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, robh@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver Message-ID: <20180525040536.njrdqjn376oehw2b@vireshk-i7> References: <1527174220-13244-1-git-send-email-ilialin@codeaurora.org> <1527174220-13244-2-git-send-email-ilialin@codeaurora.org> <20180525035412.3jjocp7ccmv5u2il@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-05-18, 07:00, Ilia Lin wrote: > > > On May 25, 2018 6:54:12 AM GMT+03:00, Viresh Kumar wrote: > >On 24-05-18, 18:03, Ilia Lin wrote: > >> +static int __init qcom_cpufreq_kryo_init(void) > >> +{ > >> + struct device_node *np; > >> + struct device *cpu_dev; > >> + int ret; > >> + > >> + cpu_dev = get_cpu_device(0); > >> + if (NULL == cpu_dev) > >> + ret = -ENODEV; > >> + > >> + np = dev_pm_opp_of_get_opp_desc_node(cpu_dev); > >> + if (IS_ERR(np)) > >> + return PTR_ERR(np); > >> + > >> + ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu"); > >> + of_node_put(np); > >> + if (!ret) > >> + return -ENOENT; > >> + > > > >I hate the fact that it is taking so long to get done with this. But > >can't you > >just check machine compatibility instead of this complicated setup to > >check OPP > >node ? Like: > > > > if (!of_device_is_compatible("qcom,apq8096") && > > !of_device_is_compatible("qcom,msm8996")) > > return; > > I have to check the "operating-points-v2-kryo-cpu" anyway, so I moved it from probe to the init. Okay, leave it as is then. Don't send anything yet and wait for Sudeep to respond. > > > >And please see if you can add an entry in MAINTAINERS and add your > >working email > >id there. > > Sure. Should this be part of the patch itself? If you need to send another version of this series, then add it to this patch itself. Else send it separately and don't resend this stuff. -- viresh