Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/802267/?format=api
{ "id": 802267, "url": "http://patchwork.ozlabs.org/api/patches/802267/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20170816221715.15027-2-fcooper@ti.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": "<20170816221715.15027-2-fcooper@ti.com>", "list_archive_url": null, "date": "2017-08-16T22:17:13", "name": "[v2,1/3] i2c: davinci: Preserve return value of devm_clk_get", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "3cc81933514c9ff369718452ccd4281aeca59fba", "submitter": { "id": 64326, "url": "http://patchwork.ozlabs.org/api/people/64326/?format=api", "name": "Franklin S Cooper Jr", "email": "fcooper@ti.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20170816221715.15027-2-fcooper@ti.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/802267/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/802267/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>)", "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=ti.com header.i=@ti.com header.b=\"rOxBE7cR\";\n\tdkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xXkLK2rWvz9sPt\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 17 Aug 2017 08:20:09 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752491AbdHPWUH (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tWed, 16 Aug 2017 18:20:07 -0400", "from lelnx193.ext.ti.com ([198.47.27.77]:52892 \"EHLO\n\tlelnx193.ext.ti.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752298AbdHPWUF (ORCPT\n\t<rfc822; linux-i2c@vger.kernel.org>); Wed, 16 Aug 2017 18:20:05 -0400", "from dflxv15.itg.ti.com ([128.247.5.124])\n\tby lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v7GMHUQ7019044; \n\tWed, 16 Aug 2017 17:17:30 -0500", "from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25])\n\tby dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7GMHUn5025952;\n\tWed, 16 Aug 2017 17:17:30 -0500", "from DFLE112.ent.ti.com (10.64.6.33) by DFLE104.ent.ti.com\n\t(10.64.6.25) with Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34;\n\tWed, 16 Aug 2017 17:17:30 -0500", "from dflp33.itg.ti.com (10.64.6.16) by DFLE112.ent.ti.com\n\t(10.64.6.33) with Microsoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend\n\tTransport; Wed, 16 Aug 2017 17:17:30 -0500", "from dbdmail01.india.ti.com (dbdmail01.india.ti.com\n\t[172.24.162.206])\n\tby dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7GMHSqO023444;\n\tWed, 16 Aug 2017 17:17:29 -0500", "from uda0273011.dhcp.ti.com (uda0273011.dhcp.ti.com\n\t[128.247.59.135])\n\tby dbdmail01.india.ti.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP\n\tid v7GMHKkM028296; Thu, 17 Aug 2017 03:47:25 +0530" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com;\n\ts=ti-com-17Q1; t=1502921850;\n\tbh=8EPW5OM4ErppqaDCRUx2jnbtEXq/jtSkNQXercq/w2g=;\n\th=From:To:CC:Subject:Date:In-Reply-To:References;\n\tb=rOxBE7cRiYrmu/w8eaj5LGpNFDg/1OzmpUmbO/09CFKTBU96Yj0MOgMcDTuO94KH3\n\tFq2jCurDJe1U0aTg9CNvSMCw7pP9TSMghRS59dNg1SP90i7w29c4vg8Zv2MWdddYt7\n\tdSD/OtUEfeph/XCUtXK+oyjPILT1AmPiF9mMtU3U=", "From": "Franklin S Cooper Jr <fcooper@ti.com>", "To": "<wsa@the-dreams.de>, <robh+dt@kernel.org>, <linux@armlinux.org.uk>,\n\t<nsekhar@ti.com>, <linux-i2c@vger.kernel.org>,\n\t<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,\n\t<linux-arm-kernel@lists.infradead.org>, <grygorii.strashko@ti.com>,\n\t<vigneshr@ti.com>", "CC": "Franklin S Cooper Jr <fcooper@ti.com>", "Subject": "[PATCH v2 1/3] i2c: davinci: Preserve return value of devm_clk_get", "Date": "Wed, 16 Aug 2017 17:17:13 -0500", "Message-ID": "<20170816221715.15027-2-fcooper@ti.com>", "X-Mailer": "git-send-email 2.9.4.dirty", "In-Reply-To": "<20170816221715.15027-1-fcooper@ti.com>", "References": "<20170816221715.15027-1-fcooper@ti.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-EXCLAIMER-MD-CONFIG": "e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180", "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": "The i2c driver can run into driver dependency issues if its loaded\nbefore a clock driver it depends on. Therefore, EPROBE_DEFER may be\nreturned by devm_clk_get and should be returned in probe to allow the\nkernel to reprobe the driver at a later time. This patch allows the error\nvalue returned by devm_clk_get to be passed through and not overwritten.\n\nSigned-off-by: Franklin S Cooper Jr <fcooper@ti.com>\nReviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>\n---\n drivers/i2c/busses/i2c-davinci.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c\nindex 33ca9a3..b8c4353 100644\n--- a/drivers/i2c/busses/i2c-davinci.c\n+++ b/drivers/i2c/busses/i2c-davinci.c\n@@ -801,7 +801,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)\n \n \tdev->clk = devm_clk_get(&pdev->dev, NULL);\n \tif (IS_ERR(dev->clk))\n-\t\treturn -ENODEV;\n+\t\treturn PTR_ERR(dev->clk);\n \tclk_prepare_enable(dev->clk);\n \n \tmem = platform_get_resource(pdev, IORESOURCE_MEM, 0);\n", "prefixes": [ "v2", "1/3" ] }