Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753264AbbGWKid (ORCPT ); Thu, 23 Jul 2015 06:38:33 -0400 Received: from mail-am1on0070.outbound.protection.outlook.com ([157.56.112.70]:11840 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753046AbbGWKiQ (ORCPT ); Thu, 23 Jul 2015 06:38:16 -0400 From: Noam Camus To: Peter Hurley CC: "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" , "Alexey.Brodkin@synopsys.com" , "vgupta@synopsys.com" , "gregkh@linuxfoundation.org" , "jslaby@suse.com" Subject: RE: [PATCH 3/4] serial: 8250_dw: Add UPF_FIXED_TYPE to flags Thread-Topic: [PATCH 3/4] serial: 8250_dw: Add UPF_FIXED_TYPE to flags Thread-Index: AQHQxGHTWKbo18/wBkKExeAnUuVvRJ3nbf+AgAEo/tA= Date: Thu, 23 Jul 2015 10:38:11 +0000 Message-ID: References: <1437557699-25722-1-git-send-email-noamc@ezchip.com> <1437557699-25722-2-git-send-email-noamc@ezchip.com> <1437557699-25722-3-git-send-email-noamc@ezchip.com> <1437557699-25722-4-git-send-email-noamc@ezchip.com> <55AF8EE3.1040406@hurleysoftware.com> In-Reply-To: <55AF8EE3.1040406@hurleysoftware.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: hurleysoftware.com; dkim=none (message not signed) header.d=none; x-originating-ip: [212.179.42.66] x-microsoft-exchange-diagnostics: 1;DB4PR02MB269;5:oU+/iOEnr10YTHCMnTM2CJomHcbYwfXhAFSq90c140dyQXuH4u7iTXi0bv0DZ0rtEgWlXc4jrmshjvsPxF7o8gnyqz4XHb1svu8kc+IGWnrX18lbpSW3vwjmoydwBU9kPuSF3NuCcFIEvRmkmGr85A==;24:6QcGALNN0NM1tfPr5KpFHZ638MDN1nI7hAGfBg/wy/AL+eBYPDkmm2WWjd9cS7ldsSTrB1xlAxCmK9mfz944/my5A81LpyI9+o4/LSwyaG8=;20:DAx9j49b/7qpLvxgp9AYoo1Le3N24spdVU2bVSUCTjJ7pc/HG2aIEu6rEbylN9Am5cqePkg+qVMSlv/I6lLApg== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB4PR02MB269; db4pr02mb269: X-MS-Exchange-Organization-RulesExecuted x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:DB4PR02MB269;BCL:0;PCL:0;RULEID:;SRVR:DB4PR02MB269; x-forefront-prvs: 06469BCC91 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(377454003)(19580405001)(106116001)(19580395003)(66066001)(50986999)(54356999)(5001960100002)(74316001)(76176999)(93886004)(33656002)(77156002)(86362001)(40100003)(46102003)(2950100001)(77096005)(2900100001)(62966003)(5003600100002)(122556002)(76576001)(189998001)(102836002)(92566002)(110136002)(5002640100001)(87936001)(2656002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB4PR02MB269;H:DB4PR02MB272.eurprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jul 2015 10:38:11.7499 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR02MB269 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id t6NAcfYE020572 Content-Length: 1295 Lines: 30 From: Peter Hurley [mailto:peter@hurleysoftware.com] Sent: Wednesday, July 22, 2015 3:39 PM >> + /* Writing to LCR may cause BUSY interrupt before we >> + * register the IRQ line. >> + * Currently autoconf() uses several writes to LCR. >> + * In order to avoid calling to autoconf() always add >> + * following flag. >> + */ >> + p->flags |= UPF_FIXED_TYPE; > > Why only for devicetree DW8250's? Don't all DW8250's have this LCR "feature"? > Yes, all DW8250 got this "feature" i.e. busy functionality. > And what port type does this id DW8250's as, PORT_8250? Except with fifos, autoflow control, dma, etc.? The only thing that DW8250 is not fully 16550 compatibility is this busy functionality feature. This feature means that a serial transfer is in progress. It is indicated by special identification in IIR, and raised when LCR is written while device is busy. > If the port type is being fixed, then please fix it to a new port type. As an extension to 16550 type is not fixed. Seem that I need to rethink on this. I will remove this commit from v2 patch set till I will be sure what is the right thing to do. Noam ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?