Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp70001pxa; Fri, 31 Jul 2020 06:47:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh/zoZyIDMMlyBp8AdQbm1bBgDSIW82MYmblsyss1wFjZejeiGJ+/RyVvwmzs1HbywyREM X-Received: by 2002:a17:906:f191:: with SMTP id gs17mr4243132ejb.145.1596203273864; Fri, 31 Jul 2020 06:47:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596203273; cv=none; d=google.com; s=arc-20160816; b=EXtHeDau0klrZK6t9W+2f6aaYoATpqbeDiv39VqtM6zuNpGyBPkUvVKQW/XwxrCqVn 8bfeXy2BC2WPkIrf/+topZQDNxZFxECdPZ7CrqQXFK/mIKZJFerexvf0HTah0Vy4gq0M XzuKoBWiAWg0vmDZkRVvWgN5Q2ylpZCOIlBNm/hbIHeX+xf1Sh+arCB3KFMiPsbl2oCV d6Aytcr9pRKkRrTshsm1DS/AJk6JLkDWAZVScjsONByz8+3B4UL7ZVryLHlcN15e0ahg lt1jTj/L9zABvSYaoiCEOho6/0xdmCQTeisYCnjpO7yMyhakKy44k496kRlbgVUmYjpp vUMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=N11YU4JcCL6HK5g7s+Yuz3u0lAzLPdIAWjMQ20fbl9M=; b=ydmzxc/hGZO9AeHRAbO7rWX1rDM8rLUH39JQ5jTvSZOm+iMzEAT1LBAD5TMo+UZCBw w2w0ppwzcVJ0Qu7mcU8xgIhlKNaQcCpIb/5jlKnVsr6YlP4RzFbVk2Dxjr2aQbJA9Qjp bxarlvtePts7o87Ldev3MakHgB1kBr0IBqLz+7XgPdH2wcV/Zzso1Xsrbv9dbHWk+ifz 4B4WRoC8t0vQI2877fbkHDWV5DvTt9FjkNuveG5zinItH8lp4zhcbjCzcSd+TDMU7Br+ bP/CRvDKwLdy5m8doXTAJUXw0wPB2U1O64LpVAK6vD9gn2N6rNBKp7ve8PVkU7Moy21L Hqug== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si5838917eds.431.2020.07.31.06.47.27; Fri, 31 Jul 2020 06:47:53 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730769AbgGaNrB (ORCPT + 99 others); Fri, 31 Jul 2020 09:47:01 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:41901 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727851AbgGaNrB (ORCPT ); Fri, 31 Jul 2020 09:47:01 -0400 Received: from [192.168.1.155] ([95.114.120.213]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MNLVU-1kQLlT1Ho2-00Oq7X; Fri, 31 Jul 2020 15:46:01 +0200 Subject: Re: [PATCH 1/1] platform/x86: revert pcengines-apuv2 wire up simswitch gpio as led To: Florian Eckert , info@metux.net, vhart@infradead.org, andy@infradead.org, Eckert.Florian@googlemail.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200713085010.26394-1-fe@dev.tdt.de> From: "Enrico Weigelt, metux IT consult" Message-ID: <6def788e-f2f8-da80-b189-56ae4630440f@metux.net> Date: Fri, 31 Jul 2020 15:45:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200713085010.26394-1-fe@dev.tdt.de> Content-Type: text/plain; charset=utf-8 Content-Language: tl Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:gvQASfyCUdBJUlXB+j8gsge/Qsoqfw6HG2tgxqrlkG1x1JVZ9ua AbOYsJWe1+Vi13224V7IXa+3NIfzFfA72TRcGqx5BgudblxRmQDUhuvwI4+AoOqdysnOSog KED5MY2Q5Rn8xSqVq12VSGD9gBkkzCqDMoBlhgRQ2gywiN+AFSRIbK2f9gR2BT1+JjrOsxv qUpfl2+x9vSDoI5uECQQg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:AjfJU2kW+VE=:sk/JXlCjo8h1jsPPXyG8or ViEbfNIypIzFFh6PXajXRjNbr+x0h7f0qu/coCWkZq2wF8rVQxpxRNtLN80SYjoUolsEVOxEc o+yMvMMXU0WHs4zE0sZtVnxCOlZmNJSr1BeQvE8878DW4Me5Eazo1HN4GCYkyfZjFqK5Y69CR gC/XXu/LxP9Di67oMDISJIm4PwKa27LDNWvnGRrB9DFDLG/ovw/nT7SbZ3SAJZvLgZlDSDuFv YxR8Dmxlr+ZZdC1DHSQWg9K9asbdyrREfKRkfFGqtgEggnr1vgw/rvYGdUL34/dOggAYnNr56 Zpjb5UBR0eWF/JjjvqyPSzLWpMAAy1CsmqAXnTgC0IKgx7+pmFg2g0o2t1/cVvPXH4vJjXJd7 48o4gN38AjGp+n7tkT7kHJUhefMJoX8vBjcnsW/VAms8jQxj/gSt92PReevx3UkOzfeqIBzw0 fHvnXhBFIZdXDAgXYttzCtFrITk9U8+n2t/8ora3k95K9vH5jlIlUyhqi221jyK/EeFPEWHzK CA6QMgGYUFerq5v8qmKv79VVXWogDgzdlG3xxQxmSvxI6KJPRcIuNLnpyPl59ZpvUG/6JW4mK YX7US77H6XyQkEY99+9RdPBY9r3uURl+vmiDtUKySiDNmfaAFcczxg/LBkXcGWKXsU1bodvcS RwjE9NykMoDLFcNWwZoClzVS1ZMOAcTlj8awMlu0kRm2kYtPRnkVSL6JSxMw0yhglXquIgA7u 6oM/5C+6BcayajvoSgPtOgYZ+ahnSv0vmXWonUfRSe3S57Q9MmU8WIC4E8yzDobJuEuiZ3C0r GU8ohq6d8tYk4p+ASY57twMBNPtTe7OQ/v3uTkkKdcqCXOFAuoHiHz7t874iYYT9o/I54sG Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.07.20 10:50, Florian Eckert wrote: Hello Florian, > This reverts commit 5037d4ddda31c2dbbb018109655f61054b1756dc. no, please dont. > This change connects the simswap to the LED subsystem of the kernel. > From my point of view, it's nonsense. If we do it this way, then this > can be switched relatively easily via the LED subsystem (trigger: > none/default-on) and that is dangerous! If this is used, it would be > unfavorable, since there is also another trigger (trigger: > heartbeat/netdev). I don't think that potential silly abuse is a good argument. It if would, we should also disallow things like "echo FOO > /dev/sda" :p The reason for it wire'ing up was having an simple and easy to use interface. Raw gpios do NOT meet this criteria: complicated to use and not stable addressing (from userland PoV) - would require an extra userland program just for that single specific task. Yes, LED is not the optimal approach, same for other gpio-connected switches, eg. relais or various multiplexers. But as long as we don't have a really fitting subsystem, it's IMHO the best compromise we have so far. Actually, I've already been hacking on a better subsystem, which models switchable inter-device connections. It's called portmux. But it's not usable yet. Lets talk about this instead of just wildly dropping existing functionality, that's used in the field. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287