Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2229804pxb; Sat, 28 Aug 2021 08:16:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAiAbjcNzSzJLTbCB+MQzbe/7MFFEpGWl3SqHCenyt+OlvX+tSk57Xlw3vNq1gqM4VHOOC X-Received: by 2002:a17:906:3fc8:: with SMTP id k8mr15929686ejj.217.1630163799114; Sat, 28 Aug 2021 08:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630163799; cv=none; d=google.com; s=arc-20160816; b=l7s/XZoIUYVtak+r/PPUTotowy839ou5jFof/kB8vmxpu+uWnnGIRAs7cUAd47RbDG RGqmBzBZaz9ttw2Md0pseuF9AyvRJkZCxm8cVBTWhQDzPUTDujOncBYme61XROKxtbMk Y83M8PJd+wiolk/BLN9KaECvwTOiwEVq0Vfy27YcPJaDmmv+J0HxDYxnk4/o7GpAeeJz WoQDOD6iMZ3f0EsbYDN6MY076LH1CT+qPEtJp1Uq2y3lhVBwsU9zdnUWCOmSq0Kx/C8a Sui+7vQREyxFa7FOirHKrzCjJQhQC/kBXE/1w32Vs+AfBQlUh+Q3xqDz7MBd4icQzLlI yhIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=rMGshX0TVQ3YGzoyCu60oRuRd4fkXKJNvrjbQOsAwiU=; b=vQfjreq7tENRtzszMHhPaUATOU5fSsVktATuzu2EwBUpV5UMr9bp2iKeQt03mJrxz2 qfMJbLTm1yhz1bBjqvh0KjbDM0MEvtIT4jH+ezqYcmQhHecL2/ZCDin26M1gx2epD7xc gzAaEPXYewtLpgbMhnK8Li4eD8nnwZH/Fzr+chTL9QPLWVe6xAuzIYEnpyKwhZgUB/3I XijgfGdKYp1nwuVIfcxbcL6rkGUdQ9f0KXbtg07R9ZhG2zolQYV5l2NePhxoM2Nbh02I VtfT2bKjkCTOi1E2e6PESiG1xp7oXPUvmC7uu3awlwhFJz72LvZxsWngd4IECraMo4Bw SCYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si9206218edx.80.2021.08.28.08.16.09; Sat, 28 Aug 2021 08:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233953AbhH1PMi (ORCPT + 99 others); Sat, 28 Aug 2021 11:12:38 -0400 Received: from netrider.rowland.org ([192.131.102.5]:46581 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S230060AbhH1PMi (ORCPT ); Sat, 28 Aug 2021 11:12:38 -0400 Received: (qmail 288731 invoked by uid 1000); 28 Aug 2021 11:11:46 -0400 Date: Sat, 28 Aug 2021 11:11:46 -0400 From: Alan Stern To: Evgeny Novikov Cc: Greg Kroah-Hartman , Andrew Lunn , Mike Turquette , Kirill Shilimanov , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: Re: [PATCH] usb: ehci-orion: Handle errors of clk_prepare_enable() in probe Message-ID: <20210828151146.GA288644@rowland.harvard.edu> References: <20210825170902.11234-1-novikov@ispras.ru> <20210825172937.GD192480@rowland.harvard.edu> <20210826152438.GB228824@rowland.harvard.edu> <303a5695-e0c4-1cae-ee1f-6f34a9717b77@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <303a5695-e0c4-1cae-ee1f-6f34a9717b77@ispras.ru> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 28, 2021 at 01:47:12PM +0300, Evgeny Novikov wrote: > Hi Alan, > > On 26.08.2021 18:24, Alan Stern wrote: > > I don't know whether these errors can occur or not. To find out, you need to > > ask someone who knows more about the clock framework. > > > > On the other hand, the fact that the functions do return an error code means > > that they expect callers to check its value. In fact, whoever changed the API > > should have gone through all the callers to make sure they did so. > > > > (Let's put it this way: If those functions can return an error, we should > > check the return code. If they can't return an error then they shouldn't be > > defined to return an int, so the API should be changed.) > > > > So on the whole, I think making these changes would be a good thing. At the > > very least, it will help make all the different EHCI and OHCI drivers > > consistent with each other. > Though I may be wrong, but after the discussion with Dan, it does not seem > that we can expect any considerable changes in the clock API and support > from the static analysis tools soon. So, if you still would like to see > corresponding fixes in EHCI and OHCI drivers, I can prepare them. Yes, please do so. Alan Stern