Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753797AbbBZRip (ORCPT ); Thu, 26 Feb 2015 12:38:45 -0500 Received: from mail-ob0-f181.google.com ([209.85.214.181]:54201 "EHLO mail-ob0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753740AbbBZRin (ORCPT ); Thu, 26 Feb 2015 12:38:43 -0500 MIME-Version: 1.0 X-Originating-IP: [2620:0:1000:157d:784e:32c:6cfb:ed6b] In-Reply-To: <54EEE28F.8000307@collabora.co.uk> References: <1422876388-16540-1-git-send-email-javier.martinez@collabora.co.uk> <1422876388-16540-5-git-send-email-javier.martinez@collabora.co.uk> <20150226005425.GA3101@quad.lixom.net> <54EEE28F.8000307@collabora.co.uk> Date: Thu, 26 Feb 2015 09:38:43 -0800 Message-ID: Subject: Re: [PATCH v5 4/7] platform/chrome: Add Chrome OS EC userspace device interface From: Olof Johansson To: Javier Martinez Canillas Cc: Gwendal Grignou , Lee Jones , Doug Anderson , Bill Richardson , Simon Glass , Jonathan Corbet , Varka Bhadram , Paul Bolle , "linux-samsung-soc@vger.kernel.org" , Linux Kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1583 Lines: 48 On Thu, Feb 26, 2015 at 1:08 AM, Javier Martinez Canillas wrote: > Hello Olof, > > Thanks a lot for your feedback. > > On 02/26/2015 02:13 AM, Gwendal Grignou wrote: >> Olof, >> >> I think the way Javier did it is fine, the 'major' of the ioctl is >> 0xEC, from ':'. >> >> Gwendal. >> > > As Gwendal said, I deliberately changed the IOCTL mayor number to > make it different in both kernels. > > downstream: > > #define CROS_EC_DEV_IOC ':' > #define CROS_EC_DEV_IOCXCMD _IOWR(':', 0, struct cros_ec_command) > #define CROS_EC_DEV_IOCRDMEM _IOWR(':', 1, struct cros_ec_readmem) > > mainline: > > #define CROS_EC_DEV_IOC 0xEC > #define CROS_EC_DEV_IOCXCMD _IOWR(CROS_EC_DEV_IOC, 0, struct cros_ec_command) > #define CROS_EC_DEV_IOCRDMEM _IOWR(CROS_EC_DEV_IOC, 1, struct cros_ec_readmem) > > I can also do what you suggested and keep ':' as the major and use 2/3 > as command numbers but I just think 0xEC is a much nicer major for the > interface to talk with the Embedded Controller and it was available ;) No, changing major is definitely sufficient and an acceptable way to do it -- I had missed that you did so. Thanks, Javier, Gwendal, I'll apply this today and push out. Gwendal has been giving it a go on a machine here too so I'll check with him before I push. -Olof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/