From patchwork Fri Aug 17 21:45:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 10569389 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 84264109C for ; Fri, 17 Aug 2018 21:41:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 737E12BEEE for ; Fri, 17 Aug 2018 21:41:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67D4C2BEF3; Fri, 17 Aug 2018 21:41:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1647B2BEEE for ; Fri, 17 Aug 2018 21:41:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728335AbeHRAqe (ORCPT ); Fri, 17 Aug 2018 20:46:34 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44847 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726292AbeHRAqe (ORCPT ); Fri, 17 Aug 2018 20:46:34 -0400 Received: by mail-pf1-f193.google.com with SMTP id k21-v6so4021738pff.11 for ; Fri, 17 Aug 2018 14:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=CD+I3EtfjTVRv8UGAr0JBdr/LVr4o/w1tSfB1TQz9QY=; b=Fy3BP0X6fXRyfNLeWV9Rdvby1vXCjkmao0ydAuZuxWE2yryaPMBUj/sCCdgL1hyKFl RnCjKscT10wmP2kiT+95kdd9rjBtVi+nosLdj7CKryyDDkSsZiJQ70nsVDSyMMZUxg/z 7H5qrBo+QZPsAcqwKuXSxYxA2YHne5koeO3mw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=CD+I3EtfjTVRv8UGAr0JBdr/LVr4o/w1tSfB1TQz9QY=; b=F0NBJZYnK9zNpmkQaGJKVfFNhpifrfdurHR+3cSQWIpADIdveRC7+vqQX0kLFyoPsj jmxP+FYMtU+8UsgDwa5a7DAMdrhMC1HjUM6IOaB7RWGpfh3wtc4oleeAQRSMA2ldqdSy 0Rn5Sg4BHQU0qMMCcqSyCkjUAuofvOaDQoKZQ2HB3Ap7bREn85tGAiL6N2L7Tno2+Xfo uVJhojH2TCtYy/sbpCALAuYhs0IITo/Vw88EljJCXAR+Y6Mp/JkKW25nd4qyYxfmQbAG rWOfcLfmkJd/5pyWuBLlCbwkuNtEkVGjIk4CFRjpH0UGX3c23pF/4UdPqEjOwF2eoZWd x0Cw== X-Gm-Message-State: AOUpUlG22A4ZPVoPLeBzDq4UNYJ6Hdd1QH/sygBhqJVoF4LLqb2Uakct YB+DwpJb5dle492OWwN8f8ilyQ== X-Google-Smtp-Source: AA+uWPzaq8zez/8gZn2MSqhxdKFq8gg97l9IpvSKTAdkMira9MGGOcInCeN/gaGz6E2VNI6nbx40lg== X-Received: by 2002:a62:398c:: with SMTP id u12-v6mr38401264pfj.9.1534542092154; Fri, 17 Aug 2018 14:41:32 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id l84-v6sm6087863pfg.3.2018.08.17.14.41.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Aug 2018 14:41:31 -0700 (PDT) Date: Fri, 17 Aug 2018 14:45:22 -0700 From: Bjorn Andersson To: Linus Torvalds Cc: Ohad Ben-Cohen , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Baolin Wang Subject: [GIT PULL] hwspinlock updates for v4.19 Message-ID: <20180817214522.GC3941@tuxbook-pro> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: git://github.com/andersson/remoteproc tags/hwlock-v4.19 for you to fetch changes up to ddb34f480d1b8051bc18e6ff22e93a6c9a33f94f: hwspinlock: Fix incorrect return pointers (2018-07-30 20:54:51 -0700) ---------------------------------------------------------------- hwspinlock updates for v4.19 This introduces devres helpers and an API to request a lock by name, then migrates the sprd SPI driver to use these. ---------------------------------------------------------------- Baolin Wang (8): hwspinlock: Add one new API to support getting a specific hwlock by the name hwspinlock: Add devm_xxx() APIs to request/free hwlock hwspinlock: Add devm_xxx() APIs to register/unregister one hwlock controller hwspinlock: Remove redundant config hwspinlock: Fix one comment mistake spi: sprd: Replace of_hwspin_lock_get_id() with of_hwspin_lock_get_id_byname() spi: sprd: Change to use devm_hwspin_lock_request_specific() hwspinlock: Fix incorrect return pointers drivers/hwspinlock/hwspinlock_core.c | 223 ++++++++++++++++++++++++++++++++++- drivers/spi/spi-sprd-adi.c | 11 +- include/linux/hwspinlock.h | 37 +++++- 3 files changed, 262 insertions(+), 9 deletions(-)