From: Bjorn Andersson <bjorn.andersson@sonymobile.com>
To: Timur Tabi <timur@codeaurora.org>
Cc: Linus Walleij <linus.walleij@linaro.org>,
linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org,
linux-arm-msm@vger.kernel.org,
Vipul Gandhi <vgandhi@codeaurora.org>
Subject: Re: [PATCH] pinctrl: add support for Qualcomm Technologies QDF2xxx ARM64 SoCs
Date: Tue, 14 Jul 2015 22:21:32 -0700 [thread overview]
Message-ID: <20150715052132.GF32767@usrtlx11787.corpusers.net> (raw)
In-Reply-To: <1436916544-811-1-git-send-email-timur@codeaurora.org>
On Tue 14 Jul 16:29 PDT 2015, Timur Tabi wrote:
[..]
> diff --git a/drivers/pinctrl/qcom/pinctrl-qdf2xxx.c b/drivers/pinctrl/qcom/pinctrl-qdf2xxx.c
[..]
> + *
> + * GPIO and pin control functions on this SOC are handled by the "TLMM"
> + * device. The driver which controls this device is pinctrl-msm.c. Each
> + * SOC with a TLMM is expected to create a client driver that registers
> + * with pinctrl-msm.c. This means that all TLMM drivers are pin control
> + * drivers.
> + *
> + * This pin control driver is intended to be used only an ACPI-enabled
> + * system. As such, UEFI will handle all pin control configuration, so
> + * this driver does not provide pin control functions. It is effectively
> + * a GPIO-only driver. The alternative is to duplicate the GPIO code of
> + * pinctrl-msm.c into another driver.
> + */
That should be fine, better reuse the existing code than duplicating it.
> +
> +#include <linux/module.h>
> +#include <linux/platform_device.h>
> +#include <linux/pinctrl/pinctrl.h>
> +#include <linux/pinctrl/pinmux.h>
Do you really need pinmux.h?
> +#include <linux/acpi.h>
> +
> +#include "pinctrl-msm.h"
> +
[..]
> +
> +static struct platform_driver qdf2xxx_pinctrl_driver = {
> + .driver = {
> + .name = "qdf2xxx-pinctrl",
> + .owner = THIS_MODULE,
No need to specify 'owner' of a platform_driver, so please drop this.
> + .acpi_match_table = ACPI_PTR(qdf2xxx_acpi_ids),
> + },
> + .probe = qdf2xxx_pinctrl_probe,
> + .remove = msm_pinctrl_remove,
> +};
> +
> +static int __init qdf2xxx_pinctrl_init(void)
> +{
> + return platform_driver_register(&qdf2xxx_pinctrl_driver);
> +}
> +arch_initcall(qdf2xxx_pinctrl_init);
> +
> +static void __exit qdf2xxx_pinctrl_exit(void)
> +{
> + platform_driver_unregister(&qdf2xxx_pinctrl_driver);
> +}
> +module_exit(qdf2xxx_pinctrl_exit);
> +
> +MODULE_DESCRIPTION("Qualcomm Technologies QDF2xxx pin control driver");
> +MODULE_LICENSE("GPL v2");
Looks good with above nits fixed.
Regards,
Bjorn
prev parent reply other threads:[~2015-07-15 5:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 23:29 [PATCH] pinctrl: add support for Qualcomm Technologies QDF2xxx ARM64 SoCs Timur Tabi
2015-07-15 5:21 ` Bjorn Andersson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150715052132.GF32767@usrtlx11787.corpusers.net \
--to=bjorn.andersson@sonymobile.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=timur@codeaurora.org \
--cc=vgandhi@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox