Skip to content

Commit ffcf629

Browse files
yang8621NanlinXie
authored andcommitted
dm: rpmb: DM customized changes for RPMB mux kernel module
As RPMB mux kernel module is going to be created, there are two corresponding changes required for DM: 1. The name has been changed to /dev/rpmbmux. 2. DM does NOT check MAC of RPMB result returned by kernel module because DM doesn't own the real key. Tracked-On: #1508 Signed-off-by: Huang, Yang <yang.huang@intel.com> Acked-by: Zhu Bing <bing.zhu@intel.com>
1 parent 193da97 commit ffcf629

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

devicemodel/hw/pci/virtio/virtio_rpmb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ rpmb_read_block(__u8 mode, __u8 *key, __u16 addr, void *buf, __u32 count)
297297
}
298298

299299
rc = rpmb_check_response("read blocks", RPMB_RESP_DATA_READ,
300-
frame_out, count, key, NULL, &addr);
300+
frame_out, count, NULL, NULL, &addr);
301301

302302
if (rc)
303303
return rc;

devicemodel/include/rpmb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#define RPMB_SIM_MODE 1
3838
#define RPMB_BLOCK_SIZE 256
3939
#define RPMB_FRAME_SIZE 512
40-
#define RPMB_PHY_PATH_NAME "/dev/rpmb0"
40+
#define RPMB_PHY_PATH_NAME "/dev/rpmbmux"
4141
#define RPMB_SIM_PATH_NAME "/data/rpmbfile"
4242
#define SEQ_CMD_MAX 3 /*support up to 3 cmds*/
4343

0 commit comments

Comments
 (0)