#
✕ nick:j_ey
#asahi-dev · 2021-12-07 16:16
j_eyalder lake
#asahi-dev · 2021-12-07 12:06
j_eymarcan: 'start_off' looks unused fca0a653bb4b9a161781b0dd01e0eadd83ecf904
#asahi-dev · 2021-12-03 18:36
j_eyim sure u-boot won't add much time
#asahi-dev · 2021-12-03 18:33
j_eylandscape15[m]: u-boot will likely load GRUB on most distros
#asahi-dev · 2021-12-03 18:31
j_eylandscape15[m]: yes if you want to be able to update kernels
#asahi-dev · 2021-12-03 15:21
j_eysven wasnt emailed, but hes a MAINTAINER
#asahi-dev · 2021-12-03 15:21
j_eyexample https://lore.kernel.org/lkml/202112032244.L0cMZUzs-lkp@intel.com/T/#u
#asahi-dev · 2021-12-02 11:07
j_eylandscape15[m]: just like linux didnt need a rewrite!
#asahi-dev · 2021-12-02 10:57
j_eyyes kettenis
#asahi-dev · 2021-12-01 14:46
j_eyI download the mbox from lore.kernel.org, that's easy if you have low volume, might not scale
#asahi-dev · 2021-12-01 14:43
j_eymaz: an album by Frank Turner. wrong Frank!
#asahi-dev · 2021-12-01 14:41
j_eymutt? :P
#asahi-dev · 2021-11-29 20:20
j_eythe target?
#asahi-dev · 2021-11-29 19:23
j_eyjannau: can you figure out if youre still getting packets (print something in applespi_got_data i guess)
#asahi-dev · 2021-11-29 19:21
j_eyjannau: thanks, will squash that in
#asahi-dev · 2021-11-29 19:03
j_eyty
#asahi-dev · 2021-11-29 19:01
j_eyjannau: can you paste the diff please? good to know it's cs related
#asahi-dev · 2021-11-28 23:24
j_eyjannau: thanks again for looking into it more (if nothing else, will be useful info if markan ends up redoing the driver)
#asahi-dev · 2021-11-28 23:23
j_ey(cs_hold, cs_active, cs_inactive)
#asahi-dev · 2021-11-28 23:22
j_eythe spi core code has some code for delays after asserting cs
#asahi-dev · 2021-11-28 21:20
j_eyethanr: m1n1 doesnt do any file system stuff
#asahi-dev · 2021-11-28 18:12
j_eykettenis: how come you re-read AVAIL inside the rx loop, but not the tx one?
#asahi-dev · 2021-11-28 18:02
j_eyI mean, if someone wants to try the bsd driver on max/pro..
#asahi-dev · 2021-11-28 17:55
j_eysven: I do have an older version w/o interrupts, but what marcan says etc :P
#asahi-dev · 2021-11-28 17:54
j_eykettenis: im guessing the openbsd one hasnt been tested on pro/max?
#asahi-dev · 2021-11-28 17:50
j_eyYou'd also need "#define REG_CLKIDLE 0x38"
#asahi-dev · 2021-11-28 17:50
j_eyjannau: you could also try: writel_relaxed(0, spi->base + REG_CLKIDLE);, just before the writel_relaxed(REG_CLKCFG_ENABLE, spi->base + REG_CLKCFG);
#asahi-dev · 2021-11-28 17:47
j_eyjannau: you could try comment out the `apple_spimc_drain_rx` in apple_spimc_transfer_one
#asahi-dev · 2021-11-28 17:45
j_eysven: openbsd starts with RX first too.. https://github.com/openbsd/src/blob/master/sys/arch/arm64/dev/aplspi.c#L216
#asahi-dev · 2021-11-28 17:39
j_eyjannau: no I dont have any real suspicions.. but it seems like markan might take over, so Im just going to park it for now
#asahi-dev · 2021-11-28 16:27
j_eyyou also want master->use_gpio_descriptors = true;, so the core gets the cs from the DT for you
#asahi-dev · 2021-11-28 16:25
j_eyand in the irq hanlder once you sent everything you call spi_finalize_current_transfer
#asahi-dev · 2021-11-28 16:25
j_eyoverall it's pretty simple to have a basic SPI driver, you just need a to provide a transfer_one, and you return 0 from that if the transfer finished and 1 if there is more to send
#asahi-dev · 2021-11-28 16:17
j_eynerdsnipe failed
#asahi-dev · 2021-11-28 16:15
j_eylol sorry, I shouldn't encourage you
#asahi-dev · 2021-11-28 16:15
j_eyits 1am japan, you can probably do it before 3am
#asahi-dev · 2021-11-28 16:12
j_eymarcan: also as long as you stream it :P
#asahi-dev · 2021-11-28 16:11
j_ey(I mean, have any spi driver for it upstream)
#asahi-dev · 2021-11-28 16:11
j_eyI just want to try get it upstream!
#asahi-dev · 2021-11-28 16:10
j_eysure!
#asahi-dev · 2021-11-28 16:07
j_eyjannau: are you willing to try figure out whats missing, if not maybe marcan or someone else can help
#asahi-dev · 2021-11-28 15:56
j_eythe only way I could think of figuring it out is to just slowly add back in some of the register that corellium set, that I didnt
#asahi-dev · 2021-11-28 15:35
j_eyoh yikes
#asahi-dev · 2021-11-28 15:34
j_eyor just with my driver? :|
#asahi-dev · 2021-11-28 15:34
j_eyjannau: after the caps lock thing or?
#asahi-dev · 2021-11-28 15:19
j_eyI have 3 more weeks left, although I guess it might get quite quiet
#asahi-dev · 2021-11-28 15:19
j_eynice!
#asahi-dev · 2021-11-28 15:17
j_eysven: how is the rewrite going?
#asahi-dev · 2021-11-28 15:17
j_ey:)
#asahi-dev · 2021-11-28 15:15
j_eyi started to try write a spi.py.. but realised I didnt want to deal with getting the actual HID protocol right to properly get packets

plus ›