Received: by 10.192.165.148 with SMTP id m20csp1788066imm; Sat, 21 Apr 2018 16:14:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+jJuxpRiczvURJ38azHvKjpEYOPJhsrUCTpDxtNn/p1t82a8+2f6tKWwnboc24aDk0jgpZ X-Received: by 10.99.117.12 with SMTP id q12mr11996151pgc.395.1524352463650; Sat, 21 Apr 2018 16:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524352463; cv=none; d=google.com; s=arc-20160816; b=0+dhhrmDOt2GGe/T0d7cs/134L3OxcCEADSFgCsoc8sObb+WktwaJiniZh9ArhELeG fAW6rMds4NtHKZiOHmutTUDhyu3O2tMoyAdn3a89W8Cqlj/BMHsThdQnDnVS7okh1MfJ Q1LG62+eauMx82sg9KoXtZ6jM3EBJutTGcOUmaVgxdA1ddhjrtyCS/OoBTSX2MUsnoYl 5JJZfpVuhQTxsYfBzPI/bJjLUUNQyHNslsQxG4W5loIO4P/VNVNie5M5Dcyf6fXCXVSE nOIEbVmGU2ZcVRMN7OGkaY2JufMFdAzxrdwbaZnEbQCj794EyxsPNxmAEzykK6yCUrAG fRJw== 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:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=1yYbwfWNr5FZYcJ65JF8yWOl28+AXZ77Za9W4LGBK8Q=; b=YpWhUEjefLQ59pyk5Elj/vkYlTOIJaZ08qIiA21XkN7yiTSHb79mnge6rJfmqL6v86 grcwvYOR4DX0/k1sthES6HKKDjDTH0yRbYecOeRCg3O4fwAIM92T6FZxrGIbJaSbamWg 67rcNpl+W3xQ+pxZ4fKTeoLeDGsujG3BXvHPMfS5zK1mDbLc9MTZCWxo8CEv/p7EtrKt /kCIkwpbroiwgMaMqFBbOzEGhdgVwdv4hrUyUX4S7Noe/cRDpwYCkbZAVV8GL2nGQxTG QMYWAcHqcSeKrYT4RND4QTGlqljmqRZQsCYBPuVFW8Ckcpzi2+FXBNSCrp0HXIMvjtSk hXEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=REF3rO5o; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5-v6si8467093plt.209.2018.04.21.16.13.46; Sat, 21 Apr 2018 16:14:23 -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=@broadcom.com header.s=google header.b=REF3rO5o; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753320AbeDUXK7 (ORCPT + 99 others); Sat, 21 Apr 2018 19:10:59 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:46385 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753248AbeDUXK5 (ORCPT ); Sat, 21 Apr 2018 19:10:57 -0400 Received: by mail-qk0-f195.google.com with SMTP id s70so12357388qks.13 for ; Sat, 21 Apr 2018 16:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1yYbwfWNr5FZYcJ65JF8yWOl28+AXZ77Za9W4LGBK8Q=; b=REF3rO5oD43Cb0Q45hftCrcNCnwtrG0xqp/4F9dLuNgGN5rRcu8GcYsfaAPwxpk7TI 56cjG+g4g154WhElA46A5mtOH7alxG0C7AA4q3V6WGwM/eKVnkPntKM0nQ1U9DAU/HPq moZXC71KV7BnMiG+M24VxZm3aHHziiPA+REiA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=1yYbwfWNr5FZYcJ65JF8yWOl28+AXZ77Za9W4LGBK8Q=; b=JxlmBpWjw/+yVsEosd8dhrtZiqPUz04uqxHoigOEVZ3f9Q6K/76am6TwLNrCvyBYHx 1s5HZRlAQO70SlVgoCqG/BgPegOr7mRiThHR8IzcySYCbiXsFnl4oYlShMHq8qaX85E+ 3gCtX6qI1ALvnCoJjrzRaEB5oUEm/GSbWYBMDQiefD9Ty9hNFnKsAkYEFIOOQNJbYdnq Rbs7yQQCsC/CWxmmXIURVxAwWF7xZC0y7MOF884BO+7i49bxc8yFOdJVk6xpeRJUOBXH qp6cYepCUgf8LGYzMerBfDHwG5Tg8ZFgFagpOmbSGYVKzpm2XS1wdqt3MQn7PvNlGUY5 K+Fw== X-Gm-Message-State: ALQs6tDb8mz5Ce6hPolClikkN318B/TjMp5zIvF2yrRV95z7z7V3Zgs3 RLo3MxkOn2gls7k3c9axkmJqPA== X-Received: by 10.55.170.146 with SMTP id t140mr16470112qke.275.1524352256535; Sat, 21 Apr 2018 16:10:56 -0700 (PDT) Received: from [10.10.116.38] ([192.19.218.250]) by smtp.gmail.com with ESMTPSA id t13-v6sm8409694qte.77.2018.04.21.16.10.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Apr 2018 16:10:55 -0700 (PDT) Subject: Re: [PATCH] Enable the clock before calling clk_get_rate(). To: Stefan Potyra , Mark Brown , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Gorski Cc: ldv-project@linuxtesting.org, sil2review@lists.osadl.org References: <20180419130358.r7dva6owy2izyfus@agrajag.zerfleddert.de> From: Florian Fainelli Openpgp: preference=signencrypt Autocrypt: addr=florian.fainelli@broadcom.com; prefer-encrypt=mutual; keydata= xsBNBFPAG8ABCAC3EO02urEwipgbUNJ1r6oI2Vr/+uE389lSEShN2PmL3MVnzhViSAtrYxeT M0Txqn1tOWoIc4QUl6Ggqf5KP6FoRkCrgMMTnUAINsINYXK+3OLe7HjP10h2jDRX4Ajs4Ghs JrZOBru6rH0YrgAhr6O5gG7NE1jhly+EsOa2MpwOiXO4DE/YKZGuVe6Bh87WqmILs9KvnNrQ PcycQnYKTVpqE95d4M824M5cuRB6D1GrYovCsjA9uxo22kPdOoQRAu5gBBn3AdtALFyQj9DQ KQuc39/i/Kt6XLZ/RsBc6qLs+p+JnEuPJngTSfWvzGjpx0nkwCMi4yBb+xk7Hki4kEslABEB AAHNKEZsb3JpYW4gRmFpbmVsbGkgPGZhaW5lbGxpQGJyb2FkY29tLmNvbT7CwQcEEAECALEF AlPAG9YXCgABv0jL/n0t8VEFmtDa8j7qERo7AN0gFAAAAAAAFgABa2V5LXVzYWdlLW1hc2tA cGdwLmNvbY4wFIAAAAAAIAAHcHJlZmVycmVkLWVtYWlsLWVuY29kaW5nQHBncC5jb21wZ3Bt aW1lCAsJCAcDAgEKAhkBBReAAAAAGRhsZGFwOi8va2V5cy5icm9hZGNvbS5jb20FGwMAAAAD FgIBBR4BAAAABBUICQoACgkQgTG1xCm8ZqD+Dgf9HhhzqvJYIPomNeg+ll7/TbzWb871E+HQ TaufJQFQwLEbgdFSZO2uj4UqfDpCyTwtHTVMJogWt3pCAE1sadeIY8OlT6918ofKIl8AiHj2 BlfL7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QyzdCsuJ0K1 qe1wZPZbP/Y+VtmqSgnExBzjStt9drjFBK8liPQZalp2sMlS9S7csSy6cMLF1auZubAZEqpm tpXagbtgR12YOo57Reb83F5KhtwwiWdoTpXRTx/nM0cHtjjrImONhP8OzVMmjem/B68NY++/ qt0F5XTsP2zjd+tRLrFh3W4XEcLt1lhYmNmbJR/l6+vVbWAKDAtcbQ8SL2feqbPWV6VDyVKh ya/EEq0xtf84qEB+4/+IjCdOzDD3kDZJo+JBkDnU3LBXw4WCw3QhOXY+VnhOn2EcREN7qdAK w0j9Sw== Message-ID: Date: Sat, 21 Apr 2018 16:10:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180419130358.r7dva6owy2izyfus@agrajag.zerfleddert.de> Content-Type: text/plain; charset=windows-1252 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 +Jonas, On 04/19/2018 06:03 AM, Stefan Potyra wrote: > Found by Linux Driver Verification project (linuxtesting.org). Please use a commit subject which matches what was used before: git log --no-merges --oneline drivers/spi/spi-bcm63xx-hsspi.c 378da4a65f3a spi/bcm63xx-hspi: fix error return code in bcm63xx_hsspi_probe() c3c25ea712c9 spi/bcm63xx-hspi: Fix checkpatch warnings 0b85a8421790 spi: bcm63xx-hsspi: Export OF device ID table as module aliases 7ab2463550e2 spi/bcm63xx-hsspi: allow for probing through devicetree ff18e1ef04e2 spi/bcm63xx-hsspi: allow providing clock rate through a second clock f4d862237715 spi/bcm63xx-hsspi: add support for dual spi read/write 14ac00e033c5 spi: drop owner assignment from platform_drivers e4745fef5595 spi: Remove unneeded include of linux/workqueue.h 1480916ebd6f spi: bcm63xx-hsspi: Use SIMPLE_DEV_PM_OPS macro aa0fe82629f1 spi: Use reinit_completion at appropriate places 937ebf9cd34a spi/bcm63xx-hsspi: fix pm sleep support 7d255695804f spi/bcm63xx-hsspi: use devm_register_master() dea5de1b37c0 spi/bcm63xx-hsspi: check result of clk_prepare_enable b1bdd4f883e1 spi: bcm63xx-hsspi: Use devm_clk_get() 87917528cc92 spi: bcm63xx-hsspi: checking for ERR_PTR instead of NULL 142168eba9dc spi: bcm63xx-hsspi: add bcm63xx HSSPI driver > > Fixes: 142168eba9dc spi: bcm63xx-hsspi: add bcm63xx HSSPI driver Please include the commit title in ("") as is indicated in the SubmittingPatches document. Thank you > Signed-off-by: Stefan Potyra <Stefan.Potyra@elektrobit.com> > --- > drivers/spi/spi-bcm63xx-hsspi.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c > index cbcba614b253..46cd9b683d22 100644 > --- a/drivers/spi/spi-bcm63xx-hsspi.c > +++ b/drivers/spi/spi-bcm63xx-hsspi.c > @@ -352,6 +352,10 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev) > if (IS_ERR(clk)) > return PTR_ERR(clk); > > + ret = clk_prepare_enable(clk); > + if (ret) > + return ret; > + > rate = clk_get_rate(clk); > if (!rate) { > struct clk *pll_clk = devm_clk_get(dev, "pll"); > @@ -364,10 +368,6 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev) > return -EINVAL; > } > > - ret = clk_prepare_enable(clk); > - if (ret) > - return ret; > - > master = spi_alloc_master(&pdev->dev, sizeof(*bs)); > if (!master) { > ret = -ENOMEM; > -- Florian