Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp892500imm; Sat, 7 Jul 2018 11:06:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe05dguYgv5nS96u6pA0SMoyv1hCQ1p3GpvxqmctSscJp7W7EFo/W32mAGBJe89uPeIk/hd X-Received: by 2002:a65:550d:: with SMTP id f13-v6mr13686149pgr.340.1530986794606; Sat, 07 Jul 2018 11:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530986794; cv=none; d=google.com; s=arc-20160816; b=Qoyaj58e5VBUgW5RtiyvI84UKPuEzf5CbdkmaExKUwLRcn2IUkLOmSnvWeDNPt7zwc DvD/iJVecf8gPEDBCZj15AM2whgy7EUmuax479T8AGUVc8qFq/Zzj+xxNb3KTGgCKk+w VrBr2T10nLum4Ks7SMzjWQVLxsn1RkbjSn/Rz5wZ6ARgfT1y5YvxSbV+rqocqvY6qhMI J4F1XGXsQyXE47/QssIyNEGlTcBpXw0IDvQ/pcl0bjf8HP+bj/lIR4eSib6hhwsD7q2P HLcqFJPtfK2yyyvuP7L1695cIYEASD7e73cTEAjSvfgZfSMKjJwormNumFr/Wwsg15lt IhGw== 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:dkim-signature :arc-authentication-results; bh=Ncxh0XbGTMZUNidZ+f9H3IDAtQPeGq5H/i17eaTcVuE=; b=MTX6qR8Pl1FZCjJlitddkkVQn13YUWigU36c+HjhPe/Sc9GqOf9RRmOMHFJOf+VVU7 sL9xQ/SvwaAAoBFoMS1eqzPOFrrHmylQI3jnTGUatG2+oCY5zuSf6HdbxzkEvKd2jMiE vWP9xp9prZDb54Fs0qRl3TmARUQqpO0pUmdtPPYh6sCyn5tZr+b2CiSSafjYRgtDVOpS J95BGuns51Bv6wp9ahM8BZCjGBV05Iri5YrHTUoGDT5nnpHjBwbtKq3ExGnTl+5RCVWz B9I2CnnrlMNDZlSXKE3naJv8vH17ufFn/zMbacN68Xr4r5jTNKRmrKYpdKt2wskTO/Az vCOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b5Flox8j; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t188-v6si4713603pfd.148.2018.07.07.11.06.19; Sat, 07 Jul 2018 11:06:34 -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=@kernel.org header.s=default header.b=b5Flox8j; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932821AbeGGSFl (ORCPT + 99 others); Sat, 7 Jul 2018 14:05:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:38060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932182AbeGGSFj (ORCPT ); Sat, 7 Jul 2018 14:05:39 -0400 Received: from [192.168.1.125] (cpe-24-28-70-126.austin.res.rr.com [24.28.70.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 21B822098B; Sat, 7 Jul 2018 18:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530986739; bh=Zli7TVRvX9531KMg6QVfbng9Wi1DUi9f7do5QSjZa8o=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=b5Flox8jedcOYqBhlEpwfpbxFjIpLMN1ZhJTkvZB0eVA04ATxfC1KDi4nwVGFKLxc kgTP04VsoGKLyvE3hkJJ/5Yo3rNHF2EuYYsDLPAnV4aJHCS7KYoQToh8ghmTrVas8v n2IjtK/IchzRAHvrCo/H665HooYUYP/lq3uw9KBU= Subject: Re: [PATCH v4 6/6] crypto: qcom: Add ACPI support To: Vinod Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Stephen Boyd , Jeffrey Hugo References: <20180704114427.29953-1-vkoul@kernel.org> <20180704114427.29953-7-vkoul@kernel.org> <20180705060733.GH22377@vkoul-mobl> From: Timur Tabi Message-ID: <38f34817-ff86-06b7-4aab-a009c353a6db@kernel.org> Date: Sat, 7 Jul 2018 13:05:36 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180705060733.GH22377@vkoul-mobl> 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 On 7/5/18 1:07 AM, Vinod wrote: > Yes we can add driver data in ACPI ID as well so code can be: > > if (!has_acpi_companion(&pdev->dev)) { > rng->clk = devm_clk_get(&pdev->dev, "core"); > if (IS_ERR(rng->clk)) > return PTR_ERR(rng->clk); > } > rng->skip_init = device_get_match_data(&pdev->dev); > > Looks much neater. Yeah, I like it. > I will wait for feedback on other patches before updating this. Jeff said it works, so I guess v5 will be good to go.