Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2731661pxb; Tue, 19 Jan 2021 04:55:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHWmkj99BYO05A4CR0ud+oY4zy32aNrhs2Mr5AOttOVTiCzU2ryPQGXBV8aAE3izT6kbvZ X-Received: by 2002:a17:906:d9c7:: with SMTP id qk7mr2570437ejb.350.1611060917239; Tue, 19 Jan 2021 04:55:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611060917; cv=none; d=google.com; s=arc-20160816; b=eoY0LRKVcjfOslI07YvJvblKifOgxcgZoaM5vMeXDMHjR6nQiGfVS4iBEeBVriyU3M W6HWCgZ08fEwcJsX2Avk3G4xF8eA06WW1wkr23uyB2zR+n4KxMhTbpHZ7VYJPfabg66c mqOxzfhaE+XbQ59hofO+94PfZoqSoYoYAepCWvDBuGgFsW7qHXBg0Xeve+0YuR3qQQic /uDMwsTVbvdRWk8GKlxP3rsKLionDdhhev2OS7kFSPB2BoNRctYgJ3oNO4lDROzesCgt HnVDn9/65Y2xBtTxZ4Fwknd/yb36rGF9WpLzt0IvHgK8LMC3F54BftBgleV8DNQseApX QoSw== 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=2gGkV/juYTQNK8LGYaM5CvS4gQqCSFa9iIkb4e/EB74=; b=tIBNzgDqruzshNN9czIVjIV2MrvzP7/qbaUPY/FCUgYRuIAXCr+baGuSvS/ia3ZEz7 vo5NIXcf96U4u4m2pyESgOlXwlVkh5O9merqpS0fs0UnH/d8CpbzZ8NoI7iqbhntXOHU ElLfue/a8yYlot8EySWWwcBiFeonDvUI0gGwdV711PjchQe/9I+0HGbqD2VVuWv4Cv2P dyU/hhEf+1Dxwyzc7alWjrAJdtLVcjy1A+sTM/fhTdkFhbFkpnQfVY3SFHSoGQ/18wcc 4zL0pa8luDUCtqFfKv+Vrr+FTtZms96zu2LeaOlSMVnolTxF2lRFhHXoEHBJ23VIZ7Y6 cuag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XMFySzbp; 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 o2si7914107ejn.501.2021.01.19.04.54.53; Tue, 19 Jan 2021 04:55:17 -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=XMFySzbp; 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 S2393327AbhASMlD (ORCPT + 99 others); Tue, 19 Jan 2021 07:41:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:41002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404937AbhASMel (ORCPT ); Tue, 19 Jan 2021 07:34:41 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3A52D2310E; Tue, 19 Jan 2021 12:33:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611059632; bh=nhLuurJSrgADMg3lBfOTeTfYMIf5bFMG7UNgaXRHqZ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XMFySzbpHGeNgMMesjH9tuaLgO7p7bI6r5Eg9KF5YH4R+v+FeIvF8htdqA9C2hk2z cZjZWaTyWQz+PWPcYgAX5FxSUAUWHtx8YqgpkkHPXhTgJonIU8FKqtiPzqPIIGRgc4 GEfcF2bkYGSR4csEKZpOTayWgH0Mz+4RHeu7OT/w= Date: Tue, 19 Jan 2021 13:33:49 +0100 From: Greg Kroah-Hartman To: Al Cooper Cc: Al Cooper , linux-kernel@vger.kernel.org, BCM Kernel Feedback , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Jiri Slaby , linux-serial@vger.kernel.org, "open list:USB SUBSYSTEM" , Masahiro Yamada , Rob Herring Subject: Re: [PATCH v2 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver Message-ID: References: <20210115211543.33563-1-alcooperx@gmail.com> <20210115211543.33563-3-alcooperx@gmail.com> 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 Mon, Jan 18, 2021 at 03:32:57PM -0500, Al Cooper wrote: > On Mon, Jan 18, 2021 at 12:45 PM Greg Kroah-Hartman > wrote: > > > > On Fri, Jan 15, 2021 at 04:15:43PM -0500, Al Cooper wrote: > > > Add a UART driver for the new Broadcom 8250 based STB UART. The new > > > UART is backward compatible with the standard 8250, but has some > > > additional features. The new features include a high accuracy baud > > > rate clock system and DMA support. > > > > > > The driver will use the new optional BAUD MUX clock to select the best > > > one of the four master clocks (81MHz, 108MHz, 64MHz and 48MHz) to feed > > > the baud rate selection logic for any requested baud rate. This allows > > > for more accurate BAUD rates when high speed baud rates are selected. > > > > > > The driver will use the new UART DMA hardware if the UART DMA registers > > > are specified in Device Tree "reg" property. The DMA functionality can > > > be disabled on kernel boot with the argument: > > > "8250_bcm7271.disable_dma=Y". > > > > Shouldn't that be on a per-device basis, and not a per-driver basis? > > There is only one instance of the UART DMA hardware and it gets muxed > to just one of the possible UARTS. But the driver doesn't know/care about that, it binds to any device that matches it. per-module/driver flags are not a good idea. > > And why would you want to disable this, if you have support for this in > > the DT? Why not just rely on the DT setting? > > The DMA feature is used when the UART is connected to a Bluetooth > controller and the BAUD rate is typically 2-3Mbs. The ability to > easily disable DMA is very useful when debugging BT communication > problems in the field. DT settings could also be used to disable DMA, > but knowing the correct modifications to the "reg" and "reg-names" > properties is a lot more complicated. So this is a debug-only option? If so, why not just make it a debugfs file then? No need to clutter up a module parameter for this mess. thanks, greg k-h