Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1128496pxb; Thu, 4 Mar 2021 04:10:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuil/gita9LViQX1gXBeVGY3FDtUtP5tFsL4RKSAc9MGHDoWyfZ1Re28LBtCo00KWY5+hh X-Received: by 2002:a17:906:5e4a:: with SMTP id b10mr3901511eju.116.1614859852248; Thu, 04 Mar 2021 04:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614859852; cv=none; d=google.com; s=arc-20160816; b=Ncc6H6fNf1kXhC1xrnA3TtsgiuezRiAN5utRZ/q1dJcELeDnfGgUcm7aWG4y5xbNjb 7JDfOrp6MXJAgeBoZx/NIpvi3htWKri7XKAsSjguGqXqEKsqcfkwI++drr2OMzEZ7RxS uAQu1YXznNHLLQA7uZ5uOJjM0BmEKHr17HNKz+pZM58+uTCo8TpZLRzg9myjMArQfMlI 59GG/q7OjqkrK1WP0GTWb/aoWjs8HygmTOPWDi55hjiV/VGWg+vOqTCMAr7wIMBzsDSI N0F+VH7CQvX06r5nDeQK3y6TIGdLoH7hn1EJFqoZUOJBUABUT0l3qiZBBYKvgFWm3b/U LqAA== 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=j/TTYHFFcoLn8tT8ZW7itHoTv5zEOiTG2Kpo4neo5nE=; b=a9Jpd/bO7MLHz9xWOTAAGi+wbRoCKtgexmWqtKBb5l/wlFl5uoSUcAs94oi0uyGcls 6St1gO8KyMKBfb3hownhsUxzwCMsgDKEgdEY88sNf696psBdhO85FHgP7CKqDDO/npzW eAsfL8gx+hBOSEom0SxKbm7EG4wAWyM37V4DMIbDMVBpX5lAGfjaWmKPdmmIEWGuZlqr 3f3XeG/lXM3Rftw6uQi7868Ds4nVNcwJ9uNa5MQnogTjp/NTIp3zu4/dbfNgY94rL9vo zcF6YJc+vgbf9cTARP5aH7lCsmP/yzqD6jSKgfYVC83H+qV/CKRH5B9qeOvxq1qcmNbZ pJSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eFcHpnbG; 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 g6si17539434ejo.534.2021.03.04.04.10.29; Thu, 04 Mar 2021 04:10:52 -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=eFcHpnbG; 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 S1579690AbhCCSbv (ORCPT + 99 others); Wed, 3 Mar 2021 13:31:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:39196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241871AbhCCQpo (ORCPT ); Wed, 3 Mar 2021 11:45:44 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3C3A8614A7; Wed, 3 Mar 2021 16:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614789805; bh=Lw05/tYL0RTCnZwEbWPiPAOi1ooTtPKuIysUCncz+l4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eFcHpnbGMbCdheVIk6h/b8vjSgjFbdic2ZxTtLKmUvwWk3zHgI+ivjHAomB4WBByd ZIV/Hkzm4NlCryf09QThPMdIRKOEoZemRPxp2nU0I7GV9m74HwrP8lj416l2gkC9Yo FglCmG9a7xb+q/NNeVcceFSb8X80v7qvLKtAz6Ig= Date: Wed, 3 Mar 2021 17:43:23 +0100 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Krzysztof Kozlowski , 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: <20210303022628.6540-1-taehyun.cho@samsung.com> <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:33:46PM +0100, Arnd Bergmann wrote: > On Wed, Mar 3, 2021 at 4:46 PM Krzysztof Kozlowski wrote: > > On 03/03/2021 16:09, Greg Kroah-Hartman wrote: > > > On Wed, Mar 03, 2021 at 06:56:38AM -0800, Guenter Roeck wrote: > > >> On 3/3/21 6:05 AM, Greg Kroah-Hartman wrote: > > >> [ ... ] > > >>>> Anyway, that's the convention or consensus so far for entire SoC. If we > > >>>> want to change it - sure, but let's make it for everyone, not for just > > >>>> this one USB driver. > > >>> > > >>> Great, let's change it for everyone, I don't see a need for ARCH_* > > >>> symbols except for people who want to make it simpler for their one > > >>> board type. And for that, use a defconfig. > > >>> > > >> > > >> 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 :) 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. 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. So the overall goal of the original patch here is great, I want to see that happen, as long as it's done in a way that does not ignore feedback of arch maintainers... thanks, greg k-h