linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: Kalle Valo <kvalo@codeaurora.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Felix Fietkau <nbd@openwrt.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v3] bcma: switch GPIO portions to use GPIOLIB_IRQCHIP
Date: Fri, 18 Dec 2015 19:01:24 +0100	[thread overview]
Message-ID: <567449F4.9010400@hauke-m.de> (raw)
In-Reply-To: <CACna6rzqGrfduyMPJkq29AJ2SFs8ngPgQau3rCWRtbZ3-nxfVA@mail.gmail.com>

On 12/18/2015 07:27 AM, Rafał Miłecki wrote:
> I'm afraid it wasn't tested on BCM47XX (MIPS) :(

Yes, you are probably right.

> On 14 August 2015 at 00:21, Hauke Mehrtens <hauke@hauke-m.de> wrote:
>> @@ -218,9 +187,8 @@ int bcma_gpio_init(struct bcma_drv_cc *cc)
>>         chip->set               = bcma_gpio_set_value;
>>         chip->direction_input   = bcma_gpio_direction_input;
>>         chip->direction_output  = bcma_gpio_direction_output;
>> -#if IS_BUILTIN(CONFIG_BCM47XX) || IS_BUILTIN(CONFIG_ARCH_BCM_5301X)
>> -       chip->to_irq            = bcma_gpio_to_irq;
>> -#endif
>> +       chip->owner             = THIS_MODULE;
>> +       chip->dev               = bcma_bus_get_host_dev(bus);
> 
> This assigns &bus->host_pdev->dev which is NULL.

hmm, how do we fix this, as long as bcma does not have a device on mips
this is a problem. Should we create a new device for mips?

>> @@ -248,13 +216,13 @@ int bcma_gpio_init(struct bcma_drv_cc *cc)
>>         else
>>                 chip->base              = -1;
>>
>> -       err = bcma_gpio_irq_domain_init(cc);
>> +       err = gpiochip_add(chip);
>>         if (err)
>>                 return err;
>>
>> -       err = gpiochip_add(chip);
>> +       err = bcma_gpio_irq_init(cc);
> 
> This results in:
> [    0.157054] missing gpiochip .dev parent pointer
> (coming from gpiochip_irqchip_add) and
> [    0.157287] bcma: bus0: Error registering GPIO driver: -22



  reply	other threads:[~2015-12-18 18:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-13 22:21 [PATCH v3] bcma: switch GPIO portions to use GPIOLIB_IRQCHIP Hauke Mehrtens
2015-08-18  6:09 ` [v3] " Kalle Valo
2015-12-18  6:27 ` [PATCH v3] " Rafał Miłecki
2015-12-18 18:01   ` Hauke Mehrtens [this message]
2015-12-22  9:01     ` Linus Walleij
2015-12-22 12:09       ` Hauke Mehrtens
2015-12-22 12:55         ` Linus Walleij

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=567449F4.9010400@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=kvalo@codeaurora.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nbd@openwrt.org \
    --cc=zajec5@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).