From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753202AbbIRKIp (ORCPT ); Fri, 18 Sep 2015 06:08:45 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:63015 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752229AbbIRKIh (ORCPT ); Fri, 18 Sep 2015 06:08:37 -0400 From: Arnd Bergmann To: Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, y2038@lists.linaro.org, Mauro Carvalho Chehab , linux-api@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: Re: [PATCH v2 7/9] [media] v4l2: introduce v4l2_timeval Date: Fri, 18 Sep 2015 12:08:25 +0200 Message-ID: <4764782.hLp7DObtr0@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <55FBDEDC.8040204@xs4all.nl> References: <1442524780-781677-1-git-send-email-arnd@arndb.de> <9019880.VVdOR6WRt1@wuerfel> <55FBDEDC.8040204@xs4all.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:AYpQy88FD6VVwjDKl/R31M8ClF75lOiiNHIjnhi4K8+eGE5p/K4 twsD0dyy7MyCWnrtebRBHyk1zATcXAjrNqC9Pq4f20/n1pqpAPG2tFBnJqNSekAeelMM1YY kT0RAz7a3x39FZoa28XfcszP1Wb3r+7l57V+go9rjwwZBRAuye03FbFByvyEYZE1OWu1dUC nb4KL/8v8nEfSUYWfm4tA== X-UI-Out-Filterresults: notjunk:1;V01:K0:0FAvnmoCR3Q=:o9ucdBwhQCXzIREqsVnW5L 8clRQOoz+O+MctvffbtAE1YRAD8ILesv7bUOivB4pCh3Qfbyzdl+bizAGSPGFq3dTn+ir1gbs Io0Lf64gCJ38VOAVxQ4DXiqp+nvvVHBZIvYEW7/PZgKOb+2GPAPEZ9Ngni3g6v7xocC6Jh3JE QKrZNMjchAokYU2sN8fgLznZC4dlAf0dKCPw4MytlJMsTxmBWrEtEyMHnJlFhpeyjFY94X3pX OiMEMqlbvfJ0dZKVGfUHR5zxBosCljP2nDUF5b7od509lsGUGlNT/+yBjnVL84lpU1+4/tqDJ pQzsq+QTK/VRA9TLFt+SJA4g4k32n9ZuYWH/ethVXXHDE2HP5j1q3w9Oe+r8BtmgoEmTplV39 xBTfGgEgvApBaTCR6hg9BWM2yhqO4DHm2KKC83b8jveVz+vSrVF7QhBaxHk8MEYHK9T7RBhm8 pKa7w82SEYUBdV2aqbSG03RggHQw5oGyS5NchtvclbHjm/X6iQU8GBhn77CU21bcv1olvIBHw X4w94l7u0hJWDUpqoAzDMFHVuTT1cTNO7wH/sW+xbPIpfxDTh4R7k9x3HBvvYY+UDWPn2Gdyd S/qomsY5YuAUmlI6AAM9F64Fe0M6dzhEZJD7JFuFt5O9Wey422wr7Fds+ikA9fJTFyjLHit6h PmeMSypD7oKWQIbf4zj7icJcxCePT9UkzIgnYiY0dMmIqsnsy9usfLfMTOZqJmNtls+97B01k yXjAEYE+36ta231e Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 18 September 2015 11:52:28 Hans Verkuil wrote: > On 09/18/15 11:43, Arnd Bergmann wrote: > > On Friday 18 September 2015 11:27:40 Hans Verkuil wrote: > >> Ah, OK. Got it. > >> > >> I think this is dependent on the upcoming media workshop next month. If we > >> decide to redesign v4l2_buffer anyway, then we can avoid timeval completely. > >> And the only place where we would need to convert it in the compat code > >> hidden in the v4l2 core (likely v4l2-ioctl.c). > > > > Ah, I think I understood the idea now, I missed that earlier when you mention > > the idea. > > > > So what you are saying here is that you could come up with a new unambiguous > > (using only __u32 and __u64 types and no pointers) format that gets exposed > > to a new set of ioctls, and then change the handling of the existing three > > formats (native 64-bit, traditional 32-bit, and 32-bit with 64-bit time_t) > > so they get converted into the new format by the common ioctl handling code? > > Right. Drivers only see the new struct, and only v4l2-ioctl.c (and possible > v4l2-compat-ioctl32.c) see the old ones. > > BTW, I will probably pick up patches 4 and 6 for 4.4. That should help a bit. Ok, thanks! I guess it's up to Mauro to pick up the first three patches? As I don't see anything more to do for me here until you've had the discussion about the new format, I'll move on to another subsystem now. I have around 70 patches waiting to be submitted, plus the system call series. Arnd