Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp525065rwb; Wed, 10 Aug 2022 12:10:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR6i566jERnswGKBZAMCCW87FXtsj9kX5GEfiWAHVUILgZEVEV4q015fzhjJcL0PlZXf53Ge X-Received: by 2002:a17:907:2703:b0:730:c506:53dd with SMTP id w3-20020a170907270300b00730c50653ddmr21019652ejk.761.1660158656454; Wed, 10 Aug 2022 12:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660158656; cv=none; d=google.com; s=arc-20160816; b=NwcfHXmedTaHllJoHtym824YOYBvZiwtsd0zNl7otBI/zwBwSp6OSc0zoeP1E4btLJ n62hCrNdK1ybP9AOQLaRGOwj9DQUo8/S544zU63rHcm9F4l9sp7yyxY4BWX1gm0ih+vH 0sDkjf2bLyZUK+L53w58rL7GelwCtrU8Bo1x8nOIfFhosX3AnQcXwtyA0+prOJo9a1pc eYqG8ipJ72EfnnyVjcPfZ99iTH3KuE5q1kPJ+tTETVAyGekkV7WSf/MQj3CgNWj0GePG 2a/o7uCyKRx+GFVckqOq7XuhukSOdOXdmFcPlKHvyFkg5ksiVp6MJTbXfQTE6GwPP/aq cx6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=1UG/xvzQUwdgtO7Uw9x99L7xDpvMDEn6VrydU4KGUro=; b=la39hSj5NyivV5nVMo7+o2zBdL0lGX2Yg0fDebCcUoHXKutVzn2Jy1V1ZeChbYjYcb IOWd/xqJDWf9DIN+iwHrznlHkgmKjIhRVYQrEEhbyvKuHinpbl/azs+PiQqolyd9xe/c vYFfk7rqlFdRCsQo1STClhwd7CV9zSa3JP7vMKN06VOZNYhgiEhrRoz/hYDHhEEbaKPm 9PX1ZQ8SEduIVGH4A/yLBugHcgwQ/QeHyJA4uPDHyAZiY2ltj/X6wfk6n+/Y+5MSULvE kRngyBsfxv8JTwwfLFGIfK6RfsSU9Lrk4kPfYVI9aDIdTjHi/m6Q8RTaoQpMtLjbjC66 S+bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o4-20020aa7c504000000b0043ba4ea320esi10880876edq.171.2022.08.10.12.10.28; Wed, 10 Aug 2022 12:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232392AbiHJTGe (ORCPT + 99 others); Wed, 10 Aug 2022 15:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231608AbiHJTGb (ORCPT ); Wed, 10 Aug 2022 15:06:31 -0400 Received: from smtp.smtpout.orange.fr (smtp-14.smtpout.orange.fr [80.12.242.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D6371056A for ; Wed, 10 Aug 2022 12:06:29 -0700 (PDT) Received: from [192.168.1.18] ([90.11.190.129]) by smtp.orange.fr with ESMTPA id Lr2AooOzc0DonLr2Aorj5l; Wed, 10 Aug 2022 21:06:28 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Wed, 10 Aug 2022 21:06:28 +0200 X-ME-IP: 90.11.190.129 Message-ID: <59ae9a23-4314-dc52-92da-78cefa0eb919@wanadoo.fr> Date: Wed, 10 Aug 2022 21:06:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] ASoC: Intel: kbl_rt5663_max98927: Simplify clk_get() usage Content-Language: en-US To: Mark Brown Cc: Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Jaroslav Kysela , Takashi Iwai , Harsha Priya , "Subhransu S. Prusty" , Vinod Koul , Sriram Periyasamy , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, alsa-devel@alsa-project.org References: <55e59c4792d64ff6336fcaa85ec15590553e9d63.1659903516.git.christophe.jaillet@wanadoo.fr> From: Christophe JAILLET In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 10/08/2022 à 15:50, Mark Brown a écrit : > On Sun, Aug 07, 2022 at 10:18:54PM +0200, Christophe JAILLET wrote: >> If clk_get() returns -ENOENT, there is no need to defer the driver, -ENOENT >> will be returned the same for each retries. >> So, return the error code directly instead of -EPROBE_DEFER. > > Are you *sure* that this is the case on Intel platforms where we don't > have a full firmware description for clocks and therefore can't identify > cases where we expect a clock to at some point to become available. No, I'm *not* sure. This looked odd enough to deserve a patch proposal, that's all. (based on my grep and coccinelle scripts, this is the only place in the kernel where the result of a clk_get() is handled that way) There are many intel.com in cc:. Would be nice if s.o. could confirm if the patch is valid or not. CJ