00:32
qschulz has quit [Remote host closed the connection]
00:33
vvn has quit [Quit: WeeChat 4.0.0]
00:35
qschulz has joined #u-boot
00:46
_whitelogger has quit [Ping timeout: 246 seconds]
00:47
_whitelogger has joined #u-boot
00:51
Manouchehri has joined #u-boot
01:18
mmu_man has quit [Ping timeout: 245 seconds]
01:57
thopiekar has quit [Ping timeout: 245 seconds]
01:58
thopiekar has joined #u-boot
02:30
jclsn has quit [Ping timeout: 244 seconds]
02:32
jclsn has joined #u-boot
02:40
vagrantc has quit [Quit: leaving]
03:07
persmule has quit [Remote host closed the connection]
03:33
alpernebbi has quit []
03:34
alpernebbi has joined #u-boot
03:39
alpernebbi has quit [Read error: Connection reset by peer]
03:41
alpernebbi has joined #u-boot
04:11
naoki has joined #u-boot
04:47
naoki has quit [Quit: naoki]
04:56
Clamor has joined #u-boot
04:56
camus has quit [Quit: camus]
04:57
camus has joined #u-boot
04:59
sng has joined #u-boot
05:06
sng has quit [Remote host closed the connection]
05:06
sng has joined #u-boot
05:51
sng has quit [Remote host closed the connection]
05:56
sng has joined #u-boot
06:00
sng has quit [Ping timeout: 245 seconds]
06:38
urja has quit [Read error: Connection reset by peer]
06:43
cbmuser has quit [Quit: WeeChat 3.0]
06:44
cbmuser has joined #u-boot
06:54
urja has joined #u-boot
06:58
dossalab has joined #u-boot
07:14
sng has joined #u-boot
07:27
Wouter0100670440 has joined #u-boot
07:34
sng has quit [Remote host closed the connection]
07:45
sng has joined #u-boot
08:02
sng_ has joined #u-boot
08:06
sng has quit [Ping timeout: 244 seconds]
08:23
Clamor has quit [Read error: Connection reset by peer]
08:24
Clamor has joined #u-boot
08:39
mmu_man has joined #u-boot
08:46
naoki has joined #u-boot
08:47
naoki has quit [Client Quit]
08:49
sng_ has quit [Remote host closed the connection]
08:59
sng has joined #u-boot
09:09
sylensky[m] has quit [Remote host closed the connection]
09:19
sng_ has joined #u-boot
09:21
sng has quit [Ping timeout: 260 seconds]
09:35
slobodan has joined #u-boot
10:00
sng_ has quit [Remote host closed the connection]
10:09
sng has joined #u-boot
10:13
sng_ has joined #u-boot
10:16
sng has quit [Ping timeout: 245 seconds]
10:20
Clamor has quit [Ping timeout: 252 seconds]
10:24
alpernebbi has quit [Ping timeout: 250 seconds]
11:09
Leopold has quit [Remote host closed the connection]
11:10
Leopold has joined #u-boot
11:44
slobodan has quit [Ping timeout: 240 seconds]
12:06
sng_ has quit [Remote host closed the connection]
12:15
sauce has quit [Ping timeout: 246 seconds]
12:32
sng has joined #u-boot
12:45
naoki has joined #u-boot
12:46
sng_ has joined #u-boot
12:49
sng has quit [Ping timeout: 260 seconds]
12:51
naoki has quit [Quit: naoki]
13:22
vulpes2[m] has joined #u-boot
13:39
dossalab has quit [Quit: dossalab]
14:23
sng_ has quit [Remote host closed the connection]
14:24
sng has joined #u-boot
14:24
goliath has joined #u-boot
14:28
mmu_man has quit [Ping timeout: 240 seconds]
14:28
sng has quit [Ping timeout: 252 seconds]
14:34
persmule has joined #u-boot
14:37
mmu_man has joined #u-boot
14:41
swiftgeek has quit [Ping timeout: 264 seconds]
14:47
sng has joined #u-boot
14:51
sng has quit [Ping timeout: 260 seconds]
14:52
sng has joined #u-boot
14:53
mmu_man has quit [Ping timeout: 245 seconds]
14:55
vagrantc has joined #u-boot
14:55
sng has quit [Remote host closed the connection]
14:55
slobodan has joined #u-boot
14:56
swiftgeek has joined #u-boot
14:59
sng has joined #u-boot
15:00
mmu_man has joined #u-boot
15:07
Wouter0100670440 has joined #u-boot
15:15
vagrantc has quit [Quit: leaving]
15:18
sng has quit [Remote host closed the connection]
15:27
___nick___ has joined #u-boot
15:30
___nick___ has quit [Client Quit]
15:32
___nick___ has joined #u-boot
15:33
___nick___ has quit [Client Quit]
15:35
___nick___ has joined #u-boot
16:05
rainbyte[m] has joined #u-boot
16:09
Clamor has joined #u-boot
16:12
mmu_man has quit [Quit: reboot]
17:13
sng has joined #u-boot
17:46
<
Clamor >
sjg1: as you asked
17:46
<
Clamor >
I have some interesting effects with pmic gpios and fixed-regulators which use pmic gpio.
17:46
<
Clamor >
Layout is next: I use palmas pmic for the test. The pmic itself has GPIO cell so I have written gpio uclass driver for this cell and it works as expected when my device boots (I can toggle gpios and they react and respond). It has its own node inside pmic node and it is correctly bound. But as soon as I set one of these gpios into a fixed regulator it fails with ENODEV.
17:47
<
Clamor >
I thought that maybe pmic children are not probed but no, they are! I have tracked probe and regulator calls and the probe is earlier + at the time the fixed regulator is called (it is not always-on or boot-on) pmic regulator is called as well (they are called by the same device). Maybe you have any clues how to handle this?
17:48
<
sjg1 >
Clamor: The first thing to mention is that valid devices should never return -ENODEV because that means that there is no device. Sometimes you can enable CONFIG_LOG_ERROR_RETURN and see the calls which are failing
17:48
<
sjg1 >
Clamor: I'm not an expert on the pmic subsystem...I think the maintainer is at Samsung
17:49
<
sjg1 >
Clamor: git grep -l ENODEV drivers/power/ |wc -l
17:49
<
sjg1 >
Not a good sign...
17:50
<
sjg1 >
Clamor: What call are you using to enable/disable the regulator?
17:51
<
Clamor >
regulator_set_enable_if_allowed
17:54
<
sjg1 >
Clamor: which calls regulator_set_enable() so that must be returning -ENODEV
17:55
<
Clamor >
Regulator is failing due to failing gpio
17:55
<
sjg1 >
Clamor: in regulator_common_set_enable() ?
17:56
<
Clamor >
I have tracked it to gpio uclass
17:56
<
sjg1 >
Clamor: Which GPIO driver is it?
17:56
<
Clamor >
Palmas gpio driver
17:57
sng has quit [Remote host closed the connection]
17:57
<
sjg1 >
Clamor: I can't see that...which file?
17:58
<
Clamor >
It is not mainlined yet
17:58
mmu_man has joined #u-boot
17:59
<
Clamor >
Basically gpio driver as a child of pmic
18:00
<
sjg1 >
Clamor: Is the GPIO driver for the GPIO pins of the pmic?
18:00
<
Clamor >
The Palmas pmic I use has 8 gpios.
18:01
<
sjg1 >
OK so you are trying to use the regulator API on one of those pins?
18:02
<
sjg1 >
Can you point the output of 'dm tree' ?
18:02
<
Clamor >
Sure, one min
18:10
alpernebbi has joined #u-boot
18:12
<
sjg1 >
Clamor: That looks OK...can you pinpoint where the -ENODEV is being returned?
18:19
Clamor has quit [Ping timeout: 244 seconds]
18:20
Clamor has joined #u-boot
18:21
<
Clamor >
I need more specific description of what log type you refer to
18:23
<
sjg1 >
Clamor: Well, is dm_gpio_set_value() returning -ENODEV when you call regulator_set_enable() ?
18:24
<
Clamor >
Yes, it cannot get gpio dev
18:26
<
sjg1 >
Does palmas_gpio_direction_output() get called? What is priv->chip2 ?
18:27
<
sjg1 >
Can you post the console log? I assume there it no error message?
18:27
<
Clamor >
Palmas is multichip pmic, gpio regs are on chip2
18:27
<
sjg1 >
Clamor: Do you have a tree I could look at?
18:28
<
Clamor >
It is in pmic driver
18:28
<
sjg1 >
Clamor: Which branch on github?
18:30
<
Clamor >
Console log
18:31
dossalab has joined #u-boot
18:31
sauce has joined #u-boot
18:32
<
sjg1 >
Clamor: Hmmm, well palmas_probe() is wrong...you should probably add both chips to the DT..but calling i2c_get_chip() is not good
18:33
sng has joined #u-boot
18:33
<
sjg1 >
Clamor: Since the pmic is not an i2c bus...it is odd
18:33
<
sjg1 >
See " i2c_generi 0 [ + ] i2c_generic_chip_drv | `-- generic_59"
18:33
<
sjg1 >
If that is the pmic bus it should be a child of the pmic
18:34
<
Clamor >
Linux uses dummy i2c chip iirc to handle this
18:36
<
Clamor >
But basically this should not matter since it is not exposed and referred in tree. If pmic is probed, chip should be got as well
18:39
<
Clamor >
Pmic bus? Tegra has power i2c bus, but it is not exclusive to pmic. And if pmic has 4 chips within itself? What to do
18:40
<
sjg1 >
Clamor: We need a better way of modeling this, since at present there is only one address supported per chip
18:41
<
sjg1 >
It looks like gpio_request_tail() is calling uclass_get_device_by_ofnode() in the case where !desc-dev ?
18:41
<
sjg1 >
That code looks bogus to me
18:44
<
sjg1 >
I don't see how desc->dev can not be set up. That is only used for legacy GPIOs
18:45
<
sjg1 >
For driver model, everything needs to request a GPIO with things like gio_dev_request_index(), etc., i.e. they receive a gpio_desc struct
18:45
<
Clamor >
sjg1: modelling is fine I was able to link one more chip without major issues
18:47
<
Clamor >
About gpio stuff yes, you are correct. Device should be there at time of call but it does not work for some reason
18:47
<
sjg1 >
Clamor: I think you need to figure out what GPIO call is resulting in the bad gpio_request_tail() call...quite apart from what looks like a bug or a workaround in gpio_request_tail()
18:48
Clamor has quit [Quit: Quit]
19:43
swiftgeek has quit [Ping timeout: 260 seconds]
20:04
___nick___ has quit [Ping timeout: 260 seconds]
20:17
Wouter0100670440 has joined #u-boot
20:26
<
johang >
looks like booting from QEMU drive is broken on master. worked 1-2 week ago.
20:26
vagrantc has joined #u-boot
20:27
<
johang >
at least on i386
20:28
vagrantc has quit [Client Quit]
20:29
vagrantc has joined #u-boot
20:45
vagrantc has quit [Quit: leaving]
20:46
vagrantc has joined #u-boot
20:57
slobodan has quit [Ping timeout: 244 seconds]
20:58
slobodan has joined #u-boot
21:01
<
sjg1 >
johang: Is this qemu-x86 ?
21:06
dossalab has quit [Quit: dossalab]
21:24
sng has quit [Remote host closed the connection]
21:26
goliath has quit [Quit: SIGSEGV]
21:29
<
sjg1 >
johang: Try this?
21:36
<
johang >
I'll give it a shot
21:44
soxrok2212 has quit [Read error: Connection reset by peer]
21:47
soxrok2212 has joined #u-boot
21:56
<
sjg1 >
johang: OK that looks like something wrong with USB, so I don't have any ideas there. Perhaps email a bug report and cc usb: ?
22:17
slobodan has quit [Ping timeout: 245 seconds]
22:25
naoki has joined #u-boot
22:30
soxrok2212 has quit [Read error: Connection reset by peer]
22:50
swiftgeek has joined #u-boot
22:56
soxrok2212 has joined #u-boot
22:59
umbramalison has quit [Remote host closed the connection]
22:59
umbramalison has joined #u-boot
23:06
umbramalison_alt has joined #u-boot
23:06
umbramalison has quit [Ping timeout: 252 seconds]
23:35
swiftgeek has quit [Quit: swiftgeek]
23:36
swiftgeek has joined #u-boot