[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdawwrpEe6AAfdaxw6OMFXkCnq0gpznk1Up5p1=Wigx_2g@mail.gmail.com>
Date: Mon, 1 Oct 2018 13:54:15 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>
Cc: timur@...nel.org, jhugo@...eaurora.org,
Stephen Boyd <swboyd@...omium.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>
Subject: Re: [PATCH v2] gpiolib: Show correct direction from the beginning
On Fri, Sep 28, 2018 at 9:30 PM Ricardo Ribalda Delgado
<ricardo.ribalda@...il.com> wrote:
> How do we proceed from here? Can you fix your driver somehow to
> init the valid mask before enabling the gpio?
Just include a hunk to the qcom driver reordering this call
at the same time. No need to make it separate patches,
it need to be tested together anyways.
I guess just switch the order of these two:
ret = gpiochip_add_data(&pctrl->chip, pctrl);
if (ret) {
dev_err(pctrl->dev, "Failed register gpiochip\n");
return ret;
}
ret = msm_gpio_init_valid_mask(chip, pctrl);
if (ret) {
dev_err(pctrl->dev, "Failed to setup irq valid bits\n");
gpiochip_remove(&pctrl->chip);
return ret;
}
> Do we need to make more severe changes on the core?
Don't think so.
Yours,
Linus Walleij
Powered by blists - more mailing lists