Skip to content

Commit

Permalink
i3c: aspeed: Reduce the size of DAT related variables
Browse files Browse the repository at this point in the history
The number of the entries of the hardware DAT is 8 on either AST1030 or
AST2600. So there is no need to reserve 32x dev_desc and dev_addr_tbl.
Reduce their size to 8x to improve the memory footprint.

Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
Change-Id: Ib90663e1cd7f9a5ea799d230680f844944338f90
  • Loading branch information
aspeeddylan committed Oct 6, 2023
1 parent ef443f0 commit 12c55bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i3c/i3c_aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,9 @@ struct i3c_aspeed_obj {

union i3c_dev_addr_tbl_ptr_s hw_dat;
uint32_t hw_dat_free_pos;
uint8_t dev_addr_tbl[32];
uint8_t dev_addr_tbl[8];

struct i3c_dev_desc *dev_descs[32];
struct i3c_dev_desc *dev_descs[8];

/* slave mode data */
struct i3c_slave_setup slave_data;
Expand Down

0 comments on commit 12c55bf

Please sign in to comment.