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

Dev #27

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Dev #27

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions ufs_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ struct flag_fields ufs_flags[] = {
{"fPermanentlyDisableFw", (URD|UWRT), (READ_NRML|WRITE_ONCE), DEV},
{"Reserved", ACC_INVALID, MODE_INVALID, LEVEL_INVALID},
/*D*/ {"Reserved", ACC_INVALID, MODE_INVALID, LEVEL_INVALID},
/*E*/ {"fWriteBoosterEn", (URD|UWRT), (READ_NRML|WRITE_VLT), DEV},
/*F*/ {"fWBFlushEn", (URD|UWRT), (READ_NRML|WRITE_VLT), DEV},
/*E*/ {"fWriteBoosterEn", (URD|UWRT), (READ_NRML|WRITE_VLT), DEV | ARRAY},
/*F*/ {"fWBFlushEn", (URD|UWRT), (READ_NRML|WRITE_VLT), DEV | ARRAY},
/*10h*/ {"fWBFlushDuringHibernate", (URD|UWRT),
(READ_NRML|WRITE_VLT), DEV},
(READ_NRML|WRITE_VLT), DEV | ARRAY},
/*11h*/ {"fHPBReset", (URD|UWRT), (READ_NRML|SET_ONLY), DEV}
};

Expand Down Expand Up @@ -1207,7 +1207,9 @@ int do_flags(struct tool_options *opt)
rc = do_query_rq(fd, &bsg_req, &bsg_rsp,
UPIU_QUERY_FUNC_STANDARD_READ_REQUEST,
UPIU_QUERY_OPCODE_READ_FLAG, flag_idn,
opt->index, opt->selector, 0, 0, 0);
(tmp->device_level & ARRAY) ?
opt->index : 0,
opt->selector, 0, 0, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as previous one

if (rc == OK) {
printf("%-26s := 0x%01x\n", tmp->name,
be32toh(bsg_rsp.upiu_rsp.qr.value) &
Expand Down