Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/33599/?format=api
{ "id": 33599, "url": "http://patchwork.ozlabs.org/api/patches/33599/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20090914181617.ACF4B17B804F@mail59-sin.bigfish.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20090914181617.ACF4B17B804F@mail59-sin.bigfish.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20090914181617.ACF4B17B804F@mail59-sin.bigfish.com/", "date": "2009-09-14T18:17:05", "name": "Xilinx: SPI: Fix bits_per_word for transfers", "commit_ref": "1a8d3b777dd71813b87c66c0eb161cc87f042126", "pull_url": null, "state": "accepted", "archived": true, "hash": "6ca697b2f1241d826f99d717e20c2401653211d9", "submitter": { "id": 1005, "url": "http://patchwork.ozlabs.org/api/people/1005/?format=api", "name": "John Linn", "email": "john.linn@xilinx.com" }, "delegate": { "id": 8, "url": "http://patchwork.ozlabs.org/api/users/8/?format=api", "username": "glikely", "first_name": "Grant", "last_name": "Likely", "email": "grant.likely@secretlab.ca" }, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20090914181617.ACF4B17B804F@mail59-sin.bigfish.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/33599/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/33599/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>", "X-Original-To": "patchwork-incoming@bilbo.ozlabs.org", "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "patchwork-incoming@ozlabs.org", "linuxppc-dev@ozlabs.org" ], "Received": [ "from ozlabs.org (ozlabs.org [203.10.76.45])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(Client CN \"mx.ozlabs.org\",\n\tIssuer \"CA Cert Signing Authority\" (verified OK))\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id 21CDFB7B60\n\tfor <patchwork-incoming@bilbo.ozlabs.org>;\n\tTue, 15 Sep 2009 04:17:34 +1000 (EST)", "by ozlabs.org (Postfix)\n\tid 0BDF8DDD0B; Tue, 15 Sep 2009 04:17:34 +1000 (EST)", "from bilbo.ozlabs.org (bilbo.ozlabs.org [203.10.76.25])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(Client CN \"bilbo.ozlabs.org\",\n\tIssuer \"CAcert Class 3 Root\" (verified OK))\n\tby ozlabs.org (Postfix) with ESMTPS id 08FF2DDD04\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 15 Sep 2009 04:17:34 +1000 (EST)", "from bilbo.ozlabs.org (localhost [127.0.0.1])\n\tby bilbo.ozlabs.org (Postfix) with ESMTP id D26E4B7DAC\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 15 Sep 2009 04:17:21 +1000 (EST)", "from ozlabs.org (ozlabs.org [203.10.76.45])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(Client CN \"mx.ozlabs.org\",\n\tIssuer \"CA Cert Signing Authority\" (verified OK))\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id BB230B6F2B\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 15 Sep 2009 04:17:13 +1000 (EST)", "by ozlabs.org (Postfix)\n\tid 83B56DDD0B; Tue, 15 Sep 2009 04:17:13 +1000 (EST)", "from SG2EHSOBE004.bigfish.com (sg2ehsobe004.messaging.microsoft.com\n\t[207.46.51.78]) by ozlabs.org (Postfix) with ESMTP id 45A97DDD04\n\tfor <linuxppc-dev@ozlabs.org>; Tue, 15 Sep 2009 04:17:12 +1000 (EST)", "from mail59-sin-R.bigfish.com (10.210.100.241) by\n\tSG2EHSOBE004.bigfish.com (10.210.112.24) with Microsoft SMTP Server\n\tid 8.1.340.0; Mon, 14 Sep 2009 18:17:10 +0000", "from mail59-sin (localhost.localdomain [127.0.0.1])\tby\n\tmail59-sin-R.bigfish.com (Postfix) with ESMTP id D51B610D8083;\n\tMon, 14 Sep 2009 18:16:19 +0000 (UTC)", "by mail59-sin (MessageSwitch) id 12529521797438_13290; Mon, 14 Sep\n\t2009 18:16:19 +0000 (UCT)", "from xsj-gw1 (unknown [149.199.60.83])\tby mail59-sin.bigfish.com\n\t(Postfix) with ESMTP id ACF4B17B804F;\n\tMon, 14 Sep 2009 18:16:17 +0000 (UTC)", "from unknown-38-66.xilinx.com ([149.199.38.66]\n\thelo=xsj-smtp1.xilinx.com)\tby xsj-gw1 with esmtp (Exim\n\t4.63)\t(envelope-from <John.Linn@xilinx.com>)\tid 1MnG6t-0002d5-90;\n\tMon, 14 Sep 2009 11:17:07 -0700" ], "X-SpamScore": "0", "X-BigFish": "VPS0(zzzz1202hzzz2dh61h)", "X-Spam-TCS-SCL": "0:0", "From": "John Linn <john.linn@xilinx.com>", "To": "dbrownell@users.sourceforge.net, linuxppc-dev@ozlabs.org,\n\tgrant.likely@secretlab.ca, jwboyer@linux.vnet.ibm.com,\n\takonovalov@ru.mvista.com", "Subject": "[PATCH] Xilinx: SPI: Fix bits_per_word for transfers", "Date": "Mon, 14 Sep 2009 12:17:05 -0600", "X-Mailer": "git-send-email 1.5.6.6", "Message-ID": "<20090914181617.ACF4B17B804F@mail59-sin.bigfish.com>", "MIME-Version": "1.0", "Cc": "John Linn <john.linn@xilinx.com>", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.12", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org", "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org" }, "content": "The bits_per_word value can be set for each transfer, or can\nbe set to zero in each transfer in which case it should default\nto the value in the driver.\n\nThe driver was fixed to properly check the bits_per_word in\nthe transfer that is passed in.\n\nSigned-off-by: John Linn <john.linn@xilinx.com>\n---\n drivers/spi/xilinx_spi.c | 3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)", "diff": "diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c\nindex 46b8c5c..5a143b9 100644\n--- a/drivers/spi/xilinx_spi.c\n+++ b/drivers/spi/xilinx_spi.c\n@@ -148,7 +148,8 @@ static int xilinx_spi_setup_transfer(struct spi_device *spi,\n {\n \tu8 bits_per_word;\n \n-\tbits_per_word = (t) ? t->bits_per_word : spi->bits_per_word;\n+\tbits_per_word = (t && t->bits_per_word)\n+\t\t\t ? t->bits_per_word : spi->bits_per_word;\n \tif (bits_per_word != 8) {\n \t\tdev_err(&spi->dev, \"%s, unsupported bits_per_word=%d\\n\",\n \t\t\t__func__, bits_per_word);\n", "prefixes": [] }