Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1575717pxx; Fri, 30 Oct 2020 13:23:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2VzOH5NJgojMWqVgVjktB0VMCmn/WTXltF9QrNOKDz9foq/3X8JmWIAmtqN1eSZsKs2Ge X-Received: by 2002:a50:8a02:: with SMTP id i2mr4542482edi.40.1604089381089; Fri, 30 Oct 2020 13:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604089381; cv=none; d=google.com; s=arc-20160816; b=f2wjOLsxw7NTF6bpHIx5dxdDaltXRehP9Xat1iQ7tezsM0B3fvj2x9tsZ1yabWWP5x h1/3i3+nHLwlkSYqXh3cTBaDn0juNDJz4Tw8FUiThHEpwZp9w1hM3UM4EGUfJ+4lIDjZ PgOP+UvOBXcEXmPlKgLDGX0q/tDelModMIwwQeukkXWMKQ5YQcCVB7sOE1gJYhNVURDq uZqtxO2i7AhP1H0DZYlIq43ORaOa0Yf0N8SYiYgcnIgsyTm2pmKQfX7jHrBpqiSjI8nv VWmwcTbAjzy5SvP0hsgVdgpTi+ruip9+3JzPhUP2pZGNAMyKR3H5JWn5X78NX0J2cD3O dvHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=m6JCwJnoBewXws3gLXBA74MISH/g60f4WB0+iDWKHoU=; b=yfpI9+iOa5jxP88j8C5C5Wwn6Hu59RuSQvjw3zgIDKhUwsup7GSEB3jvmZOsEuJwpX Vm77zoHIZBqnCsofmg5OvQ0/eoximwAYvzfb8FdS22mXvMtoCKgTwuhNcZx2gYNP21JO u2g4+gf49TftoZOzufQP2mDGgBKRUiGdawFOoGNHkoQmhuhqNdHvpYlZjG3LogODUMXo iTl5mUSxzGjXkhIjpKMoDKk2+QTB+IH4uc5uXlhLRjTsXP2LPLnnGdPcK72UYpb9+Dr6 TYfrN1TBkUanGR7B4ga3VFTbh2JTuwQqhh6tE2Y74lDGRBn/5Tu/nN5W+wGNgOiDsgXj 9/3g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si1732688edq.324.2020.10.30.13.22.36; Fri, 30 Oct 2020 13:23:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727004AbgJ3UVE (ORCPT + 99 others); Fri, 30 Oct 2020 16:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbgJ3UVE (ORCPT ); Fri, 30 Oct 2020 16:21:04 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F7F3C0613D2 for ; Fri, 30 Oct 2020 13:11:22 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYak4-00017c-Ax; Fri, 30 Oct 2020 21:11:20 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1kYak3-0001Wy-MW; Fri, 30 Oct 2020 21:11:19 +0100 Date: Fri, 30 Oct 2020 21:11:17 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Lokesh Vutla Cc: Thierry Reding , 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: <20201030201117.x5asfjxh7htwv35s@pengutronix.de> References: <20201030134135.28730-1-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lx67b2e737v6sj34" Content-Disposition: inline In-Reply-To: <20201030134135.28730-1-lokeshvutla@ti.com> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lx67b2e737v6sj34 Content-Type: text/plain; charset=iso-8859-1 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 Reviewed-by: Uwe Kleine-K=F6nig With this patch applied only the pwm-ab8500 driver is left not using -1 for base. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --lx67b2e737v6sj34 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAl+cc2EACgkQwfwUeK3K 7AnkZQgAi/o3YwDU501EKDktgXEeNdF5I0thWm4dv6JY7LYO9/WKSlx/uxpy8SUi 8yBNHyEVFjPQ/but9ofkXhFpiHZNh7JJeNEvDtVp5l+j7JczCa7s/37LWh/IUldv A01zeVXSxdcQOddfWWWiPFSp9RhHD7tztqxVkT3OKezIANmTxo3BHcyJAiadOcap adaAR6ukE2aNCU+iKJ030QziHFX3Al/DIr6nv6ORCa+7p/yRg7KWt8wDspWUj2Gb VjG7Akm2+Ek0RoWZmBicEe/ZwEDpCoEQ3WxWOutN7esrCTOISJm3Q8U+CWyqKqhn OWvjyvqH3g/VlD1V6L9YCHPsdE1XKA== =0s0w -----END PGP SIGNATURE----- --lx67b2e737v6sj34--