Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1129059pxb; Thu, 4 Mar 2021 04:11:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9GqJdD9UOw3UwRkUbAH1jiz0BmrEokFnc4IL5gfskG362CrS0w4PhMshyTAkY52I19r1T X-Received: by 2002:a17:906:abcd:: with SMTP id kq13mr3944542ejb.477.1614859901625; Thu, 04 Mar 2021 04:11:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614859901; cv=none; d=google.com; s=arc-20160816; b=RB7yvE63ddHQX+tViK/dnSK43MYByJ88zw/DsL7FXbIfafGm2nzxf6gz4HyBY0bGxY qVmNAhhFjQambt4/iUJv/qlqB4OVuqGtzQr2mR4H5YrkwK7Sr81VXsgAUf6Ryb8VQthj FcFnQ42gJFJ2xfwlSXLedCZa+t54fguTdQqcgMH5MvZRG032yQuiWHPGsL3cdXhkW7L9 y0t6E4MNhdV9tOTCnWaeXD9LxTz8vMGIudKLxdUc+KH3TIUljcx8zG5OUTqzUWpIsI7v ZWhoFuElV2NeGTzWSS1n/Z8p/XO7GDuLoDr1bBMaPtotZAS4NmFxR5QO8xqWPA3LmMy6 7nNw== 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=m/miIR4qiFLfUPWEW18Gelz2ek8l1PdGPtuuJ9fh2/I=; b=0oyN2cqkPPg/x8mlrGpfQLWicz7571nnBouMJ1BuJEBuSP1nRb/os8EzOOcAAwxrpP WfmaPJZBaOwOBje4Go52AQc+OPiCF8BOWyfwOP88iO5XnP4IlQKOEmN5kIaEB72OdFAG BHcjvMsFQNYU2gblgAj5jqUs0lF+r9lNpb/eXERSHrASNIjgm9c6LSXem2DMFqK7P2YI 2RgZwxAVmd0W1uUyh2nt8OyReoDBz9wungMWjpk8R8m6/ko/daq7GHioi35rXbLISkpj RXtOIEOU7eoD7FIYj4IuWSOF9ejb6eP9skOrDBYkTSbuPdwLRwsowQNVLVzIs/0899Wu VhAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oEQXkui2; 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 f11si2300756ejw.277.2021.03.04.04.11.18; Thu, 04 Mar 2021 04:11:41 -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=@linuxfoundation.org header.s=korg header.b=oEQXkui2; 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 S1579963AbhCCScu (ORCPT + 99 others); Wed, 3 Mar 2021 13:32:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:51438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239034AbhCCQ47 (ORCPT ); Wed, 3 Mar 2021 11:56:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7C50D64ECF; Wed, 3 Mar 2021 16:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614790576; bh=F6xuDrHfR9Jmp0/snl1bNYDQLnsZiMMqZS6KHJ5mxok=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oEQXkui2P9iB2CXW8HhgVHm4Ms9NRBze5rF4F7RU6s89K1kzptwp97CPQztfhQBtV 4AC09+oAKfG4XkagFWtjFPR0pAmH6VuoJkzQQw9jBoDpaVx8nFw1GTFR3BNZ9mfaq7 A0e+4WUTIoQxqIXPbFbI6LO9P89rBBBh9KLYHIP4= Date: Wed, 3 Mar 2021 17:56:13 +0100 From: Greg Kroah-Hartman To: Krzysztof Kozlowski Cc: Arnd Bergmann , Guenter Roeck , taehyun cho , Felipe Balbi , USB list , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] usb: dwc3: make USB_DWC3_EXYNOS independent Message-ID: References: <20210303103839.it7grj3vtrdmngbd@kozik-lap> <6e9d6831-f88e-477f-6256-7ab155bfa7ac@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 03, 2021 at 05:49:01PM +0100, Krzysztof Kozlowski wrote: > On 03/03/2021 17:43, Greg Kroah-Hartman wrote: > > > > > > I don't think that will work in practice. Many ARCH_ symbols for various > > > > > > architectures contradict with each other. Almost all watchdog drivers > > > > > > only _build_ for specific platforms/architectures. > > > > > > > > > > Great, that's horrible to hear, so much for a "generic arm64 kernel > > > > > binary" which I _thought_ was the goal. > > > > > > > > > > ugh, you would have thought we would have learned our lesson with > > > > > arm32... > > > > > > I have no idea what you are talking about here. arm64 kernels have > > > always been generic, but you still need drivers for each piece of > > > hardware, we unfortunately can't stop SoC vendors from reinventing > > > the wheel with each new platform and then having to add yet another > > > driver for each subsystems. > > > > That's fine, drivers are easy, but when I see comments like "ARCH_ > > symbols contradict" that means that we can not make a generic kernel > > image. Otherwise there's no contradiction :) > > No, they don't contradict. > > > > > And "new drivers" are almost always not really "new" as everyone uses > > much the same IP blocks. As proof of this patch where the DWC3 IP block > > is being used by multiple SoC vendors. To handle that, you split out > > the SoC-specific portions into sub-drivers, so that you can build a > > single image of the driver that works on multiple platforms. Nothing > > new, we've been doing this for years, it's just that out-of-mainline SoC > > trees that think they can touch "core IP block code" break this all the > > time, which is what I am pushing back on. > > I am perfectly fine with (and like it!) putting dwc3 exynos back into > base/main dwc3 and getting rid of USB_DWC3_EXYNOS entirely. But this was > not part of this patch... I doubt that will happen, and it's not something that I expect. It's ok to have platform-specific "sub-drivers" for common IP blocks, we do it all the time. But making it separate is good, much like has been done for xhci as well. > > Anyway, this is just me as a driver subsystem maintainer being grumpy to > > see ARCH_ dependancies on tiny little things like SoC-portions for > > generic IP drivers. Or on individual drivers (i.e. Samsung serial port > > driver), where they don't belong at all. > > At least with Samsung serial driver we see adding new SoC - Apple M1. > > Here, the guys in Samsung want to tweak several kernel parts to work with > their out-of-tree code without contributing this code back. It's not a > community-friendly approach. The upstream kernel should be tweaked to the > out-of-tree unknown, hidden and uncontrollable code. Totally agreed, that's not ok. But a different issue than what is happening here. thanks, greg k-h