gadget snap should allow a gpio's direction to be set

Bug #1693007 reported by Tony Espy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Wishlist
Unassigned

Bug Description

The gadget snap should allow the direction of a gpio to be initialized in the gadget snap. Currently, when a gpio slot is connected, a systemd unit is created which exports the gpio, which could easily be extended to also set the direction.

For instance, here's an existing gadget snap gpio definition:

slots:
    cloud-led:
        interface: gpio
        number: 346

This instead would become:

slots:
    cloud-led:
        interface: gpio
        number: 346
        direction: out

This would control the value of the following sysfs node:

/sys/class/gpio/gpio346/direction

This is being reported on an Ubuntu Core 16 system running snapd 2.25 from core snap 16-2 (r1804).

Tags: ce
Tony Espy (awe)
Changed in snapd:
status: New → Confirmed
tags: added: se
Tony Espy (awe)
tags: added: ce
removed: se
Michael Vogt (mvo)
Changed in snapd:
status: Confirmed → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.