Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3975750pxb; Tue, 17 Nov 2020 08:15:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6DmQdUNIXy2TyMBT51C7ZFouNL+F796LGRuRJHIzWqzm3+R9Ok3Oe1ROAHWwa5JPq6wp2 X-Received: by 2002:aa7:c612:: with SMTP id h18mr20982026edq.27.1605629754865; Tue, 17 Nov 2020 08:15:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605629754; cv=none; d=google.com; s=arc-20160816; b=V1oJzvMcyGXa13o0BgsT3rf1hRkiPq9JlB9FTNcwobT6iKKZ7AYX4nwgnrBJj2wH4a xcy1NswPq+wHrGqiR8S35Ki4vaAHByyVHDsMKT8tWZMEVrXHmsKwblLHZ3OVHiqG2DM0 Z86WbUKaSm2GtXwDV39TCnke7NYIC8RBSnSV/O+blQ6+/IV6lKIwhCignWoSfHKM1QO+ a/6yTu2tuHZbhLVdbmc2kqUH9nltiRdFTMeFNDtC2K5scvuj8uBqmWPpa6v/2i3aorOY CO/h7mMKmZgkyzkMHRNiTK3I5jjwW+jMnTJrN1c1/OOkPWnE6WMm+vHZMikYmq+i1u+x N7vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=xhtAfLYI6ocLopl9WiAxk/wuRSRtdMmaCAsryr2Inxc=; b=TyEkNKB1N82lahp87la56tyHFaJvMbQv4zMGPX1BeVlT1EsB6c0VWpF4ph+At7Hj51 +LD40nI5+nQN8UcIXnJhnfSAEcm53Ijwp3NHhXCrhJGbwNECr7J98sWFzyXV3mTT43Qf pwT1uT1qTza+yGZfzUlMjrBrmGeCoJrT8jJ3bbvIeqeSu3AHqddPTopMZL7lZJkr9//a MIVBg2amZv8YV5WsFYfJwcIzcqZaI+KMpSfaUDcHqbLlX1xY4whD4yVaAGP0iIM7FEya IqbVszYSLKjt4dWzb3yFghXUKD6/qePgY209xPeNiD636Pi9NuSEcGZrSoHW9qlDp9TP 8L3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v2sl2oz1; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si13694773ejh.153.2020.11.17.08.15.31; Tue, 17 Nov 2020 08:15:54 -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=@kernel.org header.s=default header.b=v2sl2oz1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727327AbgKQQLx (ORCPT + 99 others); Tue, 17 Nov 2020 11:11:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:43164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727298AbgKQQLv (ORCPT ); Tue, 17 Nov 2020 11:11:51 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.4]) (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 A7F6C2463D; Tue, 17 Nov 2020 16:11:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605629511; bh=L63llMV2FMC+E9qdiSTIJ//xn/d4NWH+qdGamgCxkJQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=v2sl2oz12YbryGBOd2sByIEKQ/YCxX0nfN+kIW8Wu3YibAXAlOAdNW6HF8O71BKUF dF98dpigKw9Y5U2RsH8jurGARVEclLn8CPo/fkvFxpTLrqdAlrbrBvesD82a3idu5+ 61ziDNM45vw/dZwtX6vF14fOreWkUj85A2B/OkL0= Date: Tue, 17 Nov 2020 08:11:49 -0800 From: Jakub Kicinski To: Hayes Wang Cc: Marek Szyprowski , "netdev@vger.kernel.org" , nic_swsd , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" Subject: Re: [PATCH net-next] r8153_ecm: avoid to be prior to r8152 driver Message-ID: <20201117081149.20723b4a@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <02f38e505a3a45389e2f3c06b2f6c850@realtek.com> References: <7fd014f2-c9a5-e7ec-f1c6-b3e4bb0f6eb6@samsung.com> <1394712342-15778-393-Taiwan-albertk@realtek.com> <5f3db229-940c-c8ed-257b-0b4b3dd2afbb@samsung.com> <20201116090231.423afc8f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <02f38e505a3a45389e2f3c06b2f6c850@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Nov 2020 01:50:03 +0000 Hayes Wang wrote: > Jakub Kicinski > > Sent: Tuesday, November 17, 2020 1:03 AM > [...] > > > Yes, this fixes this issue, although I would prefer a separate Kconfig > > > entry for r8153_ecm with proper dependencies instead of this ifdefs in > > > Makefile. > > > > Agreed, this is what dependency resolution is for. > > > > Let's just make this a separate Kconfig entry. > > Excuse me. I am not familiar with Kconfig. > > I wish r8153_ecm could be used, even > CONFIG_USB_RTL8152 is not defined. > > How should set it in Kconfig? Something like this? config USB_RTL8153_ECM tristate select MII select USB_NET_CDCETHER depends on USB_RTL8152 || USB_RTL8152=n help select clauses will pull in the dependencies you need, and the dependency on RTL8152 will be satisfied either when RTL8152's code is reachable (both are modules or RTL8152 is built in) or when RTL8152 is not built at all. Does that help?