Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076AbcCXOmi (ORCPT ); Thu, 24 Mar 2016 10:42:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:44757 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbcCXOma (ORCPT ); Thu, 24 Mar 2016 10:42:30 -0400 Date: Thu, 24 Mar 2016 15:42:28 +0100 (CET) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: Benjamin Tissoires cc: =?UTF-8?q?Cl=C3=A9ment=20Vuchener?= , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH 0/2] hid: corsair: Driver simplification and new supported device In-Reply-To: <20160324143750.GA7602@mail.corp.redhat.com> Message-ID: References: <20160324143750.GA7602@mail.corp.redhat.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1166 Lines: 30 On Thu, 24 Mar 2016, Benjamin Tissoires wrote: > I would say you can not do this this way. Even if you believe you are the > only user of the API, there might be someone who uses it, and you will end > up breaking his keyboard. > > Jiri will correct me, but the proper way to follow is to mark the API as > deprecated, make sure your driver uses the deprecated API only for the > K40, and then add the K90 in the driver, without implementing the API. > > After a few months (years?) with your API marked as deprecated, you then > will be able to remove it. This is one of the many reasons we wrote > libratbag in pure user-space, to avoid having to maintain complex API in > the kernel forever. You are right that this is the right way to deprecate the API. Fortunately this one is "officially" marked as testing, so we might be a little bit more relaxed, but still we'd really need to take care not to break users left and right. That's why I first asked whether also the remapping shouldn't be moved to userspace, to make sure that we eventuall start the depreciation of as many features as possible at the same time. Thanks, -- Jiri Kosina SUSE Labs