linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <1580993846-17712-2-git-send-email-peng.fan@nxp.com>]
  • * [PATCH 1/2] firmware: arm_scmi: mailbox: share shmem for protocols
    @ 2020-02-06 12:59 peng.fan
      2020-02-06 12:59 ` [PATCH 2/2] firmware: arm_scmi: mark channel free when init peng.fan
      0 siblings, 1 reply; 6+ messages in thread
    From: peng.fan @ 2020-02-06 12:59 UTC (permalink / raw)
      To: sudeep.holla
      Cc: viresh.kumar, f.fainelli, linux-imx, linux-arm-kernel,
    	linux-kernel, Peng Fan
    
    From: Peng Fan <peng.fan@nxp.com>
    
    When shmem property of protocol is not specificed, let it use
    its parent's shmem property.
    
    Signed-off-by: Peng Fan <peng.fan@nxp.com>
    ---
    
    Based on Viresh's V6 patchset.
    
     drivers/firmware/arm_scmi/mailbox.c | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/drivers/firmware/arm_scmi/mailbox.c b/drivers/firmware/arm_scmi/mailbox.c
    index 73077bbc4ad9..68ed58e2a47a 100644
    --- a/drivers/firmware/arm_scmi/mailbox.c
    +++ b/drivers/firmware/arm_scmi/mailbox.c
    @@ -69,6 +69,8 @@ static int mailbox_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,
     		return -ENOMEM;
     
     	shmem = of_parse_phandle(cdev->of_node, "shmem", idx);
    +	if (!shmem)
    +		shmem = of_parse_phandle(dev->of_node, "shmem", idx);
     	ret = of_address_to_resource(shmem, 0, &res);
     	of_node_put(shmem);
     	if (ret) {
    -- 
    2.16.4
    
    
    ^ permalink raw reply related	[flat|nested] 6+ messages in thread

    end of thread, other threads:[~2020-02-09 13:19 UTC | newest]
    
    Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <1580993846-17712-1-git-send-email-peng.fan@nxp.com>
         [not found] ` <20200206142204.GB3383@bogus>
    2020-02-07  2:08   ` [PATCH 1/2] firmware: arm_scmi: mailbox: share shmem for protocols Peng Fan
         [not found] ` <1580993846-17712-2-git-send-email-peng.fan@nxp.com>
         [not found]   ` <20200206143337.GC3383@bogus>
    2020-02-07  2:16     ` [PATCH 2/2] firmware: arm_scmi: mark channel free when init Peng Fan
    2020-02-07 10:40       ` Sudeep Holla
    2020-02-07 10:44         ` Peng Fan
    2020-02-09 13:19         ` Peng Fan
    2020-02-06 12:59 [PATCH 1/2] firmware: arm_scmi: mailbox: share shmem for protocols peng.fan
    2020-02-06 12:59 ` [PATCH 2/2] firmware: arm_scmi: mark channel free when init peng.fan
    

    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).