Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1319721pxv; Fri, 25 Jun 2021 10:07:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqkJporldQTo5LZJrc7dqluddPdfQBnfJAdCPJqlSbsLJZ8S1I1ROGN0GjTHkRiLBXO0Fx X-Received: by 2002:a17:906:c1d2:: with SMTP id bw18mr11936055ejb.123.1624640864562; Fri, 25 Jun 2021 10:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624640864; cv=none; d=google.com; s=arc-20160816; b=HKhQX05EKUZAekMyrs+QT/IUKCm8yON9VQ0yO0iyCOya6QfMj2bM07IeJSWvVNvgvl 7r6rWBysGCdrESxa2Ovq5uoz0cneuemyuSGno6F/wH9Oz/yjm+CjBIUeFgOuXkIY3JSA S+jJOTebACN3wKHx6jajw9ZxpQiPt2SKPh3cxVD4nQj0WT4gN1540uTHDZuHBSFS9KzA 0VclrhDq3WZ6uHpzVZ2QihGRpjCiL4I8/uYFDXZVAL7mRvGZDBY75KpCZRngyQpl7Wqg 5NBEgKPFirYwaUUsQh9aoqAkeelsyp16SvSrbjrJnB5fpU68TKdkEuCPvyUnwTsOUBau nWzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=V5gK61iXr050Kr9BeenMaxzZwTsSCoKz98xB+BwqUzk=; b=ISeAW47HMSczCIywruD9ggeCVMto5sLWPKoOos6t2uza8qCwZM6xx2BzuSfdGnR27o +vPy9cjm9IDBS0HGW1vpEtiMbK4n3bqLb5Ju0IKsPFMXppO88LrY7Qhj2vxxn3x4DShq jjPgeT6xWXmUjWjztQuvYiRXM5TBnN6DxTly9Lv032azEK+h9ZMD+jWl6DDfM0tH7GlK a9LlbAuJQp3AfYPfoBsmyjYG/On3VlxAki6pTPKjytTUJT1P8JwwBgabLR5+Sni38shT Pz9TnZkhqmN7w5omIbN3KTg4YxhYdFvjwxbfVbx4PsxeyNBwiKCZqeh0J6XsxAoljG3m BCUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QPQFXXMf; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si7969783ejj.278.2021.06.25.10.07.20; Fri, 25 Jun 2021 10:07:44 -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=@kernel.org header.s=k20201202 header.b=QPQFXXMf; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230121AbhFYRIl (ORCPT + 99 others); Fri, 25 Jun 2021 13:08:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:46604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbhFYRIj (ORCPT ); Fri, 25 Jun 2021 13:08:39 -0400 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 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.31.1