Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp166868pxv; Thu, 24 Jun 2021 05:25:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCO1+Evvt56JwGz2sHnDB0be+2e1+E9MZXvwUbfNPtPEwKV+Pb2ipU+lGjCVeiXuJCRRyH X-Received: by 2002:aa7:c857:: with SMTP id g23mr6655345edt.100.1624537547796; Thu, 24 Jun 2021 05:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624537547; cv=none; d=google.com; s=arc-20160816; b=OLZDbu/1lsdqOBNDZOimapHR8CpZgglwsa593R+lHi5GpB/7ZPTL++ACE62E6b6iMh ycC1HFwexO2q0bMqPc3iSkO3lL5F5zUNk/iPz91kRoNGiew5KUxRMMT/G7gP7A7LzRWh LTba1F/jIDItYNJ6jGq+wySNQ1WAr2H4Qb631M6n+X46y9tB0rhIcjQ4hevqiKB2VbgS ZuZWG9igYZFWswGhTmn/BN/ZBkADuLOk9ytW3ayqlOeWfyLsQKHW1CHPs5tdKLdzAmzn V4j7Q8xoUrfGHfWGEhOnh8GZ4lU2JZXQkEiPRqJ4RC8ipmrAI/cuDrIKMJsL/5M375en 5clA== 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=v/AVnny9vZ3z7yw6WzNXFDGGPqzLFXW+4TKuF4L/rxg=; b=Zp+mS0XR3tr5TGLpnb5mBH7Jsla8iExaQaSak+3A9DrfjRMNIQzQeNo6qgJbkFkQd1 RHeL9dDOlyOZWK34ED5T8AdkhkfCXkvehNPrp8V7QZSbF4f0X7G236zzut+CxEYNhHao H8H4aAnsm2Cn0OruRTX8eA+e5dXrjDOFx7qW42yanXW6NlWF3+UVLLS1mpfKRlMME0w2 W5orotd0PpPfloX1OyNkJphMCtY/2j6oRF3n/VIJkBz07CTV95CcB7H1euaxcjhnqM7Q 4IFhsBkZIhRJz+51LSeOtOZp27Gr+DXcbf+gzJf1Mqe8nJeSuxpMSu9qIXbzx3KagFEL AP3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QvClQ3g2; 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 n16si2779857edw.182.2021.06.24.05.25.25; Thu, 24 Jun 2021 05:25:47 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QvClQ3g2; 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 S231407AbhFXMZw (ORCPT + 99 others); Thu, 24 Jun 2021 08:25:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:35160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbhFXMZw (ORCPT ); Thu, 24 Jun 2021 08:25:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 937C861209; Thu, 24 Jun 2021 12:23:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624537413; bh=JTsUy6jEymu4qp5qGCh4JVhR5yjdg1Lz3myy2L5OZJU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QvClQ3g2Htt0PFAENbaUhP8J94m0ztjO+UjJ/8v1MDWqUWSbTiiXYg2gxvP15Coxm FkDdN64l6rzNumPsxbxhBgsv6hJ1RtC9K7lOnuO9v1B0756lA6iqnGwQ3TneWrbSOG Ty5Nr9Krggxb5ET4emDq8Dfm/J67T2CioXuvCGqA= Date: Thu, 24 Jun 2021 14:23:30 +0200 From: Greg KH To: Rocco Yue Cc: "David S . Miller" , Jakub Kicinski , Jonathan Corbet , Hideaki YOSHIFUJI , David Ahern , Matthias Brugger , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bpf@vger.kernel.org, wsd_upstream@mediatek.com, chao.song@mediatek.com, kuohong.wang@mediatek.com Subject: Re: [PATCH 1/4] net: if_arp: add ARPHRD_PUREIP type Message-ID: References: <20210624115349.2264-1-rocco.yue@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210624115349.2264-1-rocco.yue@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 24, 2021 at 07:53:49PM +0800, Rocco Yue wrote: > >> +/* exposed API > >> + * receive incoming datagrams from the Modem and push them to the > >> + * kernel networking system > >> + */ > >> +int ccmni_rx_push(unsigned int ccmni_idx, struct sk_buff *skb) > > > > Ah, so this driver doesn't really do anything on its own, as there is no > > modem driver for it. > > > > So without a modem driver, it will never be used? Please submit the > > modem driver at the same time, otherwise it's impossible to review this > > correctly. > > > > without MTK ap ccci driver (modem driver), ccmni_rx_push() and > ccmni_hif_hook() are not be used. > > Both of them are exported as symbols because MTK ap ccci driver > will be complied to the ccci.ko file. But I do not see any code in this series that use these symbols. We can not have exports that no one uses. Please add the driver to this patch series when you resend it. > In addition, the code of MTK's modem driver is a bit complicated, > because this part has more than 30,000 lines of code and contains > more than 10 modules. We are completeing the upload of this huge > code step by step. Our original intention was to upload the ccmni > driver that directly interacts with the kernel first, and then > complete the code from ccmni to the bottom layer one by one from > top to bottom. We expect the completion period to be about 1 year. Again, we can not add code to the kernel that is not used, sorry. That would not make any sense, would you want to maintain such a thing? And 30k of code seems a bit excesive for a modem driver. Vendors find that when they submit code for inclusion in the kernel tree, in the end, they end up 1/3 the original size, so 10k is reasonable. I can also take any drivers today into the drivers/staging/ tree, and you can do the cleanups there as well as getting help from others. 1 year seems like a long time to do "cleanup", good luck! > > +++ b/drivers/net/ethernet/mediatek/ccmni/ccmni.h > > > > Why do you have a .h file for a single .c file? that shouldn't be > > needed. > > I add a .h file to facilitate subsequent code expansion. If it's > not appropriate to do this here, I can add the content of .h into > .c file. If nothing other than a single .c file needs it, put it into that .c file please. thanks, greg k-h