Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp501365imj; Sat, 9 Feb 2019 02:12:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IZSrlMSx4s3m0Y8ALM6RpDNv5n6PocRHRKvVWJeaI6cHtZMup78G4BkPHkszdT1IEdTLEjm X-Received: by 2002:a63:cd4c:: with SMTP id a12mr25191536pgj.252.1549707126663; Sat, 09 Feb 2019 02:12:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549707126; cv=none; d=google.com; s=arc-20160816; b=oRMWXVYTgvpjwduOLzlvl/57XzD2D+7icyLnT8JLQl8T/sMbGrrR685ybm7tksQudL oan06/IFvzomj9XwD4A/I2RgSI8ZXkdHO+PwwRhiHK/x6VD2Ypc5HHLZvu99rleRgwnS TGHyUGlLju0XJ8Ntb8APAMyjNQfuV8y9QtpABI0j396xggA3V9pW8Gx/kmbStJw3Ng+V +HqYi1fDpqzPmPLdWnID+6nWk1NogD57bzKz8sbf0S11ocVp8cIf/WTayWzI8m819kbh 5yUZQvnH/qZTXT+JDineuOmqYIl4PRivVnrCkBUqR5iEytCTHHSH6IiM1Dz75Uh77Utq vN8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XlUD3gM+TBHDQIqjr9rppza1HzakpFOnzXNroW3F32s=; b=rPdCuxsPH9HFSDFQ14cpWsp5AyGzagl0EVOe/h48Z0Yo1X0JZcf/Y4T2CUxzsY/yGi 7nrQpvlOqayo0Q5YpareMO9BPOfbSsS3mQ/PjVTfjGZELiEL+08ACSG2VvGtayxsvLtx NFo9tf6wpP5YLL5rF1vBbJjHuYSjKR0tcZcBl2eL2oBHP9XefvgTV0T9/P2+FdcBrM4c qg0CB0iyIVTTjGmLJHIGvxbpdAz9kU38a1Alb7r1MMBWfzlDGVfaUZPOJvY0tQgOsyxD ioiiBhwISNDRwo0SXZdZ/CbCMkzm2njHI1hdF/hZj05yYrjUWmxVxNL7SSBqE7VGOrWD xBjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tomli.me header.s=1490979754 header.b=YhLeYq3G; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si4633408pgd.117.2019.02.09.02.11.50; Sat, 09 Feb 2019 02:12:06 -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=@tomli.me header.s=1490979754 header.b=YhLeYq3G; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726880AbfBIKLq (ORCPT + 99 others); Sat, 9 Feb 2019 05:11:46 -0500 Received: from tomli.me ([153.92.126.73]:54622 "EHLO tomli.me" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726058AbfBIKLp (ORCPT ); Sat, 9 Feb 2019 05:11:45 -0500 Received: from tomli.me (localhost [127.0.0.1]) by tomli.me (OpenSMTPD) with ESMTP id 7d5e56c4; Sat, 9 Feb 2019 10:11:42 +0000 (UTC) X-HELO: localhost.localdomain Authentication-Results: tomli.me; auth=pass (login) smtp.auth=tomli Received: from Unknown (HELO localhost.localdomain) (2402:f000:1:1501:200:5efe:7b76:76e8) by tomli.me (qpsmtpd/0.95) with ESMTPSA (DHE-RSA-CHACHA20-POLY1305 encrypted); Sat, 09 Feb 2019 10:11:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tomli.me; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:in-reply-to; s=1490979754; bh=EBIKsvw4zmVonKYgI4gXCNmcrvM9dfpkvXYljZmtxyI=; b=YhLeYq3Gk/KgrsefJ9bu38CTw9evCEuy5zV5rEwY47pQlenVrj+fkslE7UqbM+H4JeClfPS+8Pahisbp/4260wqCQuFsJTElGaoLElLqF2V/qF7ZITkV/l1V4qD8pQS09+3Cms568ZgzCU4Bk4DfwF/TInoR/tSXHxeIeeIF011m3KYod6cgHAOlZ3WH2cUATQ/8KhEQVTyHX3ny5OfLBYYBleVgtv93KwRNzFF4YT5C+l0hd2zo1L6Jo9XPhnkab1FCWxMjSOoqlFQM6+EOuAQzGZOoyypbMKNxfK1VmsC7ViWuWUIW6MKeXqjQTuFR+PO/x8mSKEunjrFXZWUybg== Date: Sat, 9 Feb 2019 18:11:33 +0800 From: Tom Li To: Paul Burton 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 Message-ID: <20190209101132.GA3901@localhost.localdomain> References: <20190208083038.GA1433@localhost.localdomain> <20190208200852.wcywd7yfcq7zwzve@pburton-laptop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <20190208200852.wcywd7yfcq7zwzve@pburton-laptop> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > 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 the > 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. 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 hardware switch to order to implement rfkill hardblock, and also controls the video output switch. I think I need to investigate it further. > Personally I see no reason for that hwmon driver to live under > drivers/platform/mips rather than drivers/hwmon. All that does is bypass > the attention of the drivers/hwmon/ maintainers who would be best placed > to offer input & ensure the driver is actually any good. Yes. I think if our conclusion is "drivers/platform/mips is not a good idea", it should be moved to the appropriate category in the future. > I think that question should prompt another - if we have maintainers for > various driver subsystems, why not place the drivers under their care in > the already established directories? > > Thanks, > Paul Thanks for your reply, I'm fully agree with your comments about platform drivers. I find reorganization of the current Yeeloong platform driver is relatively easy, since it only involves one machine, I'm already working on it. 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. Cheers, Tom Li Beijing GNU/Linux User Group. --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEJVIRsjlaWj4OSKDx+tPrBeiOjW0FAlxep08ACgkQ+tPrBeiO jW2Uhg//S9DyQ2E8xIFqU+qR0m93iXTPcWfX7/Z1HywSTbz32ppA5woe5VrKwDP1 wKht81YsRDQFZk2ctMh02owBB18GrhG9rgeXcdMUgTByvAfieuUju84GF6hQMMl9 NAI3AoiT1lQgGZsALvHZpFLHAVWlvd/1M120YpQnOsDCLXqaURufMIt3lDaG3dcr 0A2v0HnRc/ltklrKiHkNuQ1+h+iiYfCNH4TeMsAsti5GZ6jchxTWNy6y+M2iraPu ltN09uu70BoQ+iXo0Cc9S0YQx/jHMRij1sC0ZEq6S3JTJtWtDx8f6+cyurjGQEc3 jJ8I5E24RQAXFlWNB/y2edgBGHVnwRVl4XROvtDnAPRFDZe82q1DQVXSpADEaGlm a76x1eKv/hi4m6HJII8cKmRvw1uX2jx/0t3vGdqiQ2hb2qDqmTXX7sjQNPLf7olQ y1mFS6wls0HhaqLfv4oN0I0NAPI40z/QznPeXzJurmf14WowaMDX3oalR6P/96pJ a+aas05HjDfNyubmsntf3OhiFysbMDTC6oOVnbXZbQn+a2vQjGooaCF5pIwrKEeQ H00t0e/EkeQosFdOvxrGY3YBgSl7G0AxtE0pfMAUs+kwWFeNkuzVUl9EP9uGYvNW zKPBQglJnlXAn1RVpjyDkmsAv69oF9NfBwTkTPNgPl+4UPy8M8E= =t1nv -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe--