Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/209262/?format=api
{ "id": 209262, "url": "http://patchwork.ozlabs.org/api/patches/209262/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1357224715-26885-1-git-send-email-jagannadh.teki@gmail.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1357224715-26885-1-git-send-email-jagannadh.teki@gmail.com>", "list_archive_url": null, "date": "2013-01-03T14:51:54", "name": "[U-Boot,PATH,v3,1/2] sf: Add status register reading support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "8c5deb7a5ba3a75215eb97fef1faef57e37148e8", "submitter": { "id": 20045, "url": "http://patchwork.ozlabs.org/api/people/20045/?format=api", "name": "Jagan Teki", "email": "jagannadh.teki@gmail.com" }, "delegate": { "id": 17739, "url": "http://patchwork.ozlabs.org/api/users/17739/?format=api", "username": "jagan", "first_name": "Jagannadha Sutradharudu", "last_name": "Teki", "email": "jagannadh.teki@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1357224715-26885-1-git-send-email-jagannadh.teki@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/209262/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/209262/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Received": [ "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 8E6AE2C0089\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 4 Jan 2013 01:52:24 +1100 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id A9CB74A0F4;\n\tThu, 3 Jan 2013 15:52:22 +0100 (CET)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id nwB4pRoW8J-B; Thu, 3 Jan 2013 15:52:22 +0100 (CET)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 85AF24A0ED;\n\tThu, 3 Jan 2013 15:52:21 +0100 (CET)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 1D42F4A0ED\n\tfor <u-boot@lists.denx.de>; Thu, 3 Jan 2013 15:52:20 +0100 (CET)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id zRKaipyP7P9B for <u-boot@lists.denx.de>;\n\tThu, 3 Jan 2013 15:52:18 +0100 (CET)", "from mail-pb0-f50.google.com (mail-pb0-f50.google.com\n\t[209.85.160.50]) by theia.denx.de (Postfix) with ESMTPS id 8DE574A0C7\n\tfor <u-boot@lists.denx.de>; Thu, 3 Jan 2013 15:52:16 +0100 (CET)", "by mail-pb0-f50.google.com with SMTP id wz7so8586299pbc.23\n\tfor <u-boot@lists.denx.de>; Thu, 03 Jan 2013 06:52:15 -0800 (PST)", "from localhost.localdomain ([49.204.11.250])\n\tby mx.google.com with ESMTPS id\n\tkb3sm30445737pbc.27.2013.01.03.06.52.10\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tThu, 03 Jan 2013 06:52:14 -0800 (PST)" ], "X-Virus-Scanned": [ "Debian amavisd-new at theia.denx.de", "Debian amavisd-new at theia.denx.de" ], "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=x-received:from:to:cc:subject:date:message-id:x-mailer;\n\tbh=LKiHDPcuQUyLu/x7iTUXBVdab9WV27P/oEZ+ik0v/dQ=;\n\tb=ZJ7VP8/R94gCHRF45mItiTB959VqJ48ynoKKLXx6ANy3P8YxKWWDYjG5dPTbRon3Xs\n\tjSV0ffofOZPOD4WMlk8ZjLJtSH0yk5MiPCE6cDdg/2N++NGhnXZJjQ2UWNW5TTMc7i+1\n\tei44oXSYp5DKOgYgmmTCeEyFD0lZ0HuE5feryaFtGBRQgqHQAou2UL+CGS9tJg9ZpjDX\n\twpswkd20TCZUxliSPKpePU4NOp8yVSTfSO01koR2EUq2BQYDkkFUC/7M1l2yXDhk+R9o\n\tCEcYpCrbxYMW2Cqpl81kWqA3cndHAmcGSZfEZMFW4+CxbXnZrqnrZ5jH/D4rbCqZUH+q\n\tDzGQ==", "X-Received": "by 10.66.88.198 with SMTP id bi6mr146252228pab.54.1357224734930; \n\tThu, 03 Jan 2013 06:52:14 -0800 (PST)", "From": "Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>", "To": "u-boot@lists.denx.de", "Date": "Thu, 3 Jan 2013 20:21:54 +0530", "Message-Id": "<1357224715-26885-1-git-send-email-jagannadh.teki@gmail.com>", "X-Mailer": "git-send-email 1.7.0.4", "Subject": "[U-Boot] [PATH v3 1/2] sf: Add status register reading support", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.11", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "This patch provides support to read a flash status register.\n\nStatus register contains a control bits used to verify\nthe progress of flash program and erase operations.\n\nUser need to get the data through spi_flash_cmd_read_status()\nbased on their usage.\n\nSigned-off-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>\n---\nChanges in v3:\n improved coding style\n\n drivers/mtd/spi/spi_flash.c | 8 ++++++++\n drivers/mtd/spi/spi_flash_internal.h | 3 +++\n 2 files changed, 11 insertions(+), 0 deletions(-)", "diff": "diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c\nindex 9e8939c..0f05b91 100644\n--- a/drivers/mtd/spi/spi_flash.c\n+++ b/drivers/mtd/spi/spi_flash.c\n@@ -264,6 +264,14 @@ int spi_flash_cmd_write_status(struct spi_flash *flash, u8 sr)\n \treturn 0;\n }\n \n+int spi_flash_cmd_read_status(struct spi_flash *flash, void *data)\n+{\n+\tu8 cmd;\n+\n+\tcmd = CMD_READ_STATUS;\n+\treturn spi_flash_read_common(flash, &cmd, sizeof(cmd), (void *)data, 1);\n+}\n+\n /*\n * The following table holds all device probe functions\n *\ndiff --git a/drivers/mtd/spi/spi_flash_internal.h b/drivers/mtd/spi/spi_flash_internal.h\nindex 141cfa8..8232595 100644\n--- a/drivers/mtd/spi/spi_flash_internal.h\n+++ b/drivers/mtd/spi/spi_flash_internal.h\n@@ -77,6 +77,9 @@ static inline int spi_flash_cmd_write_disable(struct spi_flash *flash)\n /* Program the status register. */\n int spi_flash_cmd_write_status(struct spi_flash *flash, u8 sr);\n \n+/* Read the status register */\n+int spi_flash_cmd_read_status(struct spi_flash *flash, void *data);\n+\n /*\n * Same as spi_flash_cmd_read() except it also claims/releases the SPI\n * bus. Used as common part of the ->read() operation.\n", "prefixes": [ "U-Boot", "PATH", "v3", "1/2" ] }