Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3727455pxu; Mon, 30 Nov 2020 09:05:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWPdHH/JhuOORgc29hEwzvWSGsmi4GKc4eIVligvZikVhpgi8AM/UbyRSl8wR1bS8vlV4K X-Received: by 2002:a17:906:6010:: with SMTP id o16mr21983830ejj.55.1606755941815; Mon, 30 Nov 2020 09:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606755941; cv=none; d=google.com; s=arc-20160816; b=x66Z/SvQZ4zEx4PvRsNpxWJp3hvZV3fJR+89oZlvRQKfp5HwMjs8Y31/2lQ5dNsQoP Qp90AVXyT4fk7WPJ/aoA2czQXwVasUwtmPVQmRY0AG3xIafhochbbv9em2rW+WGK1EKe BiYcl3hrXOIs9xOIPNL1h3af+FyDInoSf4QoE0pPGKYWaIqwUfhAvX/0G9bGu5r4dTxz 382AiVVkJducyvs8TIM4w7GAs+lJduAtCX6zvV2+r1xDhYbuZd7XjAAs9RuUhQ1R7e2w SeLhTQZeKsvMpABJBsh3FPPJ/qanwmLcz7Xu7ZiVNz0Kjp6Jm9cBpldRECOEjtYxV9yk JkhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=/+eItGw0s5+R0qUK3fwxHg4iJtrf/yVhZqHwGJPlRtI=; b=ZCyF8bbiKpmugTH0mk2kI8/nHiUgkufgqifNR56EOFHocPohmfyxgl11ulLJDOD3JJ +an3b40s5f2etaH/U54UOStHt84MDkb6AivhF33HUdS30p6YX2azVCpqUqIYJp9qoqdH IVBZzU8PajJ7MAUXklLU9j8S8aMj/6Xo4dpqw1+HlsiXO3ifw19GidxAJU5gSaXx51EK Q15vA9WVEj+UF9B3VNh201qokphfS9+GXwe3odTkSgWg27AbTFbNbVD3CITse9ZjvXxc Ai8iL2n+XzFjE2EfP1VYwMcAu5HOMGQGnES1pDkaxt4QGbDcrrGWVuAMf5IdsrHbNZAZ WvFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp1si11962715ejc.21.2020.11.30.09.04.57; Mon, 30 Nov 2020 09:05:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729146AbgK3RD4 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 30 Nov 2020 12:03:56 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:36888 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727900AbgK3RDz (ORCPT ); Mon, 30 Nov 2020 12:03:55 -0500 Received: from [172.20.10.2] (tmo-111-84.customers.d1-online.com [80.187.111.84]) by mail.holtmann.org (Postfix) with ESMTPSA id 3FCBCCED17; Mon, 30 Nov 2020 18:10:26 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: [PATCH] MTK mt7921 driver upstream From: Marcel Holtmann In-Reply-To: <20201130071655.31515-1-peter.tsao@mediatek.com> Date: Mon, 30 Nov 2020 18:03:12 +0100 Cc: Johan Hedberg , BlueZ development , linux-mediatek@lists.infradead.org, LKML , mark-yw.chen@mediatek.com, justin.tsai@mediatek.com, can.chen@mediatek.com Content-Transfer-Encoding: 8BIT Message-Id: References: <20201130071655.31515-1-peter.tsao@mediatek.com> To: peter.tsao@mediatek.com X-Mailer: Apple Mail (2.3654.20.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Peter, every patch needs a proper commit message. > Signed-off-by: Peter Tsao > --- > drivers/bluetooth/btmtk_buffer_mode.c | 263 + > drivers/bluetooth/btmtk_main.c | 5517 +++++++++++++++++ > drivers/bluetooth/include/btmtk_buffer_mode.h | 78 + > drivers/bluetooth/include/btmtk_chip_if.h | 30 + > drivers/bluetooth/include/btmtk_define.h | 304 + > drivers/bluetooth/include/btmtk_drv.h | 157 + > drivers/bluetooth/include/btmtk_main.h | 587 ++ > drivers/bluetooth/include/sdio/btmtk_sdio.h | 147 + > drivers/bluetooth/include/uart/btmtk_uart.h | 86 + > drivers/bluetooth/include/usb/btmtk_usb.h | 100 + > drivers/bluetooth/sdio/btmtksdio.c | 2004 ++++++ > drivers/bluetooth/usb/btmtkusb.c | 3218 ++++++++++ > 12 files changed, 12491 insertions(+) The drivers/bluetooth/ is not your playground. Keep the structure flat. > create mode 100644 drivers/bluetooth/btmtk_buffer_mode.c > create mode 100644 drivers/bluetooth/btmtk_main.c > create mode 100644 drivers/bluetooth/include/btmtk_buffer_mode.h > create mode 100644 drivers/bluetooth/include/btmtk_chip_if.h > create mode 100644 drivers/bluetooth/include/btmtk_define.h > create mode 100644 drivers/bluetooth/include/btmtk_drv.h > create mode 100644 drivers/bluetooth/include/btmtk_main.h > create mode 100644 drivers/bluetooth/include/sdio/btmtk_sdio.h > create mode 100644 drivers/bluetooth/include/uart/btmtk_uart.h > create mode 100644 drivers/bluetooth/include/usb/btmtk_usb.h > create mode 100644 drivers/bluetooth/sdio/btmtksdio.c > create mode 100644 drivers/bluetooth/usb/btmtkusb.c And this is too much in a single patch. Split this up. This patch is not acceptable upstream in this form. Strip all your home grown debugging and duplicates out of the patch. And I am no longer accepting any line discipline drivers. So scrap that as well. Also any kind of snooping stuff is not needed since we have btmon. In addition, what is wrong with the existing drivers? Regards Marcel