Matt Delco has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41607 )
Change subject: drivers/intel/mipi_camera: Generate SSDT for camera
......................................................................
Patch Set 19:
(2 comments)
https://review.coreboot.org/c/coreboot/+/41607/19/src/drivers/intel/mipi_cam...
File src/drivers/intel/mipi_camera/camera.c:
https://review.coreboot.org/c/coreboot/+/41607/19/src/drivers/intel/mipi_cam...
PS19, Line 49: config->cio2_num_ports
I wonder if it's worth be paranoid about the case where cio2_num_ports > MAX_PORT_ENTRIES.
https://review.coreboot.org/c/coreboot/+/41607/19/src/drivers/intel/mipi_cam...
PS19, Line 205: 3 + (config->ssdb.vcm_type ? 1 : 0)
As food for thought, it'd be simpler to use "local1_ret + 1", which is simpler but probably harder for someone to follow (so it might not be a worthwhile change). I had considered whether to use another variable like:
int next_local1 = 1;
and then each of the 4 instances of acpigen_write_if_lequal_op_int() would do:
acpigen_write_if_lequal_op_int(LOCAL1_OP, next_local1++);
--
To view, visit
https://review.coreboot.org/c/coreboot/+/41607
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I15979f345fb823df2560db269e902a1ea650b69e
Gerrit-Change-Number: 41607
Gerrit-PatchSet: 19
Gerrit-Owner: Sugnan Prabhu S
sugnan.prabhu.s@intel.com
Gerrit-Reviewer: Daniel Kang
daniel.h.kang@intel.com
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Matt Delco
delco@chromium.org
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Rizwan Qureshi
rizwan.qureshi@intel.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@google.com
Gerrit-Reviewer: Varshit B Pandya
varshit.b.pandya@intel.com
Gerrit-Reviewer: Wonkyu Kim
wonkyu.kim@intel.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Arthur Heymans
arthur@aheymans.xyz
Gerrit-CC: Kiran2 Kumar
kiran2.kumar@intel.corp-partner.google.com
Gerrit-Comment-Date: Wed, 10 Jun 2020 16:57:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment