From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 CC658CA9EBD for ; Fri, 25 Oct 2019 07:41:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2FE12064A for ; Fri, 25 Oct 2019 07:41:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407107AbfJYHl6 (ORCPT ); Fri, 25 Oct 2019 03:41:58 -0400 Received: from mga07.intel.com ([134.134.136.100]:33424 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406055AbfJYHl6 (ORCPT ); Fri, 25 Oct 2019 03:41:58 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2019 00:41:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,227,1569308400"; d="scan'208";a="349953315" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004.jf.intel.com with ESMTP; 25 Oct 2019 00:41:54 -0700 Received: from andy by smile with local (Exim 4.92.2) (envelope-from ) id 1iNuEM-0001YM-6m; Fri, 25 Oct 2019 10:41:54 +0300 Date: Fri, 25 Oct 2019 10:41:54 +0300 From: Andy Shevchenko To: Hans de Goede Cc: "Rafael J . Wysocki" , Len Brown , Lee Jones , Mika Westerberg , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] ACPI / PMIC: Add byt prefix to Crystal Cove PMIC OpRegion driver Message-ID: <20191025074154.GX32742@smile.fi.intel.com> References: <20191024213827.144974-1-hdegoede@redhat.com> <20191024213827.144974-3-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024213827.144974-3-hdegoede@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Thu, Oct 24, 2019 at 11:38:25PM +0200, Hans de Goede wrote: > Our current Crystal Cove OpRegion driver is only valid for the > Crystal Cove PMIC variant found on Bay Trail (BYT) boards, > Cherry Trail (CHT) based boards use another variant. > > At least the regulator registers are different on CHT and these registers > are one of the things controlled by the custom PMIC OpRegion. > > Commit 4d9ed62ab142 ("mfd: intel_soc_pmic: Export separate mfd-cell > configs for BYT and CHT") has disabled the intel_pmic_crc.c code for CHT > devices by removing the "crystal_cove_pmic" MFD cell on CHT devices. > > This commit renames the intel_pmic_crc.c driver and the cell to be > prefixed with "byt" to indicate that this code is for BYT devices only. > > This is a preparation patch for adding a separate PMIC OpRegion > driver for the CHT variant of the Crystal Cove PMIC (sometimes called > Crystal Cove Plus in Android kernel sources). > .../acpi/pmic/{intel_pmic_crc.c => intel_pmic_bytcrc.c} | 4 ++-- > drivers/mfd/intel_soc_pmic_crc.c | 2 +- I would go with previously established pattern, i.e. intel_pmic_bytcc.c. > +++ b/drivers/mfd/intel_soc_pmic_crc.c > @@ -75,7 +75,7 @@ static struct mfd_cell crystal_cove_byt_dev[] = { > .resources = gpio_resources, > }, > { > - .name = "crystal_cove_pmic", > + .name = "byt_crystal_cove_pmic", > }, > { > .name = "crystal_cove_pwm", I'm wondering shouldn't we rename the PWM and GPIO for the sake of consistency? Yes, if a driver is used on both CHT and BYT, let it provide two names. -- With Best Regards, Andy Shevchenko