arch/arm/mach-omap2/omap_hwmod.c:  line 1845

/**
 * _omap4_disable_module - enable CLKCTRL modulemode on OMAP4
 * @oh: struct omap_hwmod *
 *
 * Disable the PRCM module mode related to the hwmod @oh.
 * Return EINVAL if the modulemode is not supported and 0 in case of 
success.
 */
static int _omap4_disable_module(struct omap_hwmod *oh)
{
int v;

if (!oh->clkdm || !oh->prcm.omap4.modulemode)
return -EINVAL;

/*
* Since integration code might still be doing something, only
* disable if all lines are under hardreset.
*/
if (_are_any_hardreset_lines_asserted(oh))
return 0;

pr_debug("omap_hwmod: %s: %s\n", oh->name, __func__);

omap_cm_module_disable(oh->clkdm->prcm_partition, oh->clkdm->cm_inst,
       oh->prcm.omap4.clkctrl_offs);

v = _omap4_wait_target_disable(oh);
if (v)
pr_warn("omap_hwmod: %s: _wait_target_disable failed\n",
oh->name);

return 0;
}



在 2018年8月14日星期二 UTC+8下午3:27:31,ezio H写道:
>
> Link on ti e2e:  https://e2e.ti.com/support/arm/sitara_arm/f/791/t/710355.
> bb_x15 's DCAM1 don't work on either *ubuntu-16.04.3-minimal-armhf-2017-10-10 
>  
> * or  TI's Arogo
> On Arogo,I use:
>
> root@am57xx-evm:~# canconfig can0 bitrate 50000 ctrlmode triple-samplin
> [  757.361582] omap_hwmod: dcan1: _wait_target_disable failed
> can0 bitrate: 50000, sample-point: 0.875                               
> [  757.376837] omap_hwmod: dcan1: _wait_target_disable failed          
> can0 ctrlmode: loopback[OFF], listen-only[OFF], 
> tripple-sampling[ON],one-shot[OFF], berr-reporting[OFF]
> root@am57xx-evm:~# ifconfig can0 up 
>
>
> And everything about CAN looks good 
>
> root@am57xx-evm:~# lsmod | grep can                                
> can_raw                 6589  2                                              
> can                    29904  1 can_raw                                      
> c_can_platform          6638  0         
> c_can                   9718  1 c_can_platform
> can_dev                12397  1 c_can
>
> root@am57xx-evm:~# cat /proc/device-tree/ocp/can\@481cc000/status      
> okay
>
>
>
>
> Except: omap_hwmod: dcan1: _wait_target_disable failed.
> What should I do with this error messagge 
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/80c824ba-be94-431a-bef7-6e63d0329dcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to