mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/5] GenWQE: Enable access to VPD flash area
@ 2014-03-20 14:11 Frank Haverkamp
  2014-03-20 14:11 ` [PATCH 2/5] GenWQE: Add wmb before DDCB is started Frank Haverkamp
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Frank Haverkamp @ 2014-03-20 14:11 UTC (permalink / raw)
  To: linux-kernel
  Cc: gregkh, arnd, cody, schwidefsky, utz.bacher, jsvogt, MIJUNG,
	cascardo, michael, colin.king, bjking1, esa, haver

In addition to the two flash partitions we used so far, there is a 3rd
one which is enabled for usage by this fix.

Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com>
---
 drivers/misc/genwqe/card_dev.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- a/drivers/misc/genwqe/card_dev.c
+++ b/drivers/misc/genwqe/card_dev.c
@@ -531,7 +531,9 @@ static int do_flash_update(struct genwqe
 	case '1':
 		cmdopts = 0x1C;
 		break;		/* download/erase_first/part_1 */
-	case 'v':		/* cmdopts = 0x0c (VPD) */
+	case 'v':
+		cmdopts = 0x0C;
+		break;		/* download/erase_first/vpd */
 	default:
 		return -EINVAL;
 	}
@@ -665,6 +667,8 @@ static int do_flash_read(struct genwqe_f
 		cmdopts = 0x1A;
 		break;		/* upload/part_1 */
 	case 'v':
+		cmdopts = 0x0A;
+		break;		/* upload/vpd */
 	default:
 		return -EINVAL;
 	}


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-20 14:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-20 14:11 [PATCH 1/5] GenWQE: Enable access to VPD flash area Frank Haverkamp
2014-03-20 14:11 ` [PATCH 2/5] GenWQE: Add wmb before DDCB is started Frank Haverkamp
2014-03-20 14:11 ` [PATCH 3/5] GenWQE: Ensure rc is not returning an uninitialized value Frank Haverkamp
2014-03-20 14:11 ` [PATCH 4/5] GenWQE: Fix multithreading problems Frank Haverkamp
2014-03-20 14:11 ` [PATCH 5/5] GenWQE: Increase driver version number Frank Haverkamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®