Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #52183

Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL

From Roger Shimizu <rogershimizu@gmail.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL
Date 2016-01-14 00:30 +0100
Message-ID <qQD1w-6Mu-11@gated-at.bofh.it> (permalink)
References <qQtvc-dp-3@gated-at.bofh.it> <qQzhg-48x-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Thanks for your feedback, Uwe!

On Thu, Jan 14, 2016 at 4:19 AM, Uwe Kleine-König
<uwe+debian@kleine-koenig.org> wrote:
> Hello Roger,
>
> On 01/13/2016 02:11 PM, Roger Shimizu wrote:
>> Package: src:linux
>> Version: 3.16.7-ckt20-1+deb8u1
>> Severity: normal
>> Control: notfound -1 3.16.7-ckt4-3
>> Control: found -1 3.16.7-ckt7-1
>> Control: found -1 3.16.7-ckt20-1+deb8u1
>> Control: notfound -1 4.2.6-3~bpo8+2
>> Control: notfound -1 4.3.3-5~bpo8+1
>> Control: notfound -1 4.4~rc8-1~exp1
>>
>> I need to run the following command to enable USB port on Linkstation
>> LS-WXL/WSXL (armel/kirkwood with DTS [0] ):
>>   echo 37 >/sys/class/gpio/export
>>   echo out > /sys/class/gpio/gpio37/direction
>>   echo 1 > /sys/class/gpio/gpio37/value
>
> Side note: you can shorten that to:
>
>         echo 37 > /sys/class/gpio/export
>         echo high > /sys/class/gpio/gpio37/direction

Learned new tips. Thank you!

>> The 3-line script runs well on Jessie rootfs + kernel listed below:
>> - 3.16.7-ckt4-3
>> - 4.2.6-3~bpo8+2
>> - 4.4~rc8-1~exp1
>> But fails from 3.16.7-ckt7-1 to 3.16.7-ckt20-1+deb8u1 (latest jessie kernel).
>>
>> The error message is like this:
>> # echo 37 >/sys/class/gpio/export
>> -bash: echo: write error: Device or resource busy
>
> Looking at the device tree I'd say it's correct that the gpio cannot be
> controlled from user space because it's used to enable usb.

I don't understand why it's not able to control the gpio.
Could you please explain in detail?

I'm the upstream contributor for this DTS.
I know there may be something wrong with the gpio part, but I don't
know how to know which part is not working.

> A quick look at the provided dmesg for 3.16.7-ckt7-1 makes me expect
> that usb works there without the gpio commands above? If so there is no
> bug, right?

Yes, dmesg shows USB is recognized. But actually it's not working
until user land's gpio export and setting.
If gpio export fails, the USB won't work at all.
I guess the gpio pin is to set whether to give USB power.

Cheers,
Roger

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Roger Shimizu <rogershimizu@gmail.com> - 2016-01-13 14:20 +0100
  Processed: Re: Bug#810894: src:linux: GPIO probe failure on  Linkstation LS-WXL/WSXL owner@bugs.debian.org (Debian Bug Tracking System) - 2016-01-13 14:30 +0100
  Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Uwe Kleine-König <uwe+debian@kleine-koenig.org> - 2016-01-13 20:30 +0100
    Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Roger Shimizu <rogershimizu@gmail.com> - 2016-01-14 00:30 +0100
      Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Ben Hutchings <ben@decadent.org.uk> - 2016-01-14 01:00 +0100
        Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Roger Shimizu <rogershimizu@gmail.com> - 2016-01-14 14:50 +0100
      Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Uwe Kleine-König <uwe+debian@kleine-koenig.org> - 2016-01-14 15:20 +0100
        Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Roger Shimizu <rogershimizu@gmail.com> - 2016-01-14 15:40 +0100
          Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> - 2016-01-14 16:40 +0100
            Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Roger Shimizu <rogershimizu@gmail.com> - 2016-01-14 17:00 +0100
              Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Roger Shimizu <rogershimizu@gmail.com> - 2016-01-15 01:10 +0100
          Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Roger Shimizu <rogershimizu@gmail.com> - 2016-01-14 16:50 +0100
            Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Uwe Kleine-König <uwe+debian@kleine-koenig.org> - 2016-01-15 09:20 +0100
              Bug#810894: src:linux: GPIO probe failure on Linkstation LS-WXL/WSXL Roger Shimizu <rogershimizu@gmail.com> - 2016-01-15 15:40 +0100

csiph-web