diff for duplicates of <1442316018.15519.4.camel@mm-sol.com> diff --git a/a/1.txt b/N1/1.txt index 57ebe87..a0f2c39 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -35,3 +35,10 @@ register, right? Regards, Ivan +-------------- next part -------------- +A non-text attachment was scrubbed... +Name: 0001-mfd-qcom-spmi-pmic-Do-not-access-non-existing-regist.patch +Type: text/x-patch +Size: 1392 bytes +Desc: not available +URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150915/40e07889/attachment.bin> diff --git a/a/2.hdr b/a/2.hdr deleted file mode 100644 index e7a9c20..0000000 --- a/a/2.hdr +++ /dev/null @@ -1,7 +0,0 @@ -Content-Disposition: attachment; - filename*0=0001-mfd-qcom-spmi-pmic-Do-not-access-non-existing-regist.pat; - filename*1=ch -Content-Type: text/x-patch; - name="0001-mfd-qcom-spmi-pmic-Do-not-access-non-existing-regist.patch"; - charset="UTF-8" -Content-Transfer-Encoding: base64 diff --git a/a/2.txt b/a/2.txt deleted file mode 100644 index 1fe8e83..0000000 --- a/a/2.txt +++ /dev/null @@ -1,44 +0,0 @@ -From d7c9c59b7134f093cf3f829832f4f7771a65664e Mon Sep 17 00:00:00 2001 -From: "Ivan T. Ivanov" <ivan.ivanov@linaro.org> -Date: Tue, 15 Sep 2015 09:43:10 +0300 -Subject: [PATCH] mfd: qcom-spmi-pmic: Do not access non existing registers -Cc: linux-kernel@vger.kernel.org - -Revision ID registers are available only on devices with -Slave ID Zero, so don't make access to unavailable registers. - -Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org> ---- - drivers/mfd/qcom-spmi-pmic.c | 12 +++++++++++- - 1 file changed, 11 insertions(+), 1 deletion(-) - -diff --git a/drivers/mfd/qcom-spmi-pmic.c b/drivers/mfd/qcom-spmi-pmic.c -index af6ac1c4b45c..d7ad72af5682 100644 ---- a/drivers/mfd/qcom-spmi-pmic.c -+++ b/drivers/mfd/qcom-spmi-pmic.c -@@ -122,12 +122,22 @@ static int pmic_spmi_probe(struct spmi_device *sdev) - { - struct device_node *root = sdev->dev.of_node; - struct regmap *regmap; -+ u32 sid; -+ int ret; -+ -+ ret = of_property_read_u32(root, "reg", &sid); -+ if (ret < 0) { -+ dev_err(&sdev->dev, "Missing SID\n"); -+ return ret; -+ } - - regmap = devm_regmap_init_spmi_ext(sdev, &spmi_regmap_config); - if (IS_ERR(regmap)) - return PTR_ERR(regmap); - -- pmic_spmi_show_revid(regmap, &sdev->dev); -+ /* Only devices with Slave ID Zero contain this information */ -+ if (sid == 0) -+ pmic_spmi_show_revid(regmap, &sdev->dev); - - return of_platform_populate(root, NULL, NULL, &sdev->dev); - } --- -1.9.1 diff --git a/a/content_digest b/N1/content_digest index 4fa660d..45cbc8f 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,16 +1,10 @@ "ref\01442267672-11287-1-git-send-email-sboyd@codeaurora.org\0" "ref\055F77451.9070900@codeaurora.org\0" - "From\0Ivan T. Ivanov <iivanov@mm-sol.com>\0" - "Subject\0Re: [PATCH] spmi-pmic-arb: support configurable number of peripherals\0" + "From\0iivanov@mm-sol.com (Ivan T. Ivanov)\0" + "Subject\0[PATCH] spmi-pmic-arb: support configurable number of peripherals\0" "Date\0Tue, 15 Sep 2015 14:20:18 +0300\0" - "To\0Stephen Boyd <sboyd@codeaurora.org>\0" - "Cc\0Greg Kroah-Hartman <gregkh@linuxfoundation.org>" - linux-kernel@vger.kernel.org - linux-arm-msm@vger.kernel.org - linux-arm-kernel@lists.infradead.org - Gilad Avidov <gavidov@codeaurora.org> - " Sagar Dharia <sdharia@codeaurora.org>\0" - "\01:1\0" + "To\0linux-arm-kernel@lists.infradead.org\0" + "\00:1\0" "b\0" "\n" "On Mon, 2015-09-14 at 18:28 -0700, Stephen Boyd wrote:\n" @@ -48,53 +42,13 @@ "register, right?\n" "\n" "Regards,\n" - Ivan - "\01:2\0" - "fn\00001-mfd-qcom-spmi-pmic-Do-not-access-non-existing-regist.patch\0" - "b\0" - "From d7c9c59b7134f093cf3f829832f4f7771a65664e Mon Sep 17 00:00:00 2001\n" - "From: \"Ivan T. Ivanov\" <ivan.ivanov@linaro.org>\n" - "Date: Tue, 15 Sep 2015 09:43:10 +0300\n" - "Subject: [PATCH] mfd: qcom-spmi-pmic: Do not access non existing registers\n" - "Cc: linux-kernel@vger.kernel.org\n" - "\n" - "Revision ID registers are available only on devices with\n" - "Slave ID Zero, so don't make access to unavailable registers.\n" - "\n" - "Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>\n" - "---\n" - " drivers/mfd/qcom-spmi-pmic.c | 12 +++++++++++-\n" - " 1 file changed, 11 insertions(+), 1 deletion(-)\n" - "\n" - "diff --git a/drivers/mfd/qcom-spmi-pmic.c b/drivers/mfd/qcom-spmi-pmic.c\n" - "index af6ac1c4b45c..d7ad72af5682 100644\n" - "--- a/drivers/mfd/qcom-spmi-pmic.c\n" - "+++ b/drivers/mfd/qcom-spmi-pmic.c\n" - "@@ -122,12 +122,22 @@ static int pmic_spmi_probe(struct spmi_device *sdev)\n" - " {\n" - " \tstruct device_node *root = sdev->dev.of_node;\n" - " \tstruct regmap *regmap;\n" - "+\tu32 sid;\n" - "+\tint ret;\n" - "+\n" - "+\tret = of_property_read_u32(root, \"reg\", &sid);\n" - "+\tif (ret < 0) {\n" - "+\t\tdev_err(&sdev->dev, \"Missing SID\\n\");\n" - "+\t\treturn ret;\n" - "+\t}\n" - " \n" - " \tregmap = devm_regmap_init_spmi_ext(sdev, &spmi_regmap_config);\n" - " \tif (IS_ERR(regmap))\n" - " \t\treturn PTR_ERR(regmap);\n" - " \n" - "-\tpmic_spmi_show_revid(regmap, &sdev->dev);\n" - "+\t/* Only devices with Slave ID Zero contain this information */\n" - "+\tif (sid == 0)\n" - "+\t\tpmic_spmi_show_revid(regmap, &sdev->dev);\n" - " \n" - " \treturn of_platform_populate(root, NULL, NULL, &sdev->dev);\n" - " }\n" - "-- \n" - 1.9.1 + "Ivan\n" + "-------------- next part --------------\n" + "A non-text attachment was scrubbed...\n" + "Name: 0001-mfd-qcom-spmi-pmic-Do-not-access-non-existing-regist.patch\n" + "Type: text/x-patch\n" + "Size: 1392 bytes\n" + "Desc: not available\n" + URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150915/40e07889/attachment.bin> -0b024c55301881a99e597f1eb38187648cf94acb603c87fc8e42850bb63c43d7 +0658cf3804a2e57fc48618c67da98566af627841db5c084912937da9370f97fd
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.