Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp640777ybk; Wed, 13 May 2020 09:11:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT62kn9Q7daxO0ydbMJFBAxbQyKr7gIJ6xQUhmL5A8FmwzJMVGbACJQYdFC/3hsSStFtbJ X-Received: by 2002:a50:9a25:: with SMTP id o34mr403218edb.10.1589386288477; Wed, 13 May 2020 09:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589386288; cv=none; d=google.com; s=arc-20160816; b=gyE2xrT1PYkKcZWrrejJVmsmUrZ1R7G+w7vou+NhQACfg9kgUBYRued3sYKr3n1eSr zVIW2nEHkO7qRUvyjdsoVS/bDNACXURwxnjf9xdoJD3jnpCefdN6q6p/5zPc+hu5fNvt ahRTInJ6mjM3XU5CBMSC7caCxU7EfLMnna2hfnkbxHAj4LacQi033LRgDepzFfdkWUop Oc8lJuau/9+WVcuS2jRev2Xmkaw9yKV3Il3gc7qnf4jPuFLCfILtrXDRhLS+5uHvaL8C 3ad9X74ZN9Hp6YXKsWe2bJ1rvPMnqT6NAlleW13YKVfzOTo6xA91wia+5EpIJwZ2jLM5 JcqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TC86IAbKrAwi7/epP6Vl0+VEaMemNsy7TtrBTR8K4ls=; b=R9EeQ42e5+UvLnbAhoB0KNX/I3hrN/JJ5C3uKwXhYtBdsVT6ue4Ju1J5eaY4lxLJ25 uRIpYNd9mehM4cBUalI4wlejsR1bq7srQS/F2v/CvEaKhhPXMzI+yPGshKbaXZC7dHvP xxnDRX//CCOt3rDswE93gi/nZ4CuaafwIqYCKALcJCpfV+4yED1TT8ZQVMpMy8UNsInV qdy3S1nZqTDNI0Ixgz3Buq7v8eQpmyoOYlY9h6oRCMUK7l9wX10mK5XPMuNu1C6igI+w YXVb9yzl8VPP621SZgiK+gy3hkTvENZFwfeYmgIellrnHyrnMoUiFsQhNuFqN6UO70hI haBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si73282ejv.324.2020.05.13.09.11.04; Wed, 13 May 2020 09:11:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389422AbgEMQJb (ORCPT + 99 others); Wed, 13 May 2020 12:09:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730657AbgEMQJb (ORCPT ); Wed, 13 May 2020 12:09:31 -0400 X-Greylist: delayed 111723 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 13 May 2020 09:09:31 PDT Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F0F5C061A0C; Wed, 13 May 2020 09:09:31 -0700 (PDT) Received: by gofer.mess.org (Postfix, from userid 1000) id AD35C11A001; Wed, 13 May 2020 17:09:28 +0100 (BST) Date: Wed, 13 May 2020 17:09:28 +0100 From: Sean Young To: Greg KH Cc: Dmitry Torokhov , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH 2/3] input: serio: allow more than one byte to be sent at once Message-ID: <20200513160928.GB9559@gofer.mess.org> References: <20200507135337.2343-1-sean@mess.org> <20200507135337.2343-2-sean@mess.org> <20200507202546.GM89269@dtor-ws> <20200507205918.GA13370@gofer.mess.org> <20200511065118.GA1293993@kroah.com> <20200512090724.GA31990@gofer.mess.org> <20200513081646.GA770255@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200513081646.GA770255@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 10:16:46AM +0200, Greg KH wrote: > On Tue, May 12, 2020 at 10:07:24AM +0100, Sean Young wrote: > > So this device is the infrared kind which rc-core (in drivers/media/rc/) > > supports, remotes and such things (not for serial IR). So by using a > > rc-core driver, it can use kernel IR decoding, BPF decoding, lirc chardev > > and rc keymaps, etc. > > So why do you want to user serio for this? serio should only be for > input devices with a serial protocol. Admittedly this is a bit tenuous. What I'm trying to do is write a kernel driver which uses the usb serial drivers, and not write a poor man's version of usb serial in the IR driver. > I think a custom usb driver that exposes the interfaces as input devices > is going to be the simplest thing for you to do here as you will have > full control over the packet size and format much easier. Odds are it > will be less work overall for this. Admittedly I don't think it will be much code, so maybe it won't be so ugly. It's just the code duplication I was trying to avoid. So, I'll go ahead and as you suggest. Thank you for your time and thoughts on this. Sean