Attention is currently required from: Nico Huber, Edward O'Callaghan, Angel Pons.
20 comments:
Commit Message:
nit: no period at the end of commit summaries
Done
Patchset:
Hi Neill, thanks for your patch. […]
Patchset:
Thanks for the review!
File mediatek_i2c_spi.c:
#define ISP_PORT 0x92 >> 1
#define DEBUG_PORT 0xb2 >> 1
Please wrap these in parentheses to avoid operation order problems: […]
Done
nit: double blank line
Done
Patch Set #1, Line 55: uint8_t* buf
The `*` unary operator should have a space before, not after: […]
Done
with ret value so we know how the ioctl actually failed.
Done
Patch Set #1, Line 96: args.data->block[0]
just 'len' here, avoids needing to do that indirection there to check we are in fact memcpy to a hea […]
Done
Patch Set #1, Line 96: args.data->block
args. […]
This is copying the data out of the i2c_smbus_data, starting at 1, using the size specified by [0].
ARRAY_SIZE(data) […]
Done
ARRAY_SIZE(data)
Done
Patch Set #1, Line 242: GPIO line
+1
This is specific to the revision of chip that our board uses (TSUMOP82JUQ).
Patch Set #1, Line 249: 0x426, 7
What are these magic numbers?
The TSUMOP82JUQ has a GPIO line going to WP# on SPI, and these two registers (0x426 and 0x428) control its state. We're following a ISP guide given to us by PanVision that doesn't provide any additional details.
Please move the brace to the following line
Done
Patch Set #1, Line 269: unsigned char
This assumes that the size of `unsigned char` is always 1 byte. I'd use `uint8_t`.
Done
Patch Set #1, Line 271: sizeof
Along with the changes above, this should then be `ARRAY_SIZE`
Done
Please use lowercase for hex
Done
Please move the brace to the following line
Done
If both attempts fail, can we assume that entering ISP has failed?
Observed behavior is that this can fail if the chip is already in ISP mode.
Please move the brace to the following line
Done
To view, visit change 61288. To unsubscribe, or for help writing mail filters, visit settings.