Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4799415imm; Mon, 15 Oct 2018 23:30:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV62kCKw+TbQAJ1MNiZY3/FZJl8caadkCSf6gOzRcky6Zz6va8zrY5PLB/RzvBRLy0Xro89Vw X-Received: by 2002:a17:902:7d98:: with SMTP id a24-v6mr20128725plm.271.1539671414944; Mon, 15 Oct 2018 23:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539671414; cv=none; d=google.com; s=arc-20160816; b=HObcEfYZ1OY1pps3udlHYko4lRuUYVx1cvHydi4UE5MGcr/AucE4dHr7aPVepoT1ra AlVNNfuRmfi1ex4xjFkBtSZ+mnAE4iohPa+9+wbNNE/jUrYGycOpxGaJcEQtyLQEjqH+ GBNwPS18ZPGl3XU0fH2FAYl4uwQ4+PIU4H/SQV8fSg+ySxUdhtX+px9ha5fhbgez5kZF DiRz1CGz5Zcg2lsm/aqttHHErHsnnd6ZrJ+T+YfJYnTAE22D5mI9C6LZuVgeiJvl0+FY eOOg1nbMzrLYZh0aD95hnofeK+r945yA41CblMJWLZ1MKO4fTB8mMrbF2uT0VsP5wYaf mTGg== 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:dkim-signature; bh=uDfbDL2hGjv3+a7brh2JaqmTe1ccMJT/CQj4PQnJmdw=; b=Pf+k2d2Lf8K7Vv/8LRwLfAHuOassR6qkODNsIONA+FDijhngnyxbn+nE37spol57Sc i3nVmKs1RrPhb0KnGjWT0APHBxUDnAEEu7kbNxbCiDqOoFJb36nLtncLM5rclWXqjGwK eGYQPXgfLS9QFYtbB9mdHc6H/xkdfg0gQfHKJROk3jVFZvKN/eRP5CmuQ/rYV5cgS6xu A9cWT0OVPU693aAa8PXEF5HWyNYeIHH6vO/85vew6eT03YzZnDSyUUuBUm8VVWbVsM14 01vXGigEK104CQ0gKrQOzA55VCP/h/+y0Wjw4oBH546gMr3FVcIqZOfk25bmdbDwxOD4 17Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jCfQsV0s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f25-v6si12774559pgb.170.2018.10.15.23.29.59; Mon, 15 Oct 2018 23:30:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jCfQsV0s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727353AbeJPOSV (ORCPT + 99 others); Tue, 16 Oct 2018 10:18:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:41372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbeJPOSU (ORCPT ); Tue, 16 Oct 2018 10:18:20 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8062B208B3; Tue, 16 Oct 2018 06:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539671367; bh=ghqw+lTK/9dR406KC1CcOU8M1aPWABGAm2Ko/3N14wM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jCfQsV0sNlRTR/jhdl8yVqD8liZOxp1PIkJ3GGInqd30R/AYfFSuwpZ31rd46xvkb KQWJnNk5b5SIa5a3l/aCP8DXKRd+8uZRgPyRXBZQlbB/i5Xd3oKUUhKm872OT7niqM 9TqOYNq5ytJLqYC+bYBiyr4aYiqn/yjR+aKXzbJU= Date: Tue, 16 Oct 2018 08:29:24 +0200 From: Greg KH To: Roman Kiryanov Cc: linux-kernel@vger.kernel.org, Todd Kjos Subject: Re: [PATCH v3 09/15] platform: goldfish: pipe: Move goldfish_pipe to goldfish_pipe_v2 Message-ID: <20181016062924.GB882@kroah.com> References: <20181003171720.169953-1-rkir@google.com> <20181003171720.169953-9-rkir@google.com> <20181015183807.GA6905@kroah.com> <20181015190134.GA6700@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Oct 15, 2018 at 01:23:35PM -0700, Roman Kiryanov wrote: > > > I want our "v2" driver to be in a "v2" file and our "v1" driver in a > > > "v1" file. I think this is reasonable. > > > > The in kernel driver is the "v1" one. > > I believe v2 (on our end) was upstream as goldfish_pipe.c instead of > goldfish_pipe_v2.c. I do not understand this, sorry. My point of view is the in-kernel code, I know nothing about out-of-tree code, nor do I care :) > > Why do you need a totally new driver file at all anyway? > > I don't want to mix v1 and v2. Why? What is the difference? Why do you even need/want 2 different drivers here for something that really should be done with the virtio interface instead? > > And again, can you GUARANTEE that userspace will not break if you rename > > the kernel module? > > Yes, it works: > https://android.googlesource.com/kernel/goldfish/+/android-goldfish-4.14-dev/drivers/platform/goldfish/ That's a kernel, not userspace, code. > I don't see how userspace could be affected, unless we refer to > __FILE__ inside the driver for some important things. I believe we > don't. How does your userspace know what module to automatically load? That's what usually breaks if you do not have proper platform binding happening automatically. thanks, greg k-h