From: Arjan van de Ven Subject: Re: [PATCH 1/2] gigaset: return -ENOSYS for unimplemented functions Date: Sat, 7 Mar 2009 16:35:22 -0800 Message-ID: <20090307163522.1165494b@infradead.org> References: <20090307-patch-00.tilman@imap.cc> <20090307-patch-01.tilman@imap.cc> <20090307142609.2995bb3d@infradead.org> <49B30FC4.5040305@imap.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Paul Bolle , Hansjoerg Lipp To: Tilman Schmidt Return-path: Received: from casper.infradead.org ([85.118.1.10]:46905 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751823AbZCHAev (ORCPT ); Sat, 7 Mar 2009 19:34:51 -0500 In-Reply-To: <49B30FC4.5040305@imap.cc> Sender: netdev-owner@vger.kernel.org List-ID: On Sun, 08 Mar 2009 01:22:28 +0100 Tilman Schmidt wrote: > Am 07.03.2009 23:26 schrieb Arjan van de Ven: > > On Sat, 7 Mar 2009 23:10:57 +0100 (CET) > > Tilman Schmidt wrote: > > > >> From: Paul Bolle > >> > >> A number of functions in the usb_gigaset module will return > >> -EINVAL if CONFIG_GIGASET_UNDOCREQ is not set. Make these return > >> -ENOSYS as it's more specific and it might make it easier to see > >> (from userspace) why these functions actually fail. > >> > >> Impact: some error return codes changed > > > > ENODEV is what would be more appropriate. > > Not at all. ENODEV means "no such device", which would be quite wrong. > The device does exist and is in all probability working perfectly > fine. It just doesn't implement that particular ioctl. then -ENOTTY is the right answer -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org