Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816403/?format=api
{ "id": 816403, "url": "http://patchwork.ozlabs.org/api/patches/816403/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20170920185956.13874-7-wsa+renesas@sang-engineering.com/", "project": { "id": 35, "url": "http://patchwork.ozlabs.org/api/projects/35/?format=api", "name": "Linux I2C development", "link_name": "linux-i2c", "list_id": "linux-i2c.vger.kernel.org", "list_email": "linux-i2c@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170920185956.13874-7-wsa+renesas@sang-engineering.com>", "list_archive_url": null, "date": "2017-09-20T18:59:56", "name": "[RFC,v5,6/6] i2c: dev: mark RDWR buffers as DMA_SAFE", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "27eb04aa02d3ba9efa546657330c75eefe47706f", "submitter": { "id": 69646, "url": "http://patchwork.ozlabs.org/api/people/69646/?format=api", "name": "Wolfram Sang", "email": "wsa+renesas@sang-engineering.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20170920185956.13874-7-wsa+renesas@sang-engineering.com/mbox/", "series": [ { "id": 4199, "url": "http://patchwork.ozlabs.org/api/series/4199/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=4199", "date": "2017-09-20T18:59:56", "name": "i2c: document DMA handling and add helpers for it", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/4199/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/816403/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816403/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-i2c-owner@vger.kernel.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-i2c-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xy8Fy1mfRz9sNr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 05:00:38 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751772AbdITTAV (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tWed, 20 Sep 2017 15:00:21 -0400", "from sauhun.de ([88.99.104.3]:38850 \"EHLO pokefinder.org\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1751606AbdITTAG (ORCPT <rfc822;linux-i2c@vger.kernel.org>);\n\tWed, 20 Sep 2017 15:00:06 -0400", "from localhost (p54B332E6.dip0.t-ipconnect.de [84.179.50.230])\n\tby pokefinder.org (Postfix) with ESMTPSA id 9A2622C43AA;\n\tWed, 20 Sep 2017 21:00:04 +0200 (CEST)" ], "From": "Wolfram Sang <wsa+renesas@sang-engineering.com>", "To": "linux-i2c@vger.kernel.org", "Cc": "linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org,\n\tlinux-iio@vger.kernel.org, linux-input@vger.kernel.org,\n\tlinux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,\n\tWolfram Sang <wsa+renesas@sang-engineering.com>", "Subject": "[RFC PATCH v5 6/6] i2c: dev: mark RDWR buffers as DMA_SAFE", "Date": "Wed, 20 Sep 2017 20:59:56 +0200", "Message-Id": "<20170920185956.13874-7-wsa+renesas@sang-engineering.com>", "X-Mailer": "git-send-email 2.11.0", "In-Reply-To": "<20170920185956.13874-1-wsa+renesas@sang-engineering.com>", "References": "<20170920185956.13874-1-wsa+renesas@sang-engineering.com>", "Sender": "linux-i2c-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<linux-i2c.vger.kernel.org>", "X-Mailing-List": "linux-i2c@vger.kernel.org" }, "content": "Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>\n---\n drivers/i2c/i2c-dev.c | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c\nindex 6f638bbc922db4..bbc7aadb4c899d 100644\n--- a/drivers/i2c/i2c-dev.c\n+++ b/drivers/i2c/i2c-dev.c\n@@ -280,6 +280,8 @@ static noinline int i2cdev_ioctl_rdwr(struct i2c_client *client,\n \t\t\tres = PTR_ERR(rdwr_pa[i].buf);\n \t\t\tbreak;\n \t\t}\n+\t\t/* memdup_user allocates with GFP_KERNEL, so DMA is ok */\n+\t\trdwr_pa[i].flags |= I2C_M_DMA_SAFE;\n \n \t\t/*\n \t\t * If the message length is received from the slave (similar\n", "prefixes": [ "RFC", "v5", "6/6" ] }