From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH] PM / OPP: -ENOSYS is applicable only to syscalls Date: Fri, 22 Apr 2016 14:42:31 +0200 Message-ID: <60895590.AIt8jZZHh3@vostro.rjw.lan> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: Received: from cloudserver094114.home.net.pl ([79.96.170.134]:49347 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752524AbcDVMji (ORCPT ); Fri, 22 Apr 2016 08:39:38 -0400 In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Viresh Kumar Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, arnd.bergmann@linaro.org, andrew@lunn.ch, gregory.clement@free-electrons.com, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com, thomas.petazzoni@free-electrons.com, linux-kernel@vger.kernel.org On Friday, April 22, 2016 08:46:51 AM Viresh Kumar wrote: > Some of the routines have use -ENOSYS, which is supposed to be used only > for syscalls. Replace that with -EINVAL. -EINVAL specifically means "invalid argument". What about using -ENXIO instead?