[ 13.638877] gpio-fan gpio-fan: GPIO fan initialized
/* GPIO FAN only 2big2 */
#define NET2BIG_V2_GPIO_FAN_FAIL 25
static struct gpio_fan_alarm net2big_v2_fan_alarm = {
.gpio = 25,
.active_low = 1,
};
static struct gpio_fan_platform_data net2big_v2_fan_data = {
.alarm = &net2big_v2_fan_alarm,
};
static struct platform_device net2big_v2_gpio_fan = {
.name = "gpio-fan",
.id = -1,
.dev = {
.platform_data = &net2big_v2_fan_data,
},
};
Yes, have a look to the appended file.Do you have in /sys/devices/platform an directory with name gpio-fan ? and if yes what is the content ?
yes, at full speed, it is very noisy.was the fan working ok in 4.2.5 ?
Here it is. Not easy to understand due to all the links :-)what is inside the sub directories "driver" and "hwmon" ? (in sys/devices/platform/gpio-fan)
root@2big2:/sys/devices/platform/gpio-fan # ls -l
total 0
lrwxrwxrwx 1 root root 0 2016-01-03 21:48 driver -> ../../../bus/platform/drivers/gpio-fan
-rw-r--r-- 1 root root 4096 2016-01-03 21:48 driver_override
drwxr-xr-x 3 root root 0 2016-01-03 21:37 hwmon
-r--r--r-- 1 root root 4096 2016-01-03 21:48 modalias
drwxr-xr-x 2 root root 0 2016-01-03 21:48 power
lrwxrwxrwx 1 root root 0 2016-01-03 21:48 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 2016-01-03 21:37 uevent
root@2big2:/sys/devices/platform/gpio-fan #
root@2big2:/sys/devices/platform/gpio-fan # cd driver
root@2big2:/sys/devices/platform/gpio-fan/driver # ls -l
total 0
--w------- 1 root root 4096 2016-01-03 21:53 bind
lrwxrwxrwx 1 root root 0 2016-01-03 21:53 gpio-fan -> ../../../../devices/platform/gpio-fan
--w------- 1 root root 4096 2016-01-03 21:53 uevent
--w------- 1 root root 4096 2016-01-03 21:53 unbind
root@2big2:/sys/devices/platform/gpio-fan/driver #
root@2big2:/sys/devices/platform/gpio-fan # cd hwmon
root@2big2:/sys/devices/platform/gpio-fan/hwmon # ls -l
total 0
drwxr-xr-x 3 root root 0 2016-01-03 21:37 hwmon1
root@2big2:/sys/devices/platform/gpio-fan/hwmon # cd hwmon1
root@2big2:/sys/devices/platform/gpio-fan/hwmon/hwmon1 # ls -l
total 0
lrwxrwxrwx 1 root root 0 2016-01-03 21:50 device -> ../../../gpio-fan
-r--r--r-- 1 root root 4096 2016-01-03 21:50 fan1_alarm
-r--r--r-- 1 root root 4096 2016-01-03 21:50 name
drwxr-xr-x 2 root root 0 2016-01-03 21:50 power
lrwxrwxrwx 1 root root 0 2016-01-03 21:50 subsystem -> ../../../../../class/hwmon
-rw-r--r-- 1 root root 4096 2016-01-03 21:37 uevent
root@2big2:/sys/devices/platform/gpio-fan/hwmon/hwmon1 # cat fan1_alarm
0
root@2big2:/sys/devices/platform/gpio-fan/hwmon/hwmon1 # cat name
gpio_fan
root@2big2:/sys/devices/platform/gpio-fan/hwmon/hwmon1 # cat uevent
root@2big2:/sys/devices/platform/gpio-fan/hwmon/hwmon1 # cd power
root@2big2:/sys/devices/platform/gpio-fan/hwmon/hwmon1/power # ls -l
total 0
-rw-r--r-- 1 root root 4096 2016-01-03 21:51 autosuspend_delay_ms
-rw-r--r-- 1 root root 4096 2016-01-03 21:51 control
-r--r--r-- 1 root root 4096 2016-01-03 21:51 runtime_active_time
-r--r--r-- 1 root root 4096 2016-01-03 21:51 runtime_status
-r--r--r-- 1 root root 4096 2016-01-03 21:51 runtime_suspended_time
root@2big2:/sys/devices/platform/gpio-fan/hwmon/hwmon1/power #
It is the same behavior as the 4.3.3 gpio-fan.c version: the fan runs at full speed. Can I do some debugging? With the led debugging I used the nano editor to switch the leds.fvdw wrote:Yes gpio-fan driver is modified, however I can not see why the changes they made would affect the operation on the 2big2.
Anyhow added a recompiled kernel with the gpio-fan.c file of 4.3.3 replaced by the one in 3.14.2 let see if the fan has now the same behavior as in 3.14.2.
If it is still running at full speed I guess the alarm gpio setting might be a reason
root@2big2:/sys/devices/platform/gpio-fan # ls -l
total 0
-rw-r--r-- 1 root root 4096 2016-01-03 22:02 driver_override
-r--r--r-- 1 root root 4096 2016-01-03 22:02 modalias
drwxr-xr-x 2 root root 0 2016-01-03 22:02 power
lrwxrwxrwx 1 root root 0 2016-01-03 22:02 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 2016-01-03 21:58 uevent
root@2big2:/sys/devices/platform/gpio-fan #
oot@2big2:/sys/devices/platform/gpio-fan # ls -l
total 0
-rw-r--r-- 1 root root 4096 2016-01-03 22:02 driver_override
-r--r--r-- 1 root root 4096 2016-01-03 22:02 modalias
drwxr-xr-x 2 root root 0 2016-01-03 22:02 power
lrwxrwxrwx 1 root root 0 2016-01-03 22:02 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 2016-01-03 21:58 uevent
root@2big2:/sys/devices/platform/gpio-fan #
echo 1 > control
andjohn wrote:Hey FVDW,
I'm still getting failure to liniarize, but i think its just over gigabit.
Users browsing this forum: No registered users and 12 guests