Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1364086imm; Fri, 28 Sep 2018 17:21:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV61fTQ58tB1tn69HP1QYgWj9LdRiQP07PIFDkcmJ1jatu/+izR5fryrJK8RnRtpt9aOuyf+p X-Received: by 2002:a63:1b52:: with SMTP id b18-v6mr829072pgm.303.1538180475467; Fri, 28 Sep 2018 17:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538180475; cv=none; d=google.com; s=arc-20160816; b=dAgSYTL9s9YP7m4O7Z3GHIZL3imsyjSSD175XoOcHJ9uE2lCCZe3BYgrHF+ui1Fu7u 0E1/XkfvCFev64oZ11xNjlLOwdwxkld5hbmAoID/aKDaE2rC34WOVvPnr6m+3lvJViyJ FUAvJkniPEspEjq2jG0JVAqyCuVObVoDgwBZYtGSoE21IHK8hTQGYXsg/my4OzLxAvZe 3BKhK4ySNSbmk+W12TEEuKkrVNPfMHVIPVToZ1541fNGeiQ5UiyXkMj4h49RV+lgh9eT yqKo2INyNL5OVHbjTOCDftrxSeqtDdKytMGmIA/li9O1IyyZ0Gd5vrYgYnQqIIDO1cOl ddNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5wva+ImSP3ywkbSui0dViTSdDClJwuf9DWgEyGO258M=; b=z6kHcvX7Ly8+zDsJBrDa8dTPiHkd7xO4tU5TLlphPi0/iunU+8tV0tbgWPVrFh9Xym sElgBFKaBKlR8Ek1MIo74w89jXjxaSBxxW/4TcoC0ioxFdVHsZ78Wyqiji5yIFzeSH7m poJckLDM++rsoYeCEuQABmBXhQIXE66WuZCbQY5EyG1JW8BqDE1+WC9fbBMp6YW8S02G sNbX4g5WIV9WeDYXKj9imwBrdBjeED7Y+BG7F+09OGk+Fb3Tzfcy7K1d8dLwV8J2FSuI hJfO1W4qWMqZ7BZwejuPyFa8T2+lODVC57vH0HIfTexGqS5BTzUZ/wNuWPNJ79VtClum jvKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FABZeA08; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1-v6si5939532plt.108.2018.09.28.17.21.00; Fri, 28 Sep 2018 17:21:15 -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=@gmail.com header.s=20161025 header.b=FABZeA08; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727405AbeI2Gpo (ORCPT + 99 others); Sat, 29 Sep 2018 02:45:44 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:44557 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727379AbeI2Gpo (ORCPT ); Sat, 29 Sep 2018 02:45:44 -0400 Received: by mail-lf1-f68.google.com with SMTP id b19-v6so1728169lfa.11; Fri, 28 Sep 2018 17:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5wva+ImSP3ywkbSui0dViTSdDClJwuf9DWgEyGO258M=; b=FABZeA08eC8OFgSHK+jjamKjnFHZSKohBiQZTNePROseELrgHAroGypc7g5aCnJ1YI lQf3GDmN8oLbFD7e951o7stsPfJfGJ2/8/jPSsqMamQnHO16HbbZGUT7fIxQ5JlDCmGG h4Kd6vr/h+0owLkR08nlwEBXHpC5KEc2U8NkqMR6qaa4i4GHl5kBa2Xk80DZKOmWUbw3 y8s+5srbojnZbwswZGmRDERW1nf/y0NfYzhikn31/mnhGER/FS3GdmgFBh0V6y6bveay 2uFRKZHzuU4zoHFCPbwgnd0+ji3ixeHLYxplkpTYYsn7xJDv06BL0xJPezS1p2i10JJ+ y6RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5wva+ImSP3ywkbSui0dViTSdDClJwuf9DWgEyGO258M=; b=g7gqzba5CE5AHaVM2zsJI+vSnDePZWcYTFjbjKioeVNLXyeq4Cq2a9hsgCo9nbH0j2 3qofSF2MCV7RyJab+SzFIMyiFbu8SkrDx06e4xcKM6Hq0BKKKQS+dPVK15CddzfV7Etm y8iqoakxv1b/lpXJF2t6XxlS+fr5XsPaxkV0yEuBqraSewtHV50I1K0ApAMeonIbYyVV p5KLDk9ERS649tHLCTkQbhzVOSN+VrakckC7IaUPuIHwc6KfbBch+07cUxtq+OUEAQen 6FUjT2lsPYz0qK0goSECGIZ4+S60LO2evZMe0yNK5GG62w1ZqphGlUTgtMYc/rD7OtcW qEhQ== X-Gm-Message-State: ABuFfojenMPzpxGgmKqaE8rSniBETNX+5H3YWt3LVpVrudegcdRHBsIQ JOoKg+qrM2YNHTBn8zDXVgjs98yjXbcWjBTERg4= X-Received: by 2002:a19:5710:: with SMTP id l16-v6mr432825lfb.71.1538180370067; Fri, 28 Sep 2018 17:19:30 -0700 (PDT) MIME-Version: 1.0 References: <1537538567-5377-1-git-send-email-fabrice.gasnier@st.com> <20180924115301.GV21032@ulmo> <20180924142318.GG23547@ulmo> <4278fef9-ec60-239a-dd0a-29a89d742fa4@st.com> <20180925152022.GB27695@ulmo> In-Reply-To: <20180925152022.GB27695@ulmo> From: Gottfried Haider Date: Fri, 28 Sep 2018 17:19:18 -0700 Message-ID: Subject: Re: [RESEND PATCH] Revert "pwm: Set class for exported channels in sysfs" To: Thierry Reding Cc: fabrice.gasnier@st.com, stefan.wahren@i2se.com, gohai@sukzessiv.net, H Hartley Sweeten , loic.pallardy@st.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, Linux Kernel Mailing List , linux-pwm@vger.kernel.org, michal.vokac@ysoft.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Thierry & Fabrice, >> Still, it is possible to send uevent (KOBJ_CHANGE) on pwmchipN device, >> to notify of a change, e.g. pwmX channel being exported/unexported. I tested this patch, and I am happy to report that it works with the udev rule that Raspbian (Raspberry Pi's Debian derivative) has in place: SUBSYSTEM=="pwm*", PROGRAM="/bin/sh -c '\ chown -R root:gpio /sys/class/pwm && chmod -R 770 /sys/class/pwm;\ chown -R root:gpio /sys/devices/platform/soc/*.pwm/pwm/pwmchip* && chmod -R 770 /sys/devices/platform/soc/*.pwm/pwm/pwmchip*\ '" So while I can't comment on the uevent semantics, it would solve what the original patch attempted to enable (non-root use of pwm). Tested-by: Gottfried Haider Best, Gottfried