Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move I2C#6 pins configuration to Device Tree #13

Merged
merged 3 commits into from
Aug 31, 2018

Conversation

staroselskii
Copy link

It's the first take to turn the driver into the full-blown pinctrl one.

  • introduce an interface in pinmux.c to read the configuration from the DT
  • move configuration of I2C#6 to edison.dts
  • make mrfld_pinconfig_protected() static

@andy-shev

It'd be nice if you could take a look and say if I'm on the right track here.

In order to get rid of some board-specific code in edison.c we can
extend pinmux to make it do everything for us by reading the
corresponding fields in DT.

Introduce "protected" flag to distinguish configuration of SCU-owned
pins from the ordinary ones.

Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com>
Now that we have the needed code in pinctrl driver we can enable the
pins from the DTS.

Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com>
There's no need for it to be public now.

Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com>
@andy-shev andy-shev merged commit 4eda9b6 into andy-shev:edison-acpi Aug 31, 2018
staroselskii pushed a commit to staroselskii/u-boot that referenced this pull request Sep 1, 2018
Compiling U-Boot with ubsan/asan libraries and running it in sandbox
may lead to below backtrace:

 => avb init 0
 => avb verify
 ## Android Verified Boot 2.0 version 1.1.0
read_is_device_unlocked not supported yet
common/avb_verify.c:407:31: runtime error: division by zero
AddressSanitizer:DEADLYSIGNAL
Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org>

=================================================================
==9388==ERROR: AddressSanitizer: FPE on unknown address 0x0000004b467f \
    (pc 0x0000004b467f bp 0x000000000000 sp 0x7ffd899fe150 T0)
    #0 0x4b467e in mmc_byte_io common/avb_verify.c:407
    #1 0x4b4c47 in mmc_byte_io common/avb_verify.c:532
    #2 0x4b4c47 in read_from_partition common/avb_verify.c:533
    #3 0x69dc0d in load_and_verify_vbmeta lib/libavb/avb_slot_verify.c:560
    andy-shev#4 0x6a1ee6 in avb_slot_verify lib/libavb/avb_slot_verify.c:1139
    #5 0x45dabd in do_avb_verify_part cmd/avb.c:245
    #6 0x4af77c in cmd_call common/command.c:499
    andy-shev#7 0x4af77c in cmd_process common/command.c:538
    #8 0x46bafc in run_pipe_real common/cli_hush.c:1677
    #9 0x46bafc in run_list_real common/cli_hush.c:1875
    #10 0x46c780 in run_list common/cli_hush.c:2024
    #11 0x46c780 in parse_stream_outer common/cli_hush.c:3216
    andy-shev#12 0x46d34b in parse_file_outer common/cli_hush.c:3299
    andy-shev#13 0x4ad609 in cli_loop common/cli.c:217
    andy-shev#14 0x4625ae in main_loop common/main.c:65
    u-boot#15 0x46f2d1 in run_main_loop common/board_r.c:648
    u-boot#16 0x640253 in initcall_run_list lib/initcall.c:30
    u-boot#17 0x46f9d0 in board_init_r common/board_r.c:879
    u-boot#18 0x40539b in main arch/sandbox/cpu/start.c:321
    u-boot#19 0x7fa94925f82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    u-boot#20 0x408908 in _start (/srv/R/u-boot-master/u-boot+0x408908)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE common/avb_verify.c:407 in mmc_byte_io
==9388==ABORTING

Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants