Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9121009ybi; Wed, 10 Jul 2019 05:05:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiSyD8khOskkApfbfNjWj1Ik410P/B+Mjks07dSc3PlLHdg/CuSHNcwVxTsruzrUGs2xik X-Received: by 2002:a17:902:9897:: with SMTP id s23mr38329989plp.47.1562760343800; Wed, 10 Jul 2019 05:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562760343; cv=none; d=google.com; s=arc-20160816; b=YS4r37LgqOLBP9G2P4xpEkRs5zFEfoiD4VGvgd4TEz3l2IgEIdAEbYNtGrz9y4VcAz qvJrndr0DePBk+W/9Xuy3E+2tlTM87wamydpGC5V6jiKNuLdonobKWD1NXVAdPJGqyqO EwfSsfrtm8JtyIgeQg94uyXnPp6WrKCjO+UJQ5kMIZ/EnkRQalhWRjskNaUWkmDf4GXH T/oO2UK0Z5t731z33HWpgfumDWGjAxFG/V8C93V8GjZQlqRQh+vV8S1DJHW3qgHINzzI Wg7/b8PnqyfBr0orPu2iw1Un2wC5AUQVy6G/MSGw+4RQx6VXrw3TNXq/OqMLaDU7qe5P em6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=omexTmr9pqTIP2r6/jp4cX742o0+Y827Py8fPVpogno=; b=ntM6V9qxMMS68486KbfHE/7sgSxdB6aKzqcF+l6Ji/PQwdUC3IMux6Gcjh9LEkH+5D XVyExAjZNBPFj0RfVqMSNGwDeqqjutHzSNnJnTkJjwEXbNSLGZr7rX8wUpKLWtc435iQ zlI7ICfLpFhP6d/Fgf+uOLcdL8ollsvyLex4UG0NfrlOwR2K8HGQ/U9g1e7qlxG2JSgR 2YM99hkzjza9xVW9W7gs7qRmi4I24ArmFifkSmjFO9a25BE08kJbPh05xlrxtI3CCJ0I /W9GH59F2SZ9b5sA+JZi+L/lBM3xwZhX3hoTjKFe+UrYtl2pQrWCehxuGDl6LW6vFi3z GJ1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 y12si2326271pgg.585.2019.07.10.05.05.19; Wed, 10 Jul 2019 05:05:43 -0700 (PDT) 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; 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 S1726898AbfGJMDm (ORCPT + 99 others); Wed, 10 Jul 2019 08:03:42 -0400 Received: from host-88-217-225-28.customer.m-online.net ([88.217.225.28]:39186 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725911AbfGJMDm (ORCPT ); Wed, 10 Jul 2019 08:03:42 -0400 Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id 5F57D216E4; Wed, 10 Jul 2019 12:03:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 10 Jul 2019 14:03:40 +0200 From: Florian Eckert To: "Enrico Weigelt, metux IT consult" Cc: Eckert.Florian@googlemail.com, info@metux.net, dvhart@infradead.org, andy@infradead.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] platform/x86/pcengines-apuv2: add legacy leds gpio definitions In-Reply-To: References: <20190704090205.19400-1-fe@dev.tdt.de> <20190704090205.19400-3-fe@dev.tdt.de> Message-ID: X-Sender: fe@dev.tdt.de User-Agent: Roundcube Webmail/1.1.5 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-07-08 21:42, Enrico Weigelt, metux IT consult wrote: > On 04.07.19 11:02, Florian Eckert wrote: >> Extend the apu2_leds definition to make the leds exportable via the >> legacy gpio subsystem. > > What for ? The gpios are bound to LED devices as that's exactly what > they are: LEDs. I have back ported your pcengines-apuv2 device and gpio-amd-fch GPIO driver to the kernel version 4.19 on OpenWrt. If I compile and load this without the change no LEDs are visible in "/sys/class/leds"! From my point of view the connection between the GPIO and the LEDs subsystem is missing. How should the LED subsystem know which GPIO to use? If I add the change to the pcengines-apuv2 device then the LEDs will be visilbe under "/sys/class/leds" and could be used, by OpenWrt userland. Mybe I miss something.