summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/ibexpeak/me.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-10-17 18:39:04 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-10-20 11:52:16 +0000
commit77f340a707a868d56d8348cd9ab03308f4902bd9 (patch)
tree4906d0179f5f12309510cd184c6615a3f2d09073 /src/southbridge/intel/ibexpeak/me.c
parente26e9b556deb86564b5f1cfe70e2095a03c964dc (diff)
sb/intel/ibexpeak: Align to coreboot's coding style
Tested with BUILD_TIMELESS=1, Packard Bell MS2290 remains identical. Change-Id: I30512ef7ff7eb091e1f880c43a0a9ecf8625a710 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46530 Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/ibexpeak/me.c')
-rw-r--r--src/southbridge/intel/ibexpeak/me.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/southbridge/intel/ibexpeak/me.c b/src/southbridge/intel/ibexpeak/me.c
index b355d9dbdb..bff8d24510 100644
--- a/src/southbridge/intel/ibexpeak/me.c
+++ b/src/southbridge/intel/ibexpeak/me.c
@@ -119,13 +119,13 @@ static inline void read_me_csr(struct mei_csr *csr)
static inline void write_cb(u32 dword)
{
- write32(mei_base_address + (MEI_H_CB_WW/sizeof(u32)), dword);
+ write32(mei_base_address + (MEI_H_CB_WW / sizeof(u32)), dword);
mei_dump(NULL, dword, MEI_H_CB_WW, "WRITE");
}
static inline u32 read_cb(void)
{
- u32 dword = read32(mei_base_address + (MEI_ME_CB_RW/sizeof(u32)));
+ u32 dword = read32(mei_base_address + (MEI_ME_CB_RW / sizeof(u32)));
mei_dump(NULL, dword, MEI_ME_CB_RW, "READ");
return dword;
}
@@ -261,9 +261,8 @@ static int mei_recv_msg(struct mei_header *mei, struct mkhi_header *mkhi,
udelay(ME_DELAY);
}
if (!n) {
- printk(BIOS_ERR, "ME: timeout waiting for data: expected "
- "%u, available %u\n", expected,
- me.buffer_write_ptr - me.buffer_read_ptr);
+ printk(BIOS_ERR, "ME: timeout waiting for data: expected %u, available %u\n",
+ expected, me.buffer_write_ptr - me.buffer_read_ptr);
return -1;
}
@@ -298,8 +297,8 @@ static int mei_recv_msg(struct mei_header *mei, struct mkhi_header *mkhi,
/* Make sure caller passed a buffer with enough space */
if (ndata != (rsp_bytes >> 2)) {
- printk(BIOS_ERR, "ME: not enough room in response buffer: "
- "%u != %u\n", ndata, rsp_bytes >> 2);
+ printk(BIOS_ERR, "ME: not enough room in response buffer: %u != %u\n",
+ ndata, rsp_bytes >> 2);
return -1;
}