Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755348AbdCUEzM (ORCPT ); Tue, 21 Mar 2017 00:55:12 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.231]:2270 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752125AbdCUEzK (ORCPT ); Tue, 21 Mar 2017 00:55:10 -0400 From: Jeremy Linton To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, puck.chen@hisilicon.com, lee.jones@linaro.org, Jeremy Linton Subject: [PATCH 0/2] Hi655x: mfd/pmic: regulator: Correct dependencies Date: Mon, 20 Mar 2017 23:53:39 -0500 Message-Id: <20170321045341.4833-1-lintonrjeremy@gmail.com> X-Mailer: git-send-email 2.10.2 X-RR-Connecting-IP: 107.14.168.88:25 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 666 Lines: 17 In an environment where the hi655x pmic is being built as a standalone module, it fails to automatically load resulting in boot failures, machine hangs, etc. First we correct this by setting an appropriate module dependency. Then we bump the module use count on the mfd/pmic driver so that it cannot be unloaded when in use. Again this avoids machine crashes. Jeremy Linton (2): mfd: hi655x: Reference required regulator driver regulator: hi655x: Bump parent pmic module use count drivers/mfd/hi655x-pmic.c | 1 + drivers/regulator/hi655x-regulator.c | 26 ++++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) -- 2.10.2