Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1651885imm; Wed, 23 May 2018 21:37:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp9XoV8uBrAutubYO4/pxPmCpySMBd5knqcYyDLpYOVLZ/UACl3WUVRleGlh050tweU7EKu X-Received: by 2002:a65:4488:: with SMTP id l8-v6mr3551706pgq.258.1527136678845; Wed, 23 May 2018 21:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527136678; cv=none; d=google.com; s=arc-20160816; b=J62Demxq8LS71gHIFzy9dMKqaJZDWXDU1kobBkEqNDtGIWUlgJfR3UMoZMtqHZ5Agc KV4Ee/3UxHoKnSLwN9XHnZkGNlFfVcPYgPAaz3Jor7Ir4+HGKXxgGseOklPQuhlgE7on zALbnmEXf+tSVHrmPSZBaOJvjGS9i77X7AGiL9CuSATqe75vzQErI/FKmT+UU/TIAw2r LE7I+PE/mPSRwdrSqfOJQxOUtVMY9PvqangM351qFqy38HcTvwzGu/3uOQtxQxsjRgSP fg966K3J8J/XKI3867SwQ8ZbbNHcDi11Mvw5VoeJM3FRbTCAMOLkfOa2tXGR6JGBpKHI SOcg== 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=K5/2/QnIs6CPgF3Bcj/wk95spTXRwmN1fazNDhS6CqI=; b=uPLRjjKMQ5JeAQ5hUuvywh2ol7JNAuwY0TIoRm4DfCy44cWGunooCgytRsco8Qw7WX uJMlBp8n7Zgu4WL7OQH5ywBjXddEIzG1wphb3Tkd5u2jhvjrSDY/BqlcRD1wyZaNr6ze 78zjbXAV8M69OlYBNia5q4l17x/NDhP4gXFt9MTYNn5GFZDBjpruRG1GkntjFoUnC9WR S9u/rWTELFXU669ah9FwDq5V87D2DYB9TGagX3ghEZZDrU2bV3JBLyWdHfE6gmp620h8 6xQ6oMcoDO2dt6/TeGQytZKRZ8vuGiys75B3rMQWFFQnQHrM5bwlu/zPijlyX8Tuhrmx bJVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cFEfege+; 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 j9-v6si20064930plk.587.2018.05.23.21.37.44; Wed, 23 May 2018 21:37:58 -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=cFEfege+; 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 S1751789AbeEXEhf (ORCPT + 99 others); Thu, 24 May 2018 00:37:35 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34741 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbeEXEhd (ORCPT ); Thu, 24 May 2018 00:37:33 -0400 Received: by mail-pg0-f68.google.com with SMTP id k2-v6so192997pgc.1 for ; Wed, 23 May 2018 21:37:33 -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=K5/2/QnIs6CPgF3Bcj/wk95spTXRwmN1fazNDhS6CqI=; b=cFEfege+QW2ocxCIl0viMu9p5R5IKZ6YlbGMvQk6rcGF51nPXJ0h6L3gPFPuJUAspw GRy7oUlOjhYvy0H55UgP8kKoP1fAskBfYkCoJeUuS2+SoU7EuyFLmwr4XlKQaSbw5Lab MZfuVsQLwCmnh6GJaDbOlRV0yHIVwM6mUtwqw= 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=K5/2/QnIs6CPgF3Bcj/wk95spTXRwmN1fazNDhS6CqI=; b=JjJyLU6kAgljgNDj/6wvz0FKOdtFVKyLG9HIE+CcPmZnLMatOpITsPh714AEcQObo7 ABB7GTQa3V/xPY5Qkm6MFreHHO+l4go2okx/TOSZm1P9DmGFnYn/0JD2SOHC2h+Ielrp HrJUOK3RDhT8smNGPY3m3HaPbflTZ/nT1xbB+WMXWS+GzK7StlNpgAEVPE90ivjMj/n+ Y/1L6ZAJY7daBSMvFC8KfiHdNqRyjAyI74R4T9jN/nWkRojRpE52wzoPdJW7/jIfRy70 qENAehv7skYhKdMXgj3Qjm1Q7sILqetzxjPwrBxVX6koZaOiQgRlJqU5NOr1HEPD3l3T xzvQ== X-Gm-Message-State: ALKqPwcsZb6VyOogwi/JBYuVy3Os9GCvAOXzPx6V92PKh2H/2TJNu42o aJWRrB4RXkAuvvR4VwcNGOehtw== X-Received: by 2002:a63:ac1a:: with SMTP id v26-v6mr4585231pge.105.1527136652697; Wed, 23 May 2018 21:37:32 -0700 (PDT) Received: from localhost ([122.167.129.138]) by smtp.gmail.com with ESMTPSA id w12-v6sm51116461pfi.158.2018.05.23.21.37.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 21:37:31 -0700 (PDT) Date: Thu, 24 May 2018 10:07:29 +0530 From: Viresh Kumar To: Sudeep Holla Cc: Ilia Lin , 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 v11 1/2] cpufreq: Add Kryo CPU scaling driver Message-ID: <20180524043729.3bzk5dazstoq6xfb@vireshk-i7> References: <1527079139-3558-1-git-send-email-ilialin@codeaurora.org> <1527079139-3558-2-git-send-email-ilialin@codeaurora.org> <1ec7645d-72b6-5a1a-48c3-831a3c484a0e@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1ec7645d-72b6-5a1a-48c3-831a3c484a0e@arm.com> 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 23-05-18, 14:25, Sudeep Holla wrote: > On 23/05/18 13:38, Ilia Lin wrote: > > +static int __init qcom_cpufreq_kryo_init(void) > > +{ > > + /* > > + * Since the driver depends on smem and nvmem drivers, which may > > + * return EPROBE_DEFER, all the real activity is done in the probe, > > + * which may be defered as well. The init here is only registering > > + * a platform device. > > + */ > > + platform_device_register_simple("qcom-cpufreq-kryo", -1, NULL, 0); > > + return 0; > > +} > > +module_init(qcom_cpufreq_kryo_init); > > Do you need this at all ? See below on how to eliminate the need for this. > > > + > > +static struct platform_driver qcom_cpufreq_kryo_driver = { > > + .probe = qcom_cpufreq_kryo_probe, > > + .driver = { > > + .name = "qcom-cpufreq-kryo", > > + }, > > +}; > > +builtin_platform_driver(qcom_cpufreq_kryo_driver); > > Use builtin_platform_driver_probe and remove qcom_cpufreq_kryo_init > or use module_platform_driver_probe if it can be module. I agree with this, just use a single init routine to register both the driver and device. -- viresh