Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp894467imm; Wed, 4 Jul 2018 07:46:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeiJC9TcCLt4siKZgkbOgRs1nH8BoFTTQgQmPo1CCgwyfIjt0eDpR3jnQpzXfHbzjlC55dn X-Received: by 2002:a17:902:b903:: with SMTP id bf3-v6mr2383996plb.160.1530715615818; Wed, 04 Jul 2018 07:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530715615; cv=none; d=google.com; s=arc-20160816; b=GTY2r09xPaoNCqsuI+HHhSLKRkID/0l4UTdq09M8qn9AF033kOrjKZGWUTFaoa0Y+J e78DkCjvyDrPVhK9RdAQzxx8KykfJ+wlos9sHO5VcRf6gF2nyXWr7jAUiNmJ8agqXLuR /7YFf5uA8X6TQlDelauSGpjkLdrBwU1/PXffK1l14+WmBuZb9oAEftDJwQkFnPYgk2ce YqPeu3iJE+GXN5bOhGN+yiiE7aJAObRR8T/ergrORHVjgsTiFHNILHWiN2xR4n+lWX3F Ut7B49rs9s8dwM21u04NGcN/G5pfrPSg6svJgNpzru/+Wf3dDgIXk0nPTC6aPDZyiMhI jnaQ== 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=dzIlfSHuJrKKjAWezaKU03OxqkDGc2aeAH1z4IEb4dI=; b=KNQY5hdUSeY6PoX7qd9arZKspow0PmvQA+Uk75CU0rZTexmVPew/0gAj/QdcW28mpk mZCwRwYnb82Jmh6CliyRdZF7AyWrVUAioL3iftADbq3wCylRAmckKLg8ayk/73UjIsCV p89Z4ITlO/v3dRJPH2+V2mkZnnFNqTWUB5ogSoaz0+Xv9I7jvltai+j1Hnkk5S8EbLx/ jMu0WTLtx2LMvKg5qzCztjVCveEuuuKxapsfpm0jKYgKTTNlpNWncYlVMzdvxqsRecoA gDB1fiCXEBE4jTg5bMf6TdJDJvcbG3LsCXuMseuXgw9vmpGemUAfCLIyP9EU50KFpYtJ CVQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Pwe0WO1g; 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 t17-v6si3583855plo.343.2018.07.04.07.46.41; Wed, 04 Jul 2018 07:46:55 -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=Pwe0WO1g; 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 S1752786AbeGDOqG (ORCPT + 99 others); Wed, 4 Jul 2018 10:46:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:47958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173AbeGDOqF (ORCPT ); Wed, 4 Jul 2018 10:46:05 -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 1216B21AA6; Wed, 4 Jul 2018 14:46:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530715564; bh=bvxzE+UQZmDtXs1tiMS8jPcndb1kHodE8Bw1EmDQMiE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Pwe0WO1gSCPUk47+a3pZYDSJ+xbXiZVUk5WBUt21M/9BgekT7FMS4EicaenQflKPr cBv98kJ3wuoIMCWyCNxKoCg0yaMk6hbp04s1ePyuDk1cYHhkeqRIrYOVDCHzxYzXo8 +X8AAlV1yWg1domR69JdvE4FUM9jNUwqdsjcnD3w= Subject: Re: [PATCH v4 6/6] crypto: qcom: Add ACPI support To: Vinod Koul , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bjorn Andersson , Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Stephen Boyd , Timur Tabi References: <20180704114427.29953-1-vkoul@kernel.org> <20180704114427.29953-7-vkoul@kernel.org> From: Timur Tabi Message-ID: Date: Wed, 4 Jul 2018 09:46:01 -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: <20180704114427.29953-7-vkoul@kernel.org> 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/4/18 6:44 AM, Vinod Koul wrote: > + if (has_acpi_companion(&pdev->dev)) { > + rng->skip_init = 1; > + } else { > + rng->clk = devm_clk_get(&pdev->dev, "core"); > + if (IS_ERR(rng->clk)) > + return PTR_ERR(rng->clk); > + > + rng->skip_init = > + (unsigned long)of_device_get_match_data(&pdev->dev); > + } There is a device_get_match_data() function, if you want to be consistent between ACPI and DT.