Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3002032imm; Thu, 24 May 2018 20:55:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrClrwjOABxOeBqIt9yRx+GGNPqv45Odg83UVvCKQ3cXSc0MfPHHUKuh8IghT4AWAcT/LTC X-Received: by 2002:a65:56cb:: with SMTP id w11-v6mr615178pgs.175.1527220559145; Thu, 24 May 2018 20:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527220559; cv=none; d=google.com; s=arc-20160816; b=CpOthe8d48UVkk1CqVWjnhIIdaq23/EEXDNUxoT1u4Mxp3oWGid61XbHcs2sCaAmCD j/4er7hrt4Dm1j52H6a1u7UzP+m78Qta8Wv30STvddBorodFd92nSZ9BTzcgQpWrLTuE nW7InwadSUlxiSua0dyjucL2BGO/FrLBaIfHPefzv4+xnZQsRuQD/Ld8Pn7CTGOXARSc DJ55ccPg8lYVlXaPwABn1sTGNR5ftuYGNC5lSTlLqJYZMMPgXR+lmI+SwjPTtWaPlDoE EEyjFJnIyCDWnf8KTsqzVdfNX98Ms8lgSdDhJwkrNpNXA1ro/TKWDtRHrUE48phOE8BF 5g1A== 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=lNJ5rqis8BsZ8BvosNScX9e9Ii9Z6Oox3gAwR+4aGDw=; b=HEl2rGbb2z5zbniJvXB3g64REmDslB+lgHFtF2PdfkYlKjmHNknVK8Rl4XxoGJ0ohc KVquBvDYvmzj8YNS6t8nD08Uc+SPPRF3RcN2raHaZa23E1JwDWfIHdNzOAbdG71XEVeJ JOLUhc3Ls/9NJvGfSymZtIdTwPVzLUHOEGt8qkKpa6oZcW4cG/boUaGAxMRVcgH/y9kc a4ruhkI0gvFE/Xp2ACGF2RYN7JR1i57Nie+Qv/kgjEIQ1+hDSu5o+WtExXlf8nLPl8BA Utxjt0OBsRJKYCsye9Kq6thNT3WTbHUYmspubFosyJeJB2xvCjsHi2eeTKfw2ujBejVI aX7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MJ1ZCnsE; 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 m22-v6si22465482pfg.323.2018.05.24.20.55.44; Thu, 24 May 2018 20:55:59 -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=MJ1ZCnsE; 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 S935872AbeEYDyX (ORCPT + 99 others); Thu, 24 May 2018 23:54:23 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:38383 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935726AbeEYDyR (ORCPT ); Thu, 24 May 2018 23:54:17 -0400 Received: by mail-pf0-f196.google.com with SMTP id o76-v6so1902207pfi.5 for ; Thu, 24 May 2018 20:54:17 -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=lNJ5rqis8BsZ8BvosNScX9e9Ii9Z6Oox3gAwR+4aGDw=; b=MJ1ZCnsEFTYdG5dy4Up6RlNe4s4hfBoP+ieRVZOofi7g7JuF1ZhbEoRMkaPAV/Cuhs jh1XIm4TRtcmc8TaQFRxsSqumoU+obTt6wb3kSNiy2sPpJk6rQukqgIIZV2jbyJBD4OC O9mc2UAP+rMMfMMuu5y0KAKv9wd9CEow7EWHg= 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=lNJ5rqis8BsZ8BvosNScX9e9Ii9Z6Oox3gAwR+4aGDw=; b=f9gPV7MNkxKdJayehRrrtsB/BFDjXGiqpMNgOEQZBszWbXeSNLa5PlBeINGxhTaKWS DjUxDrkrIskbOwusIjRABkBmR59BekIbOkL0gQnbHBwZRXWNacvL9KTRK4o2XqFMDzRz ymwwUPM9s0Z8IQUtckZnM6eFIGrdrpA7ulnXGGt6bpGrau7ekptldp4UrI+oRlyv0yTm KRQcIfNcAOycoFQ89VY+/GoU+7amjIsiyxIjGAzouu3q1l167bV0QyRTeVVQ26tQiP5f peahcG18BevW4ja3AY7CKs0gBqh/Bn3NGYb7o/f3/je4lh7mJR9geBBSMe2Hqc26bYQ4 KM+Q== X-Gm-Message-State: ALKqPwc6kGClM9o9UMubwKflNfBnBw3/gYUvMN2GYO9MwQujxeRCML/T efW3dLb/IUaayFRDGS+qC/2Fkg== X-Received: by 2002:a62:3ec2:: with SMTP id y63-v6mr825339pfj.102.1527220456867; Thu, 24 May 2018 20:54:16 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id f78-v6sm44042915pfk.138.2018.05.24.20.54.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 20:54:16 -0700 (PDT) Date: Fri, 25 May 2018 09:24:12 +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: <20180525035412.3jjocp7ccmv5u2il@vireshk-i7> References: <1527174220-13244-1-git-send-email-ilialin@codeaurora.org> <1527174220-13244-2-git-send-email-ilialin@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527174220-13244-2-git-send-email-ilialin@codeaurora.org> 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 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; And please see if you can add an entry in MAINTAINERS and add your working email id there. -- viresh