Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp81822pxu; Tue, 5 Jan 2021 05:50:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8x9rfzLljq0sfm03q3c+phuju2/SSZuvrP9MFIZg7BYy5RsbZc3JpJ+3uOyuI7M179Nlw X-Received: by 2002:a50:eb44:: with SMTP id z4mr74280449edp.167.1609854609946; Tue, 05 Jan 2021 05:50:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609854609; cv=none; d=google.com; s=arc-20160816; b=GouxJjTjwH/ZHHvPweJiC0aqEQbJsB3rztwf+c0+hEvgo0LyEo7COH06v5QDpmF/g5 7RzXLTRbFgBlPou3/dY7IoUDLRBrr77KJ16/QohSC9va6SUSNXUIhNFOLd6HfxaN1i2N RfzcJXSqw8CxXJNKC1oOPsgmeqQGDPKinHvAja4gDYJ96FoLOqIfCEMaXLYQE1WUYpSE T4yf6/4viMCFWWJnLmFR+LQNhEkJ0wRHaP/FZQpWKKqilcDdmE4lsyTEWUOKJ52YBRAd fGKIIdiAuW9RmgI/Jc/bZ/LtgE/569K7FBbGKeM7tTUWxVvjy/PhR2coeLJLkjQQgJJs ydTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7lceosy43gBPizEW0wrJJ5H97UwBC0xUTg6Mvvh/sL0=; b=A16frF4oU7+2QdSy8xmDyTQEHXh80IxNASAi5tlcTmNCLtx8b2TOUc3P7yM5fmyEKx OzaYLfJ7j8nNy17gVrrnz6BzwCP91dgrb47n2YB1tOrzF3eIIPOr/wCjFCZ7QgMdhAXG hBlsbh8WB6u3JzUdsGpEY2jDvq28DqoPNf709qC9JtJ2mQRvUrLZOQO5zk+JEwI4V3nn kLgzqwfSAW7PIW691nCrkNLovtkz5913W1xz8GUb8sSN3hpiIFBrLoaqgB2WZuzRiWpa hiJPSDGVukFAmV3shVf5Dwc1pzwcNYVNEwx1sAiwcIQI9XJdnURxPh8ARzfTsq8GtHE4 fBmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LxaNaAWr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si34832585edc.491.2021.01.05.05.49.46; Tue, 05 Jan 2021 05:50:09 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LxaNaAWr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727711AbhAENqy (ORCPT + 99 others); Tue, 5 Jan 2021 08:46:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:39314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727398AbhAENqx (ORCPT ); Tue, 5 Jan 2021 08:46:53 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1821C229C4; Tue, 5 Jan 2021 13:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609854373; bh=UJNgfrZ1/h7ksEDl8gwA5+JdzuA1EC8iTPwpYFQzm6A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LxaNaAWrzRFhh3x1zXwLO0HVTJCBxDwhz3lR4UXYoVSZAQQGbK3mvFgXMQlGbN6GZ B2zI5XtlEXMqEtCf53JHVbLnfxIWQx5nSx3XMRVKEIS2kpMMQVncGjku+Cygo4M+ln RE3fnRnZ1pFVkch6a2pnBBa319/d45+TdohZatmk= Date: Tue, 5 Jan 2021 14:47:37 +0100 From: Greg KH To: eli.billauer@gmail.com Cc: arnd@arndb.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] char: xillybus: Add driver for XillyUSB (Xillybus variant for USB) Message-ID: References: <20201213170503.59017-1-eli.billauer@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201213170503.59017-1-eli.billauer@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 13, 2020 at 07:05:03PM +0200, eli.billauer@gmail.com wrote: > From: Eli Billauer > > The XillyUSB driver is the USB variant for the Xillybus FPGA IP core. > Even though it presents a nearly identical API on the FPGA and host, > it's almost a complete rewrite of the driver: The framework for exchanging > data on a USB bus is fundamentally different from doing the same with a > PCIe interface, which leaves very little in common between the existing > driver and the new one for XillyUSB. But in this one you are talking to userspace directly through a char node, why not use the same interface that the xillybus_core.c code uses? Creating yet-another-class-device feels odd when you already have one that is in use. Try to merge them together to use the same framework, or document the heck out of why this is somehow different, yet looks the same... thanks, greg k-h