Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1149115pxf; Thu, 18 Mar 2021 23:20:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMRxwd0OPNmjaKYPUBlu13QNpmCMLK7Pwx+7IxPbqxv0Kse8mk/kCzBm2GYobhIiFdSmsx X-Received: by 2002:a17:907:20f5:: with SMTP id rh21mr2603298ejb.27.1616134831060; Thu, 18 Mar 2021 23:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616134831; cv=none; d=google.com; s=arc-20160816; b=BE6TDYF/+hs3NZJ/sD52EuXBc0VFc4ur3HVfVEeqAC9d+FU3VrqDEZW7TNuvAaYcCP L+OzWf7ZoXoz85iWQMwRaPW/CtuA1cBf9eUVHrK0TjYK0GUQ8a/qJEFFUkRPKRpDMUQu nAzBoBEwTn+tRphjdFJrjDylh8GADmFa3pGoAeDfqssGVjm5sSL7xefNZLGSllSlK32u kOJQ6gOhEv1Bz0fVB+J366M+e5tfCKxRmgcslzfzLc4gMe1jOF0T+dqxslP3NFp+A/xf aE3Gfnt7mNDOzIVovoUe5a0S2ywhxwItD7csCdY66yMvbuYneGFeUFzKZ+5FoOHXh4h1 HmPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=9BaMMGzOpHD0VDxT5SymHo185nk+L06zmdo5u2GYgc8=; b=RexOsweVvBtCz/NOIcJEo68LzwF1dbPB3UB35TSJirEIL3czO52GuuG6XO+zlS5btu P09VWMLk0fRUjQrdSTXciNLxqqSAfrB2AzauPeZXjgXPSXIbR2w7geMglt2jvbruq0XN TfiYwFpWzcKIHwvkw0yp3yv6iKhhY8j1zR2/BaSVwh8OWg+4n2BdyHZhGc+YROfPKEJX s5cu9nv9637FVZzof8Sn9M5Scp6wTR6pNuQGOScFOPF0fy8K6PocZ5ttddCv1baHfaJS IQH8m0KyfIMGniSaEADzr26p0ciq/a7HAQ+S5+uaUZwT3t73wYFBUw7drX6TixYwuW/2 ZhuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZzDg1uOE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si3412308edc.349.2021.03.18.23.19.59; Thu, 18 Mar 2021 23:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZzDg1uOE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233909AbhCSGQm (ORCPT + 99 others); Fri, 19 Mar 2021 02:16:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233818AbhCSGQH (ORCPT ); Fri, 19 Mar 2021 02:16:07 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52BCBC06174A; Thu, 18 Mar 2021 23:16:07 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id gb6so4152317pjb.0; Thu, 18 Mar 2021 23:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=9BaMMGzOpHD0VDxT5SymHo185nk+L06zmdo5u2GYgc8=; b=ZzDg1uOEAWm8QJJ9nHn9MQEN4TCJbb7AtqP+HTGbkuCr6JpTx3Ls93Glc7sYZgyDM1 Z9W2q0+5OdbzUiFBDGzAhjciaBSqV0/Y9vV0jrEU1lyNyL024GFdGIT1lmbJYzO7JB02 mnRMpdl5rPa8b23/C8lxn+vrI5RQtS/zJRe3HG2JNURrFuyjBahhcKBANaWe0ELN/mcO vU59VgkBzUwe/ivY9yiMbz0zJK21dwA/hpLqHieK659yvyYQPimmzap5a0EqKPifRHto F3ND/KtPUopDxZlC3tw7EhO5MtowTjMNEOAvTbRJjknJeCeuD/YVUnxHQi2qP9Ss1aF/ +2wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9BaMMGzOpHD0VDxT5SymHo185nk+L06zmdo5u2GYgc8=; b=lMWhFwI1iOuTgvjtFZrJf5qcxbOwTcPzVQKKloe3DojLQRy4PdZctkpvnjPXyObw2L MpPKWj7DXtTAMSR8voxPsOYAm0N96Z9t9BhCPGz9ZezOuP5La+EH7QLsPc2Mk5LdiFO2 Dn0S/rkETGUJYUwbdgRa33YpcdEinsNxDM3cUOxj49eRnDJ1O1EsOrQKzEXMyBCFzQ2i WF6YcjBBTuB2Q5kyZsezFthOjKZ8H9MBv7bwL9swlUOzOjs1Xfy3obfr4+OmlDJ+3yhe oxAk2NZMv2q0YHiiyOoF6hjJJhu+6rnqb/8mRJ1RBBXqTQNP/I3akz54wbKLAANbrPBH fOvw== X-Gm-Message-State: AOAM530gB+IkI5FeVaf+tft7P3Q5zL5kon7V2QX/sFkysPeAqTxEGSgg yirWItFKzcMY10doo2yBTp8= X-Received: by 2002:a17:902:e98c:b029:e5:defc:ccf8 with SMTP id f12-20020a170902e98cb02900e5defcccf8mr13099782plb.20.1616134566704; Thu, 18 Mar 2021 23:16:06 -0700 (PDT) Received: from lenovo.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id o1sm4223103pjp.4.2021.03.18.23.16.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Mar 2021 23:16:06 -0700 (PDT) From: Orson Zhai To: Rob Herring , Baolin Wang , Jassi Brar , Chunyan Zhang Cc: Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, haidong.yao@unisoc.com, Orson Zhai Subject: [PATCH v3 0/3] Fixes & a new supplementary feature to SPRD mailbox driver Date: Fri, 19 Mar 2021 14:15:34 +0800 Message-Id: <1616134537-27966-1-git-send-email-orsonzhai@gmail.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Orson Zhai Fix a real problem for SPRD's mailbox driver in patch 1/3. Add supplementary inbox support for newly added sc9863a in patch 3/3 and change dt bindings yaml accordingly in patch 2/3. Changes Log: V3: - Add Reviewed-by tag from Baolin for driver code. - Change interrupt-names syntax in dt-bindings according to Rob's comment. V2: - Change patches order. (Yaml go to the head of dirver) - Remove unnecessary initializing refcnt to zero. - Add fix of possible crash caused by NULL of chan->cl. (Actually move from changes to sprd-mailbox.c of patch v1) - Remove unnecessary "inline" for do_inbox_isr(). - Fix yaml errors from Rob's robot checking. - Add sc9863a compatible string for real supplementary inbox usage. (sc9860 is not supported by supp-inbox) - Add more details to supp-inbox in commit messages. Orson Zhai (3): mailbox: sprd: Introduce refcnt when clients requests/free channels mailbox: sprd: Add supplementary inbox support dt-bindings: mailbox: Add interrupt-names to SPRD mailbox .../devicetree/bindings/mailbox/sprd-mailbox.yaml | 13 +- drivers/mailbox/sprd-mailbox.c | 135 ++++++++++++++++----- 2 files changed, 113 insertions(+), 35 deletions(-) -- 2.7.4