[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] [bug #45256] Raspberry Pi sysfs bug workaround for lin
From: |
Nick Sayer |
Subject: |
Re: [avrdude-dev] [bug #45256] Raspberry Pi sysfs bug workaround for linuxgpio driver |
Date: |
Sun, 7 Jun 2015 06:27:31 -0700 |
Perhaps some sort of driver flag... Call it "assume_exported" that would
neither export nor unexport, but instead report an error if the requisite files
didn't exist (implying the pins weren't exported).
I don't know if driver specific flags are an option or not, but that might be
the best way forward.
Sent from my iPhone
> On Jun 7, 2015, at 2:16 AM, Peter Korsgaard <address@hidden> wrote:
>
> On Fri, Jun 5, 2015 at 4:08 PM, Nick Sayer <address@hidden> wrote:
>
>>> I believe this affects Raspbian only.
>
>> It will affect any platform where udev rules have been set to change the
>> permissions of the gpio nodes. This includes platforms where users have
>> manually created such rules because they understand the value of “least
>> privilege.”
>
> Alternatively, the linuxgpio logic could be changed to only try to
> export if the gpio isn't exported already (and leave exported at close
> time), and those platforms could just export the needed gpios up
> front.
>
> --
> Bye, Peter Korsgaard