Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5210064rwb; Tue, 8 Aug 2023 23:49:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEO3mlxmDg1fTot36wKQTdtbQhoFvLK1xcRe++Ozddow9AYiuQRbOGvB8WQAZxjPQyElm+D X-Received: by 2002:a05:6402:12ca:b0:518:7a3b:e9fb with SMTP id k10-20020a05640212ca00b005187a3be9fbmr1526741edx.19.1691563787964; Tue, 08 Aug 2023 23:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691563787; cv=none; d=google.com; s=arc-20160816; b=QgCoPUrFeMgVt8dB7RFBTw4K7dhp5QWlm6W2B6YDnDf3q+Jid4pnLiSQq/waeE4d+Z kt+3ZOjDfXEMgAo7V8b1iTGMJcVT65wged1mfalr13+psRzyfeViLKxf+pqR0QZQji75 mrzD00DCKwO9td6LDfy2lDpjNuVAycLMQUBM0p0gEjwJgsyZK2/SEtrLIm0Vd0Ujxu+R dpyDP8Wtqyyr4UKjYTK0OeHn8/TqjtU1t1Keb06b1BAtNjNBI0GEv+trGEmhko+Ne8yQ 2IVfLCvEao/GB5sHFtA8MxLJWZbFP48F4do8XGnlP2OryehZkkoe5ZQZZS6quSUtmGmX vY8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=Cw6WKBszjxWf8GNIpW87uvdyZyJQru4P4nUlwy9Dn+4=; fh=5JcUnjFadfCF6ao+/VB8W60J4EOlsRkbsRGU4A7+n5o=; b=wb1ewsmSwXGCNPbg4621h31c9PeH7bNp2NBtmUN+SvsDXpCYRMjScP0sKguq9KfG/i 14ischuZrXtxXo9R/Q697g7T8Z5ts4qGIJ+yO5oyillA4ixM/5LPi1xyUrXC/DggurTm SZO1+w5rhVqOgLUSJ/JflJo108U1xT2trYv4vXap3Avk/GIo/lPSCq6xrS5IkpX4cqpD F20nfVmdLfsvHDx92zHPtG7GPQGJBZuCRLbMQHaB/jG9ahgrIVWkyRqNNBZs8xTEVoMV Aj3POEoSEBwBG+ry8K0lXcDzqqCb6Q0JGkEquBc32N8U1rwRAx9C7VMOz7qMYiflr8xx o4ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x26-20020aa7d39a000000b005232dadc731si5766073edq.619.2023.08.08.23.49.23; Tue, 08 Aug 2023 23:49:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230455AbjHIGnD convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 Aug 2023 02:43:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjHIGnC (ORCPT ); Wed, 9 Aug 2023 02:43:02 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E106710CF; Tue, 8 Aug 2023 23:42:57 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 3796gBHa9004900, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 3796gBHa9004900 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Aug 2023 14:42:11 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Wed, 9 Aug 2023 14:42:28 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 9 Aug 2023 14:42:28 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Wed, 9 Aug 2023 14:42:28 +0800 From: Justin Lai To: Jiri Pirko CC: "kuba@kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" Subject: RE: [PATCH] net/ethernet/realtek: Add Realtek automotive PCIe driver Thread-Topic: [PATCH] net/ethernet/realtek: Add Realtek automotive PCIe driver Thread-Index: AQHZxeQMA/4O5CExTkOPXZ48NozVXK/XvyuAgADLZRD//4a2gIAJe5wQ Date: Wed, 9 Aug 2023 06:42:27 +0000 Message-ID: References: <20230803082513.6523-1-justinlai0215@realtek.com> <14e094a861204bf0a744848cb30db635@realtek.com> In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.210.185] x-kse-serverinfo: RTEXMBS01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Thu, Aug 03, 2023 at 03:20:46PM CEST, justinlai0215@realtek.com wrote: > >Hi, Jiri Pirko > > > >Our device is multi-function, one of which is netdev and the other is > character device. For character devices, we have some custom functions that > must use copy_from_user or copy_to_user to pass data. > > 1. Don't top post > 2. That's nice you have it, but it is totally unacceptable. That's my > point. This is not about wrapping your out-of-tree driver and sending > it as is. You have to make sure you comply with the upstream code. > Which you don't, not even remotelly. Thank you for your reply, I will refer to your suggestions to modify my code.