Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp952555imj; Sat, 9 Feb 2019 11:40:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IbAUgOuKd3td4zlAW4eX4tsC/GaWJsX29OC7aqS5ihhrsgeXQTmS2EV7a3DNkUWLoLtZLJK X-Received: by 2002:a62:4c5:: with SMTP id 188mr29263990pfe.130.1549741228674; Sat, 09 Feb 2019 11:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549741228; cv=none; d=google.com; s=arc-20160816; b=H5QOjigSkhnfEwE50NrkGKHzFvKqiFWuCskb92ayf09TbG9JV4G7oN8NCEh7QcVMnq PzntqMxMH6Se/f/QYYkO2Gq03FVQCDBEa59qSqhp8E0OZ/a2rQ1jVCLHZFD40MhNr2jS 5D22upp09reIHGYwei94I3C9Eb43tJov9zZcvmRznPaZYSERILuYLh51Etpc2IKjMX96 HWluAVaVieTrpLCltA18l6uoQ1WH+DvAQ/dyKJ/h476Ga5NCiYIlHqRGtniRL0MGRakS X8FjKJnqOpdMGd3IyXT1c17iwyGmRJj+a8oT4ehTtrPwtSEAA+/pviIgUIAMFSYCgnmg leaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=6Tz7CXDIlSGB7/AnH8t17YYw/2pXaByp79DvCkSqaHo=; b=0mHfJInUR8a3uHOj/JM5rOITjryVuy2BdItnNpNgics+WRBkPqmC+d0I2XQsETCOHA aZ8KBvPFLnyslz29Hjosyz1VxlP7BtUtIyeEGG3Op0JmCDTUF6F8AaZ5rVkRbh+wM7Bi W3bAb0/7kg97BtNLrxrF2oC5F03pm+7PNLigDXe7Ummb/63J182fuyeN5MbJkzbENBWz Ys1qV/wFjsTVpT1KJea7nrwMSVFMl2roLTiay2cx37cgjQ3YWasRIHqi55w1QXot259O F+oZFTJqh+XWTEjDbPXfW9ocpN4lyL8XezUVLJEhUM4TRazHT4rd3GQfHeyr2i14MzMN oUVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=j6uQL3xM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r73si5866922pfb.221.2019.02.09.11.39.58; Sat, 09 Feb 2019 11:40:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=j6uQL3xM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727336AbfBITi5 (ORCPT + 99 others); Sat, 9 Feb 2019 14:38:57 -0500 Received: from mail-eopbgr770127.outbound.protection.outlook.com ([40.107.77.127]:20293 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727221AbfBITi5 (ORCPT ); Sat, 9 Feb 2019 14:38:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Tz7CXDIlSGB7/AnH8t17YYw/2pXaByp79DvCkSqaHo=; b=j6uQL3xMR4MA486zfkyTW0ki4Tj7Q4jjYcnHMWMJdL0T/qUYbeOjEDeB8+tdLkOAvz31lRhVKMWlS06wL+buVxaFzv5GN3B23XLNFxkIQl86Ppxc3cREuDEGqvLrsSGifwFV0I94DwONlNmGbjk6kafQtymUhx2HEZg2jqa0zc8= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1728.namprd22.prod.outlook.com (10.164.206.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.17; Sat, 9 Feb 2019 19:38:51 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::7d5e:f3b0:4a5:4636]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::7d5e:f3b0:4a5:4636%9]) with mapi id 15.20.1601.016; Sat, 9 Feb 2019 19:38:51 +0000 From: Paul Burton To: Tom Li CC: James Hogan , Jiaxun Yang , Huacai Chen , Ralf Baechle , Alexandre Oliva , "linux-mips@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC] On the Current Troubles of Mainlining Loongson Platform Drivers Thread-Topic: [RFC] On the Current Troubles of Mainlining Loongson Platform Drivers Thread-Index: AQHUv4iaADGqjKpPI06v8WRtTh6JiaXWVScAgADrcYCAAJ6AAA== Date: Sat, 9 Feb 2019 19:38:51 +0000 Message-ID: <20190209193850.tcg46ckwz4q22dwg@pburton-laptop> References: <20190208083038.GA1433@localhost.localdomain> <20190208200852.wcywd7yfcq7zwzve@pburton-laptop> <20190209101132.GA3901@localhost.localdomain> In-Reply-To: <20190209101132.GA3901@localhost.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR07CA0085.namprd07.prod.outlook.com (2603:10b6:a03:12b::26) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) user-agent: NeoMutt/20180716 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [67.207.99.198] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR2201MB1728;6:65cvtQgmsgUWTye8FsjhxR/qOt9yK8xwThYD+GCsKhUGFbxQsxxTQuLsK2YTWnGwhtc9ALFXE729JREpBbXmcKOeLNXQrfCjcOY4hDBpTgMrAwtlCMM/1fa3811j7ueDklEBEPJC5d8Rmhloz89BXwPxuB/udlQp+nedlmeOwVeKeBVsVd2mH0tFF6SwdiATh+nCpeqGqbjDGDulI/KiUJl662yGx1T/fxaYlG9I/Cjlv2jczlSFdJQrVadSjc1L55gsB8Cx4roXal4ziYvJ2hVSjb00Reztcm6L2xEZ9iJv/Q4/WZR3Fxor9VE8PcuqXXD8vLKia8cbg4XwyUYc1uu5eOpTqj7PI9h6IYrb1iNrb7rQFgarYQypjYeaiVUlsukMRfaUwM9NNNKMnMaZH3Yp0qXmaewP8S80aORiyGTAKjMsiAIXjc94DDKVXSYkQboHc0zUKT1gY/U6VZTmLA==;5:15/Ty3xhHdG0BHGsLrmdxvMaXBsrQECTJ/jXAlSOVG8VrDKSO5msY1u3mxU8F09WJvbVzy1QAMrmbjYHAfO5zqMp4FCbQWYBE+eFOr8rGFzFKZFSf8Coa9DM4toc2nFBo4thxQPOZuZOTIAmoFAx1zZLfbX0ejs4O0TF1zw1PHPYv5klkPYQHZ+xJKEdd9E8/JUHPkEdMLur93fecDqDeg==;7:59OJMIB656iuj9dM5Dswk6gR1g3pbY4MJ+RkBUHoy0T5OXZDIezLIdIGuBJomnC0RQJZrBurTWIAGjj97GpGZt45nwaQv6tyG57vj+P6UBUtB1MKUg34cWXTr/S9385hjFJFoW+rFf9EbRr+l6nJqw== x-ms-office365-filtering-correlation-id: 92cc1fa4-2d35-4982-9d01-08d68ec63806 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020);SRVR:MWHPR2201MB1728; x-ms-traffictypediagnostic: MWHPR2201MB1728: x-microsoft-antispam-prvs: x-forefront-prvs: 09435FCA72 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(366004)(346002)(136003)(376002)(39840400004)(396003)(189003)(199004)(71200400001)(1076003)(105586002)(71190400001)(476003)(6116002)(106356001)(3846002)(6246003)(42882007)(102836004)(486006)(6916009)(68736007)(99286004)(97736004)(44832011)(14444005)(76176011)(53936002)(33896004)(256004)(52116002)(186003)(478600001)(33716001)(14454004)(25786009)(6486002)(66066001)(7736002)(305945005)(81156014)(54906003)(2906002)(6506007)(8676002)(26005)(81166006)(446003)(9686003)(6512007)(386003)(229853002)(58126008)(4326008)(11346002)(8936002)(6436002)(316002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1728;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: fPH+Q1UU09Azn2QE3yxUVZbK3Q4HXnYIADpJNsp7IVTpqwFOeVPHZM/B9lXIQrpvnyauaekSRI9BNWrmE/LujnEZBbdAEYmKhtMdnleBmQPBHhBawr5ZZ+nrZ8wA/BV3kZdXtaeKPQA7+8miz2f10sjvwKsS4r18738sQU7/kWVGlI5FpYhCOhnF4mYYSf1IYjiNNdbLRktNhs3N3QM5cLql/5s85KnaW2sjX2fcC0CKS+GH3G7wO0xwT5moGlHw2ADeopa67XNOG6JK0+MIVYJDHk3XtA9UP+gkO4X7EOV6YGa5UssbWanFd5CGpimTtbMot++stuoPlanq+v/ixrVm7Spz7G7hCkOCG1CjRgIX7I0drDuLbPhC1Pk7tHVh86diCHHCdhqUS677MMDXoXPCyOoottXmBeQ/kMsRYos= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92cc1fa4-2d35-4982-9d01-08d68ec63806 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2019 19:38:51.3579 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1728 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tom, On Sat, Feb 09, 2019 at 06:11:33PM +0800, Tom Li wrote: > > To address the particular quote you give from Dmitry Torokhov on the > > yeeloong_hotkey driver - just because the driver as-is includes a bunch > > of non-input related things doesn't mean that it should or has to. From > > a look at the 2009 submission it seems to mix a bunch of policy into th= e > > kernel which really ought to be elsewhere. Generally the input driver > > reports that a key was pressed & something in userland decides what to > > do with it, whereas this driver seems to attempt to bypass that & prod > > at unrelated hardware all by itself. >=20 > Sure, the hotkey driver has some problems in its current shape. I think > the existing code makes some hotkeys on the keyboard behave like a hardwa= re > switch to order to implement rfkill hardblock, and also controls the vide= o > output switch. I think I need to investigate it further. >% > I find reorganization of the current Yeeloong platform driver is relative= ly > easy, since it only involves one machine, I'm already working on it. >=20 > If future developers find it's difficult to support new machines, we can = simply > have more discussion, reorganize the existing hierarchy further, and make > incremental changes. Thanks for working on it, I look forward to seeing your patches :) Paul