Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp515223imm; Fri, 31 Aug 2018 06:29:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZQUz8VBoIAq1qfUUwW/e9UZQp7PLwZH2f75uTrAz4yBTvIhCytkg/zCwQtUAKnQykvF3ij X-Received: by 2002:a17:902:20c9:: with SMTP id v9-v6mr11258067plg.39.1535722199832; Fri, 31 Aug 2018 06:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535722199; cv=none; d=google.com; s=arc-20160816; b=bMK8GVSG8YIQ3uh/dXGFAXd/bczMT95RsH15ixIxKqd0GUO8vBXJTzMjgC5LKJrheW LBb1O/ue71LAwVDw6iaCDmPqoheK7h4w9lqOok1A0Vg9gLGmodf17fZ4X+l/ap5OcnGF Tnw6IIJbaIRvH21zj3jvZPJTwwlNiCcPlUlLbRi/dOF7ivP8GooqcFR16qhCGj61xTZf e4Im0ZbXdQLddQ8JRWaS9AjSsa1TNqLEfhFVFwPr5XOoOSLNwqyjnKiy6aLSHXmIr30S Gi4qHnwcFSC9tvrvuGGc2f8VVwBOLGO4e51XIqtsi47X/moM/VWsZ4zS1K+wLJWPct3K lyhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=ROogf4dBD+V3Y8YdSEq1DSLU3/vmDRe1rmPYLFlfL3g=; b=RQ6sF8owt+EreXCcPBCfi8wqsPwMB9AcS6Mq2kL0k8h9gLo0ecSapdb8llBsvaghOi 2799JagVASzX7fqCTDkWK+g+vSBB37gjc6rczklavi7+gJBlp2C370J/DCIWnL9a30TF oi6keihdloaZpapcCVfORBBdnJXWUpgnzRdvcTUCSmWxVZvzNnllF0bD0nkAsPWO9Hso Uq202mooQYlGk/eX7SnJl4xvqBlrQy99LWN8OODkWmuGfank8s/mRsxk3eSyv+o/ipP3 bwASvhzAE4jQInqfBfs6ZGn5Cw0SGmuVfAW4gyRLstrT1TmTDsrLUEBOBixQGOU0hLF3 f/gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11-v6si9119040pgt.44.2018.08.31.06.29.45; Fri, 31 Aug 2018 06:29:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728321AbeHaQpK (ORCPT + 99 others); Fri, 31 Aug 2018 12:45:10 -0400 Received: from mail-vk0-f65.google.com ([209.85.213.65]:46703 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727268AbeHaQpJ (ORCPT ); Fri, 31 Aug 2018 12:45:09 -0400 Received: by mail-vk0-f65.google.com with SMTP id b14-v6so5397444vke.13 for ; Fri, 31 Aug 2018 05:37:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ROogf4dBD+V3Y8YdSEq1DSLU3/vmDRe1rmPYLFlfL3g=; b=LivmcaYdpABdppOBEez14ZUZy4HotODj+2pkNQeyvzjyeHtAIkEsdaWP97JotcoTE+ ptiLeqT/T/HqRxmIQ8xFQw4hxbXoOqbSrKm2+qC5AwxOulY7hhtpvlhLOk0LvIEcXAWS uxLEw75+agC7GSnPhCW6w1QA6icoaPVnKOXwIWGqP6YT1mIc7v/W89N9mKtNtB64tJFc MdurAkzNqJus7z4ZYXlFXc686EUIQ51EQrqETaUWG2HEu5WVU6gvQ6nzppygaabP2GXC fZuB34kF+MTPIc/D84dKDD9jvD+aZkdjZ7stEs96xEFI1Eu1y1VCXQ0FSKPrtHtcmJew 794w== X-Gm-Message-State: APzg51Bj3sfGldR3jI2xjllVGjRhON7zuntaqJpq+2JpcNmR2Vdfj9u+ tnJQORoGDoUFlA3DYs5Tu4Sf/bvfsSfuX3NDxsI= X-Received: by 2002:a1f:8ad3:: with SMTP id m202-v6mr8936433vkd.9.1535719070773; Fri, 31 Aug 2018 05:37:50 -0700 (PDT) MIME-Version: 1.0 References: <20180831123402.9494-1-p.zabel@pengutronix.de> In-Reply-To: <20180831123402.9494-1-p.zabel@pengutronix.de> From: Geert Uytterhoeven Date: Fri, 31 Aug 2018 14:37:39 +0200 Message-ID: Subject: Re: [PATCH] regulator: da9063: fix DT probing with constraints To: Philipp Zabel Cc: Lee Jones , Linux Kernel Mailing List , Sascha Hauer , Marek Vasut , Mark Brown , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Philipp, On Fri, Aug 31, 2018 at 2:34 PM Philipp Zabel wrote: > Commit 1c892e38ce59 ("regulator: da9063: Handle less LDOs on DA9063L") > reordered the da9063_regulator_info[] array, but not the DA9063_ID_* > regulator ids and not the da9063_matches[] array, because ids are used > as indices in the array initializer. This mismatch between regulator id > and da9063_regulator_info[] array index causes the driver probe to fail > because constraints from DT are not applied to the correct regulator: > > da9063 0-0058: Device detected (chip-ID: 0x61, var-ID: 0x50) > DA9063_BMEM: Bringing 900000uV into 3300000-3300000uV > DA9063_LDO9: Bringing 3300000uV into 2500000-2500000uV > DA9063_LDO1: Bringing 900000uV into 3300000-3300000uV > DA9063_LDO1: failed to apply 3300000-3300000uV constraint(-22) My apologies for failing to notice that. > This patch reorders the DA9063_ID_* as apparently intended, and with > them the entries in the da90630_matches[] array. > > Fixes: 1c892e38ce59 ("regulator: da9063: Handle less LDOs on DA9063L") > Signed-off-by: Philipp Zabel Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds