Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp635537pxb; Wed, 11 Nov 2020 12:15:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwuCdFXOnMgKdvvd+BAplcLfKS9swysRvdQbgpFnJ/mmI+hyn2CGYVFvk4wH4oZIRopZxJ X-Received: by 2002:aa7:d9c2:: with SMTP id v2mr1335506eds.95.1605125702709; Wed, 11 Nov 2020 12:15:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605125702; cv=none; d=google.com; s=arc-20160816; b=dIep8TprizCJ2KJ/1f4POUoEUE7Suu0xjStRzbPd9JAtjbrdkqvPRoMfS6saMUnUVj Z9dHWQMJWSDxaJAMxeue5AjniA+52xcmyPHj+OcxPtf+TTODoZdFU3qaQb5vq8eJHbSa qZ8Z2IipbrUqWp3oE/8O/vTuQF4lrwpGG3AJ8G6QTek48owZPZccd3Ox1jBKfJz1GK30 fXaGCiJU77zEd13JzY90eoP1qCl+XNMkWVhQs3sNIK8eGnmRAv+v9rmbTt4xR0wnKyxZ tVsWtCJMqklATxLAKIcTWjNWGpYhzwvV62kMt5zNzG/sNs2dzG3uwkBGNNFWMzeRByiM SjFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=F7AKQnS/USiMmoeHPSK9/AG/hMH5sRwDB1LYC95VaV0=; b=c8155n9RiIWwUL/+yPAeqNgAFmd9RaCPrOdGZR1VWjHLAcqRJKwvk3FaCSaAahSFiV i4cnyWaGNnr9e3/7Y0Q9h8MPrUSpzxtMn0V2OriVOvAJzziwsjiimudgQ0Jf1piMIBW0 8zuQoQk7PjDJ7SbiejthklDCVd9JZj1NmoQD87oist8EJAMaOk8vqfg57V2WJUT9GCrg G+qqZqlI1tfsmCsV2KHf7rvB8iKjpYsvJ+ArxSjLFXpk6h1cYfZGt83eUnBfDwv2dGWH zuGOlYswfJ0HaRG7EmOGu48pX94rI5BqVnlbiRCfU4RITrJxFAOd/tUsBQwylQflBqs3 RjQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WBFn3M3g; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rs18si2043923ejb.162.2020.11.11.12.14.39; Wed, 11 Nov 2020 12:15:02 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=WBFn3M3g; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726203AbgKKUMc (ORCPT + 99 others); Wed, 11 Nov 2020 15:12:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgKKUMc (ORCPT ); Wed, 11 Nov 2020 15:12:32 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32F53C0613D1; Wed, 11 Nov 2020 12:12:32 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id p8so3765279wrx.5; Wed, 11 Nov 2020 12:12:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=F7AKQnS/USiMmoeHPSK9/AG/hMH5sRwDB1LYC95VaV0=; b=WBFn3M3gsXz+myqgSRvR+Xh0vzo3h+nm+pSDbvSyBTEm5KUh9soCZVmhtsy9LOhq3x 1yPTlBFTSGT4tTIDWL94SV2WarUIsU8k8OccKfKLvYAkjTH6b5Ucqd26nSMNG8RbCNh3 FDIqmKUVYa0MdIs0/s9wtPSuOSkZn0riu9dzr4hUI4lY5sgqajHazh8uO40Cd3g60QCQ ZipweSOUKgaIge1PBdSPKM7Yfhbz6Fjg7NfyzFmUcrjcs0Pd5Xe/scVM4OyMdnT6+rnU 9cOK+4M8PORSgsbBjlvexbYur66shtARcESIANsjqMZdX/9dIC/ugUfwt2R2qPAVdrOQ wAxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=F7AKQnS/USiMmoeHPSK9/AG/hMH5sRwDB1LYC95VaV0=; b=I0qK+mwr6yI/eOYIO42xeG250pJ1nIsvOSKKcQVgO4Ekeu3VhulLCbg1IyiBC+FnRz /9QLO5h+JttsOHM7mdNXVYPjo3BixXldcabHUQ9D4LVu3Dnqq3atdbVRQp4ZigI+s7iB DLqkgGzLis43CtD5k7mi8JVtt9Jr4s+eHflRJDNyISddQN3Em/dKbGYMlYKIPZhy8kEm Sa+KevKFzxTjmoXSKwf4z5wycfdBLYeKTxEx2O9zpoaRv1nOCuuA2f3AxodOlYnu53Kb syHnRLzSZ8QLC9RL6YohLuO/URDDrknqMB23gOuQyGuffFOyFk2t4QdBzj8diZ76xGf1 06gw== X-Gm-Message-State: AOAM531wymKFqHIxyW905e+dpwCQtp3U5WP86VPrYDxLjc2R9XXSgIVd NIJKoxsEINAoodX9OT32ImgH219aZ3Q= X-Received: by 2002:a5d:4d0a:: with SMTP id z10mr31457501wrt.244.1605125550909; Wed, 11 Nov 2020 12:12:30 -0800 (PST) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id y16sm3364397wrt.25.2020.11.11.12.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 12:12:29 -0800 (PST) Date: Wed, 11 Nov 2020 21:12:27 +0100 From: Thierry Reding To: Lokesh Vutla Cc: u.kleine-koenig@pengutronix.de, Lee Jones , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Sekhar Nori Subject: Re: [PATCH] pwm: lp3943: Dynamically allocate pwm chip base Message-ID: <20201111201227.GJ6125@ulmo> References: <20201030134135.28730-1-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5cSRzy0VGBWAML+b" Content-Disposition: inline In-Reply-To: <20201030134135.28730-1-lokeshvutla@ti.com> User-Agent: Mutt/1.14.7 (2020-08-29) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5cSRzy0VGBWAML+b Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 30, 2020 at 07:11:35PM +0530, Lokesh Vutla wrote: > When there are other pwm controllers enabled along with pwm-lp3943, > pwm-lp3942 is failing to probe with -EEXIST error. This is because > other pwm controller is probed first and assigned pwmchip 0 and > pwm-lp3943 is requesting for 0 again. In order to avoid this, assign the > chip base with -1, so that id is dynamically allocated. >=20 > Fixes: af66b3c0934e ("pwm: Add LP3943 PWM driver") > Signed-off-by: Lokesh Vutla > --- > drivers/pwm/pwm-lp3943.c | 1 + > 1 file changed, 1 insertion(+) Applied, thanks. Thierry --5cSRzy0VGBWAML+b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl+sRasACgkQ3SOs138+ s6EA0A//aBd9sU58jvIjRrNEWYcibPTj/Szyp+xrYw1XjmCm3vwWVTH1nwcAT3+6 5ac228oAshC3zsALkDg0brhgZqQLTk22BSEd+Z6b8P14vKAzT+N+z+fsiu0xYbzU Wr2JKyoB74vt3utb2YGSwCmECKP9tB8dWcntUN/LDHKT/VPfFqngcoLNL8lr9BX4 9Xq/uvcR/QL8+J/YcuWK6LQxAW+zhCJhpj/XS70oBlLPgEPm7ZPFkydr17qgWhMo P5xfNfnWyUSSmmW+Ephl1BHXMUHR+nIOFApET/w0SxtWXi7mHv+ECOHUNQb10iTi /Aoy2n0ajlZQ1dE5QaeAHX+47+RnIyS8OoGw2ZnEB1Sl2bH6Mr1tFJotU0JAUOK5 3EQgHY1Id22EsffQNNFGTC0Mm7fVFmoHEe1vJ6AzXv7RI3e8W/7SY/IUYQ5RdwzU 4ENutUmLkC0WNXOIhjv7NtBfNFbCRCUXEBBXAPNLZLyQIHpIvPVuR9B3Z8nAxR2n 9edST3QHUC1sWhDVp+cJGRrNGZ6YrP8QAja2BEr6b9gXOzz168LRefrToUZEDd9k /bFzrWB/YxlUgD1ZXPgJ7z3jHNTH5ed1oAWioe1rAuMHC60gcthKeRHJMeIW/w3l pLF7tmAFXaH9U/b7mSh1FSDtKcq/e+qP5UMq6C6bYtnA51RJrTI= =yWn6 -----END PGP SIGNATURE----- --5cSRzy0VGBWAML+b--