Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp46484imm; Mon, 1 Oct 2018 06:29:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV62B3eV7QcFx/VlwTwWJastMlzJ0aJv48OUJFku+u7C23mo0bGmIC5cTGha2r8fX3vgr/ove X-Received: by 2002:a63:c20f:: with SMTP id b15-v6mr10455736pgd.13.1538400578835; Mon, 01 Oct 2018 06:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538400578; cv=none; d=google.com; s=arc-20160816; b=0UGPdrR/yEYej5VTXnpQdK3j4Jap1wJCOVeKi1sRuUDAYfWJTTTQy9FUDuSVBGR1mW 1+isrdFPmFFa+5X9wTXZPJoqimNcH+5JayUWKvGnIhXcTsffWloE3huh4rt0GdOduOoV febgpq0K9+3eblRcJVJjd0SBcGfB3b+cRJpeGwyFSLUKqKAO/FxzgUZwUorTCwPD5ni+ kEbRYN0GiByrW8hsR+2JxCf8/+zoCG44sqS3cFW/IflK6dpbbXWABAsRPWUTjlL9AVyy u9L475yH5RXDmNF8Tp6aG4JFTX1bjV8Ijyl/zB94ZB+gwTSehb3ZZGJErZu/YaerrP7Q wd7w== 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=e2E6uoPjXapiywz5Wx/Q+C4pJnSMec/JP4QSkoh5OL0=; b=wDUspmGiFXSYVjscSWJIfF5BeW/Qdc6s+Enzwpr8uEad678LwB9MGW4nI341DS2aKD aeb8oAJDwP6u5iejKfMcqEbSAzfgKkh7uiy0Y+M7xWLG9ysK3PMkujF1NDGo/IyCF8qd 6UqWe/hdCvzLLvv4k6FcZ8QklVWZ5ohW6ZtkwvfC8FhxozfIXeis9bSuTo7HNFUXrS0k SXeKIpJqzAPICdkKMDS6/vP7D2IkNl4dtB9t1hMduak+frkQ098jAvaNbtgD9BcLBSGt TpF5o43wuUB/5atAE8D1kdp3KMF2VKdg/PSfrKXsNCzJR4A8UKEQt2TNjpGp/bN4JgeD 154g== 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 e7-v6si13061937plk.122.2018.10.01.06.29.24; Mon, 01 Oct 2018 06:29:38 -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 S1729493AbeJAUGv (ORCPT + 99 others); Mon, 1 Oct 2018 16:06:51 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:48017 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729182AbeJAUGu (ORCPT ); Mon, 1 Oct 2018 16:06:50 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w91DOVnN023089; Mon, 1 Oct 2018 15:28:40 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2mu1bjmbkd-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 01 Oct 2018 15:28:40 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id ABBB63F; Mon, 1 Oct 2018 13:28:39 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 46B1E4543; Mon, 1 Oct 2018 13:28:39 +0000 (GMT) Received: from [10.48.0.167] (10.75.127.46) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 1 Oct 2018 15:28:38 +0200 Subject: Re: [RESEND PATCH] Revert "pwm: Set class for exported channels in sysfs" To: Gottfried Haider , Thierry Reding CC: , , H Hartley Sweeten , , , , , Linux Kernel Mailing List , , 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> From: Fabrice Gasnier Message-ID: Date: Mon, 1 Oct 2018 15:28:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG6NODE2.st.com (10.75.127.17) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-01_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/29/2018 02:19 AM, Gottfried Haider wrote: > 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 Hi Gottfried, Thierry, Thanks for testing. I just sent a new series with: - revert patch - additional patch with proposed uevent notification (change) on pwmchip. Best Regards, Fabrice > > Best, > Gottfried >