Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969906AbdIZSIj (ORCPT ); Tue, 26 Sep 2017 14:08:39 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:48303 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967470AbdIZSIi (ORCPT ); Tue, 26 Sep 2017 14:08:38 -0400 X-Google-Smtp-Source: AOwi7QDAWUh8FfgEqwaXWRD3DLETxly7I1VjVT5h/YfN16Q5Whbam4gSuwGYcCJJuf4Fh2zabCqiGA== Subject: Re: [PATCH v4 2/2] staging: ion: create one device entry per heap To: Mark Brown , Benjamin Gaignard Cc: sumit.semwal@linaro.org, gregkh@linuxfoundation.org, arve@android.com, riandrews@android.com, dan.carpenter@oracle.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-api@vger.kernel.org References: <1506427625-19202-1-git-send-email-benjamin.gaignard@linaro.org> <1506427625-19202-3-git-send-email-benjamin.gaignard@linaro.org> <20170926161701.aegnk3kb3fpgz4uy@sirena.org.uk> From: Laura Abbott Message-ID: Date: Tue, 26 Sep 2017 11:08:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20170926161701.aegnk3kb3fpgz4uy@sirena.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 856 Lines: 21 On 09/26/2017 09:17 AM, Mark Brown wrote: > On Tue, Sep 26, 2017 at 02:07:05PM +0200, Benjamin Gaignard wrote: > >> version 4: >> - add a configuration flag to switch between legacy Ion misc device >> and one device per heap version. > > Should this be a switch or should it just be enabling and disabling the > legacy device with the per heap ones always availalbe? I can't see that > the new devices would do any harm or have trouble interacting with the > per heap ones. Being able to have both enabled would make things easier > for userspaces that are moving to the device per heap interface. > Agreed. We should be enabling the new interface unconditionally. The old /dev/ion interface should coexist to allow for backwards compatibility but keep it under a Kconfig to allow it to be turned off for security or other reasons. Thanks, Laura