Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp775712yba; Fri, 26 Apr 2019 08:33:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqb6ny1Ur6prMiLgKp2AgxBg1W5jL2aB2iqP6WuOsNXsOcauGP5YTLPxs/fP9DPyGTInWm X-Received: by 2002:a63:a55:: with SMTP id z21mr44247722pgk.440.1556292808664; Fri, 26 Apr 2019 08:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556292808; cv=none; d=google.com; s=arc-20160816; b=pr9/i7haHRUwKy0gdV4no1NJARUilxpoviwtJV5/bVmR2euX/mC0nVFQmjskeVeR3G FSrEj04cy4YtROsl/ZGQvxL9P7/40vtggOw9spmQ6pVBrXtL3Qwuudkei6vYk0wsQsRv YHpi+VJAMNuKRcgX4yFUTEhio2OT7H3s06S2tDzV2AHAnfUiB5kbLEi/pgSDMorMWg4o hPTzg8E80arfv9VC61mJ6cxgtIMJciAmau4A2vDErbJPqvnT1/o0T9pN94BUuJ2sKa8N iJD9ofyfITbqIR1+llb8exCdLo3HHolli5MOFT7cTzcKWvHyqGsA19NSGI6kJ7XaoHg0 YFxA== 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=YdenmkYf08ijkzIciU/t9HCcpllEEpM9kySg53BytIE=; b=HIGo6H2ErtcVjdz3WVTHztHaW7GnWJlq9oMOmoy8jr/aR3VkJ1Pqs5M+GboxDDcUVn kPncdTp9cMsdtWvOH08LUjVZsYweticFD7W66H7YoUjdVw2iLPNQHNV1yz327gReMbig 38e82zy4fc/5zlvaLALG4DQf8OriBHtuafdupU6+oT6ax5bAIxSuCW6HNvlkpYeV+Tzo EKV0/SkvPDyl/pK+Vc7M/0qi79x9etZonWjeDpfWP6pTEHp7KEwh59byPHJY1G/iQCee TXAVL7JoiA0rflg6y7zhrQ+BGeCwG8KoVs/kUdHTkZlMX2nkObPpsdduRd9n0tCARUx+ QnQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Loe0zQsX; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si24862564plo.372.2019.04.26.08.33.13; Fri, 26 Apr 2019 08:33:28 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Loe0zQsX; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726518AbfDZPcB (ORCPT + 99 others); Fri, 26 Apr 2019 11:32:01 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40226 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726380AbfDZPcA (ORCPT ); Fri, 26 Apr 2019 11:32:00 -0400 Received: by mail-pf1-f196.google.com with SMTP id s4so1899646pfh.7 for ; Fri, 26 Apr 2019 08:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YdenmkYf08ijkzIciU/t9HCcpllEEpM9kySg53BytIE=; b=Loe0zQsXKQxnou5F3tAX2ubrqPsmELvblvGNH8HLznjRolmJyaehH7kaKneBjvpAjp 5Sxqz0lvt7kAtimfJgE0yA58yKU1WWrkJ7GH2+vcYtxyfrEKXvqhnfmb/2yr7TWY/9W+ 1jPwR/B6DBQ+6GJX8HkSjAFCZEhkYuVejcJcSZ2IL5NGgj7DGklqowsTEt6XtJrxS5yb v7J024dfb6RKhjl0ToZKztSE1jKmg4ZoEI3NBwJ72KG+olvtk8lb6VmJmjEbVzugqqxn +UTx6k+QKTHCc53Z536JttWYavgtIQsWqf0y1QOk5Hp3X8/OGbt8y69uE964ZO3Hp+4i VMhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YdenmkYf08ijkzIciU/t9HCcpllEEpM9kySg53BytIE=; b=DAIQTWrWlvccFWy2vbkH7GW5j64dX1r/XQI0A/IKFZW3Hwfte8ZiOwnA4dk7v1gd6J 7P9oS0SsiAuwss6JuiX1ob9vojV/Tn8T6MwSy9Gyh+jLAcBohsx+pu2awHXbKrrDijjt JnaNEnBr6Colw2L2iS4gngaEuD11XMgzDchyLBXW7ztyGjtk8zS3ZBM5LI+Ood9LhzHp 40DWX6gd8VvXrUDv+dirjrUn2Jngb/v1xtTF5ZqG9MtZusi6F5rR0kLgt6E7XOxP+/FA FXtdp4jRhmCSWQu4HWGsCH7gOHGjq1Eg3SUMJnPv+00oYnIPhoEHSs2mX8D6B/GAwUXB MqPQ== X-Gm-Message-State: APjAAAVBM8a0CuftasByUzTtH38mApDjF69lPCxz29QtN/n+lTeVg8XR +hYmafNlgD+PAi/wdq7Uc36i X-Received: by 2002:a63:4144:: with SMTP id o65mr44118909pga.241.1556292718872; Fri, 26 Apr 2019 08:31:58 -0700 (PDT) Received: from Mani-XPS-13-9360 ([2405:204:72c4:4b94:e0ad:83b0:3987:aa05]) by smtp.gmail.com with ESMTPSA id e184sm24541623pfc.102.2019.04.26.08.31.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2019 08:31:57 -0700 (PDT) Date: Fri, 26 Apr 2019 21:01:50 +0530 From: Manivannan Sadhasivam To: "Enrico Weigelt, metux IT consult" Cc: Jan Kiszka , Andy Shevchenko , Mika Westerberg , Linus Walleij , Bartosz Golaszewski , Linux Kernel Mailing List , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, "Rafael J. Wysocki" Subject: Re: [PATCH 2/2] gpio: sch: Add interrupt support Message-ID: <20190426153150.GA28444@Mani-XPS-13-9360> References: <7e328b7e-f4f0-851a-4152-a9ffd058201c@siemens.com> <20190424094506.GA2654@lahna.fi.intel.com> <292e6eff-82cc-6e4d-925b-77a60399e2e0@siemens.com> <20190424100130.GB2654@lahna.fi.intel.com> <1200464b-f969-ebc2-ae82-1f8ca98aaca1@siemens.com> <20190424103306.GC2654@lahna.fi.intel.com> <9377620b-d74a-04d9-a51e-8590400b1c0f@siemens.com> <20190426130615.GT9224@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 26, 2019 at 04:42:35PM +0200, Enrico Weigelt, metux IT consult wrote: > On 26.04.19 15:36, Jan Kiszka wrote: > > > At the same time, there are no real alternatives - to my> knowledge - for the value it brings (various bindings) to simply > switch> the engine. > Which value exactly does that collection of crude wrappers and broken > attempts to buypass the kernel (driving gpios via /dev/mem *facepalm*) > provide ? > /dev/mem access to gpio's were done during the sysfs days (yes to bypass the kernel interface) but now mraa will use chardev if the kernel is chardev supported. Still, it just behaves the way you want (/dev/mem was also optional back then) and I couldn't find a better alternative for playing in the userspace with multiple languages. -Mani > mraa belongs to the category of software, I would never put onto any > production system. (yes, I already had a client who asked me to repair > his mraa-based software. finally, I've replaced mraa w/ a few LoC ...) > > > --mtx > > -- > Enrico Weigelt, metux IT consult > Free software and Linux embedded engineering > info@metux.net -- +49-151-27565287