Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp489563rdf; Tue, 21 Nov 2023 08:02:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3l0MxRkZUNAJGZ2FGRYTgjJlk040WytY2ICuxHnVjRT3obu0jYqeYhrYzUuxtCCVVfk9F X-Received: by 2002:a05:6871:22c9:b0:1f9:48fb:1835 with SMTP id se9-20020a05687122c900b001f948fb1835mr6167717oab.46.1700582565676; Tue, 21 Nov 2023 08:02:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700582565; cv=none; d=google.com; s=arc-20160816; b=wa05K6hNLay+IBZPL/1nYz3GL7KjfFbETLUxRxoKi6Wviwh3Qf/QBSFxvgvIk/9UGh nmflipLR4Fh2OB9RKcXoNKHb/JuJwAqusZgKD/LCHks8tLvzNBRysbi7fPAG2vlaIkvf 7id25uQueXxbiAEU0uRbQZzx1FXxK7PDAPI5ogzm/wUR36xBkLP4T+2K+lYpLHmbVgsi SBPfGURgz6m6KXguAlirGlNr0Y2lEjpVS2JlSzoFpaCjO+R/5iVgr2665tGs5kCQDUXL RsCUth2GLfTYyWwiWDVN7ej+YaM6fGVDpOKqoC6vDjkxLsczWdcZq+fnz7P2GxtgN30J p6zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=94uiKCc8mVHzfD5hMHo+ipsMG0R6MKAPs1S03wUwkTY=; fh=GaU29FNU3MxzQhS4SnL1FCOkGUIApwAhuXcvAlk6D9U=; b=0Wh8SVfyN0c5jRJtcNb2iUSQ7FR+bsSnLyL3viNun7mrvISXGisHgMBnHTuewlvjA6 ACiApr/Zx82oogagn+3+02RkQlDfLzrQOvACotbIO+W55l2TikLSlvhOZ8Nn87xCQBoG KyTF2Jqb7S8jTbkE5p/5aNLjDAINXpxiBL7tXZF0hgvj9dqrrwyxX1azRQ7qlamtn264 fcbs6A8ZPYM2L9/vHmoHSWiPcX28YoUQ3HI6qyi4qMlL46NvROwNArsVs34Fqt9ewC3P VXy9mq9vbHrW3oYfRFpc6uYw674uYEDB24rqPhuhhL00TePNiatiTFv+RAEu4KpWReov g4ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=F3kLBalV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d26-20020a056830005a00b006c221dc3603si3652479otp.332.2023.11.21.08.02.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:02:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=F3kLBalV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2889F803E492; Tue, 21 Nov 2023 08:01:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234855AbjKUQBz (ORCPT + 99 others); Tue, 21 Nov 2023 11:01:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234507AbjKUQBx (ORCPT ); Tue, 21 Nov 2023 11:01:53 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0001A19A for ; Tue, 21 Nov 2023 08:01:48 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1ce5e76912aso35845825ad.2 for ; Tue, 21 Nov 2023 08:01:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1700582508; x=1701187308; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=94uiKCc8mVHzfD5hMHo+ipsMG0R6MKAPs1S03wUwkTY=; b=F3kLBalVg0ZTxwyzHv2jZBM3n0dBSB+bkjtFCFupnk+2GBG8uvUvZV38H+Z0lbA9P4 VW04jdNhDTtd2P8J9U87vB8841OxMNv+PUYed2oOfItJqQ2yUWZWmH3yLyY984YvsUZ4 rCdzFc/4CoI6ZdhUjJBQPoVJWtJb2JRcog57MhdSUgAeiK+dsXUUWju7cG/F/1uXUz6s d7CKHHjb+fCbBDmcAqnK/uy/d/rYNGKDhLzzvD+davd/PiJC27rzAbnT2NwRzWR94i6h /v6lUOscYWVzWG5HYYNcgNlAB/6nEKcWSP5NVnf0pwa8U48Op3AsYJPdyal+F+GNSphm CLCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700582508; x=1701187308; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=94uiKCc8mVHzfD5hMHo+ipsMG0R6MKAPs1S03wUwkTY=; b=CoGbJSZTuWfuqngFtzQkeoJ4X7CYg9few2+1SorHsOq8EvYsKvoFJ4ZKMmg5TwvQ7e avEI4zGKa5oyegtE2slphm9U2NLU+es5CviRAhstpoqQgoH2XWtiFvgiqfVhFpKqyCLQ SmYNPO4Ucg6PSL8XzzlRKIrqcd85WkEbRldLKi8mwXn3MPwJDumN8P8QXqa27pr6IeR3 B5S+MtSWaM/QLCJNBqK2WwE4gIwy7dZTNPBFjzVl/G3a4EfRygAoslVtGoFxo+nv4eii CxRgWeFh8sk2X6N0wDbyWKa3bq7rXiu+dpomPyjOUUc3gf/ooL69/CEhdN7lKB+FLKHC MgJw== X-Gm-Message-State: AOJu0YwbHMijh7hx+hry7tdKqN3+NJB/POlXJk8/x9E2Ew+JGxZnVqLK Cx9IMdC98cpShJmJ3Q/XU2YKKQAEErQSTvd17iWifQ== X-Received: by 2002:a17:902:e5ca:b0:1cf:6373:b8a5 with SMTP id u10-20020a170902e5ca00b001cf6373b8a5mr6074879plf.25.1700582508194; Tue, 21 Nov 2023 08:01:48 -0800 (PST) MIME-Version: 1.0 References: <20230914114521.1491390-1-naresh.solanki@9elements.com> <20230920130528.GG13143@google.com> <20230921103156.GB3449785@google.com> <20231117121531.GC137434@google.com> <20231121153302.GD173820@google.com> In-Reply-To: <20231121153302.GD173820@google.com> From: Naresh Solanki Date: Tue, 21 Nov 2023 21:31:37 +0530 Message-ID: Subject: Re: [RESEND PATCH v3] leds: max5970: Add support for max5970 To: Lee Jones Cc: Pavel Machek , Patrick Rudolph , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 08:01:59 -0800 (PST) Hi Lee, Thank you for your insights. I appreciate your guidance on the matter. Yes will rewrite the change as below: regmap =3D dev_get_regmap(pdev->dev.parent, NULL); if (!regmap) return -ENODEV; I believe this modification aligns with your suggestion. Please let me know if this meets the requirements or if you have any further suggestions or adjustments Regards, Naresh On Tue, 21 Nov 2023 at 21:03, Lee Jones wrote: > > On Mon, 20 Nov 2023, Naresh Solanki wrote: > > > Hi > > > > On Fri, 17 Nov 2023 at 17:45, Lee Jones wrote: > > > > > > On Thu, 09 Nov 2023, Naresh Solanki wrote: > > > > > > > Hey Lee, > > > > > > > > Is there anything specific you'd suggest changing in the current > > > > patchset, or are we good to proceed? > > > > > > What do you mean by proceed? > > > > > > You are good to make changes and submit a subsequent version. > > > > > > Not entirely sure what you're asking. > > > > As a follow up on previous discussion regarding use of DEFER on probe > > if regmap isn't initialized, the implementation was based on other simi= lar > > drivers & hence it was retained although its not needed due to dependen= cies. > > > > I'm not entirely sure to keep the regmap check or make another > > patch revision with regmap check removed ? > > You tell me. > > You should understand the device you're attempting to support along with > the code you're authoring and its subsequent implications. If you don't > know what a section of code does or whether/why it's required, why did > you write it? > > -- > Lee Jones [=E6=9D=8E=E7=90=BC=E6=96=AF]