From patchwork Fri Jun 25 17:06:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12345687 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0746C2B9F4 for ; Fri, 25 Jun 2021 17:07:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 806A76194F for ; Fri, 25 Jun 2021 17:07:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 806A76194F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5m9p6tlHgA+e81evcKHldn3R5T8+jrI80LgUu+LEZEA=; b=No1kOIrt4nq4oT c1TuycQ0ImYiXuvTbdECu6Is1qBaAc/YrEn96kZBxnNlKbJKo5H3KmKpc2nUOYHYMglHa85g8BKRv HYJnxTz3xPeR7/7b+6F0gT12W6yLIxbbWftKGYXdqgUnKVKF03NR0C/TlGAGiIjHhq8pD3PZB4WTe 0lJLeMddjKhTNpzEArPOpwHE2m1wvgoLVMiwXZI6CTmyBXKtlVy2sGJawEuFR4qENLZzXZn70LLTG zC8ndXf+dio0tIhQz0gCe+dIRNi/4uAidzsyXxh+PHChmAtSszlr1cx/WPNsUUPfoj8BXsMIS+K9X iTJ8kJgqgaCtLjmYzPcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwpHc-002OQ9-J3; Fri, 25 Jun 2021 17:06:24 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwpHW-002ONC-VJ for linux-arm-kernel@lists.infradead.org; Fri, 25 Jun 2021 17:06:20 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F9026195B; Fri, 25 Jun 2021 17:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624640778; bh=VOIJg20YfyJrwH1NaBZ9G0S4KoAb/iCmzLmbIn7S9pA=; h=From:To:Cc:Subject:Date:From; b=QPQFXXMf1PpPku4yj2b4j/twY1B3bXTPkinRKVqaGN3suQyWIpSbNQdMLCyIEitoo noUgPCboAKk4yejoWJUtmSUMg2LR5/iBEHKrsuxu2MvlJB6Kk9ZltjOjQpcGc8bEPK c7B6YEKAsnCnVRoIDLNCWO5VADAa84vB38oGRI7VmBuESX+scMcnW1LxrR4IGkATwz ACo4atEMA8y86H2cpv0cPdWKc+rPGhLiboMpBrYCfJUWKSJLa/Q1qqmhRad8k9tgcF cRyZ42EJ8poVBbQCfI6WlcGRa1RlJ5jf3nXNtYmRksCm4y7Hlm3NhK4ntc1WNX9lH4 sRHXYZpUOtfIA== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1lwpHU-004mvf-1L; Fri, 25 Jun 2021 19:06:16 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Lee Jones , Derek Kiernan , Dragan Cvetic , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Axel Lin , Mark Brown Subject: [PATCH v9 0/5] Move Hisilicon 6421v600 SPMI and USB drivers out of staging Date: Fri, 25 Jun 2021 19:06:09 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210625_100619_081539_4C5F88E9 X-CRM114-Status: GOOD ( 18.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Greg, This series contain the final bits needed for the USB3 bus to work without staging drivers on Hikey 970. It takes a different approach from the past series: basically, it moves all IRQ related stuff into a new driver ( hi6421v600-irq), and the MFD driver (hi6421-spmi-pmic) is now quit simple: it contains just probe and regmap, which attaches into two MFD "child" drivers (a regulator driver and an IRQ one). This series also fixes a sutile bug recently introduced via the regulator tree (patch 2). Basically, the SPMI/MFD driver combination already uses the platform data, but the new patch re-uses it to store a mutex instead, overlapping the previous usage. This was unoticed on my past tests, as there were some unused data at the platform struct, that were big enough to store a mutex, but when I tried to remove it, it caused crashes and instability at the board. Regards, Mauro Mauro Carvalho Chehab (5): staging: hikey9xx: split hi6421v600 irq into a separate driver regulator: hi6421v600-regulator: fix platform drvdata mfd: hi6421-spmi-pmic: move driver from staging dts: hisilicon: add support for the PMIC found on Hikey 970 dts: hisilicon: add support for USB3 on Hikey 970 .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 134 ++++++++ MAINTAINERS | 7 + .../boot/dts/hisilicon/hi3670-hikey970.dts | 129 ++++++-- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 56 ++++ .../boot/dts/hisilicon/hikey970-pmic.dtsi | 87 +++++ drivers/mfd/Kconfig | 16 + drivers/mfd/Makefile | 1 + drivers/mfd/hi6421-spmi-pmic.c | 72 ++++ drivers/misc/Kconfig | 10 + drivers/misc/Makefile | 1 + drivers/misc/hi6421v600-irq.c | 312 ++++++++++++++++++ drivers/regulator/hi6421v600-regulator.c | 26 +- drivers/staging/Kconfig | 2 - drivers/staging/Makefile | 1 - drivers/staging/hikey9xx/Kconfig | 19 -- drivers/staging/hikey9xx/Makefile | 3 - drivers/staging/hikey9xx/TODO | 5 - drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 311 ----------------- .../hikey9xx/hisilicon,hi6421-spmi-pmic.yaml | 134 -------- include/linux/mfd/hi6421-spmi-pmic.h | 14 +- 20 files changed, 822 insertions(+), 518 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml create mode 100644 arch/arm64/boot/dts/hisilicon/hikey970-pmic.dtsi create mode 100644 drivers/mfd/hi6421-spmi-pmic.c create mode 100644 drivers/misc/hi6421v600-irq.c delete mode 100644 drivers/staging/hikey9xx/Kconfig delete mode 100644 drivers/staging/hikey9xx/Makefile delete mode 100644 drivers/staging/hikey9xx/TODO delete mode 100644 drivers/staging/hikey9xx/hi6421-spmi-pmic.c delete mode 100644 drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml