#19213: mt7621 get a panic with pinctrl driver
------------------------------+----------------------------------
Reporter: williamtoyang@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: packages | Version: Trunk
Resolution: | Keywords: pinctrl mt7621
------------------------------+----------------------------------
Comment (by fclql):
Replying to [comment:1 williamtoyang@…]:
> modify pinctrl/core.c,add a debug message,works well!
> static struct pinctrl *create_pinctrl(struct device *dev)
> {
> struct pinctrl *p;
> const char *devname;
> struct pinctrl_maps *maps_node;
> int i;
> struct pinctrl_map const *map;
> int ret;
>
> /*
> * create the state cookie holder struct pinctrl for each
> * mapping, this is what consumers will get when requesting
> * a pin control handle with pinctrl_get()
> */
> p = kzalloc(sizeof(*p), GFP_KERNEL);
> if (p == NULL) {
> dev_err(dev, "failed to alloc struct pinctrl\n");
> return ERR_PTR(-ENOMEM);
> }
> p->dev = dev;
> INIT_LIST_HEAD(&p->states);
> INIT_LIST_HEAD(&p->dt_maps);
> printk("---->create_pinctrl:%s\n",dev_name(dev)); //add this
> ret = pinctrl_dt_to_map(p);
> if (ret < 0) {
> kfree(p);
> return ERR_PTR(ret);
> }
Return 3.14 kernels have this problem?
--
Ticket URL: <https://dev.openwrt.org/ticket/19213#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets