Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp43899rdb; Thu, 5 Oct 2023 16:10:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/5JHwY57tVFIg7Ku8u1vrrkFzHRnP17sVXb4TU04odIPoNgYuWAwSogk091B5g9u0Dy2u X-Received: by 2002:a17:90a:8597:b0:274:1bc9:b72 with SMTP id m23-20020a17090a859700b002741bc90b72mr6273408pjn.24.1696547417912; Thu, 05 Oct 2023 16:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696547417; cv=none; d=google.com; s=arc-20160816; b=YX+QJ4xyZ2piMZ/aqyT6W+yEf/w90dvuhXzwRu9bsC/zC0Zl1VugXLYYqaoWD4SytE sm2ufvu/EfKlq9Wt+UaeOShm4RwQzJuFuxYzafi+E8FQRLCnhPOVyFDtj55wVtb5mel6 xMGNjVlI7xjKF+i+iHTi7rf6aNNuckv2Pq3yJS+BeBm5nmMLhNmMamcRzIYgvWIUPAeZ 06T6IhZN2gButun9FOnXHDTVyPJD22FAJORbuZCi0EVh3pMMaxH5tdDQqiV+H2Ph9+tz VVfNA4QDA7j+FwZ76GANTb1Gb4WHnXHaIYOLsFwXF70wTror4Z/90Cwexnc+Eeasl09x LE2g== 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:dkim-signature; bh=/u2XAPqWSCa+gZlCovK9+wWp4yXXohSh0eNlXoEnMqY=; fh=qr6m8uDnUyoM7PUSjWH0S3orGnS2BEVKL0qpMmVfNoI=; b=Q5WhwauOtqNF6t2DZL6pTGSSBoflvIiE6mN6w60CwlWrv6GII/JRJje+xY5Pop3SCM en3zEClcfsqZpGSoM6nO+X1kozI5izVvsUGukyPECza7uNUJXukGSHEw6PoDn1+2o0xg 61JhZUpOUFwkqpoIYas416xDPYv49A9TqKDKsKLD1DJz3heAam07LGWJVlnB2J1wmH3q oUF8//Cwxvs8V1bspxDYE3Fc0aEiGtUrZe5XyYt+XmAjH5mufxbSJwQ2M1WZUDcKTfxm N40wb6yHuSQ+WMYMXSyDCWqGDqOfPJfj1DCvkiVQnU1H82B/ODOkjwGfD0YJez7osqjA SP1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tPT5j8H5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id pf16-20020a17090b1d9000b002773b1bf75fsi2645326pjb.23.2023.10.05.16.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 16:10:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tPT5j8H5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D134382D2B6C; Thu, 5 Oct 2023 16:10:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbjJEXIP (ORCPT + 99 others); Thu, 5 Oct 2023 19:08:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjJEXFv (ORCPT ); Thu, 5 Oct 2023 19:05:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E302FD41; Thu, 5 Oct 2023 16:00:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71905C433CB; Thu, 5 Oct 2023 23:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696546814; bh=z8SBsSMi2KrKif8ZB0siIYo9TONoKiFZO7As5Wbrins=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tPT5j8H51+zkqqaKNtgexqQjXunmNEejDNzNXGpgOC2BYI7TK3yYsvisl0H65F2ou hYN4lzaFlLy8qBPAz2gV+0SJV9aVQMbKNNCenmTNotanGG/5mGQCtFPvyviytPOpcE gEnuMSL6QFIBzxoCLpgcbqz8QAUVay8gliDC6WcKlOZMiSvK1XOUYw8iS7hrp5w5Ay 8UppHEVxuyLRDBTZHqZcJ/jISXS6NUk5vpD/OBiZGhotdiqJua+AxlsZuhl6Wis008 1Y/FdIT70dtNKokQdH6wbhwclXFx96Wc6YL5BTxbzBxdDXXQNAsdyY0Uo4C1/DKuHj S7SazjYfnja+A== Date: Fri, 6 Oct 2023 01:00:08 +0200 From: Andi Shyti To: Naresh Solanki Cc: Peter Rosin , Patrick Rudolph , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] i2c: muxes: pca954x: Enable features on MAX7357 Message-ID: <20231005230008.kw3u76gmudpia4cq@zenone.zhora.eu> References: <20231005134541.947727-1-naresh.solanki@9elements.com> <20231005134541.947727-2-naresh.solanki@9elements.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231005134541.947727-2-naresh.solanki@9elements.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Thu, 05 Oct 2023 16:10:12 -0700 (PDT) Hi Patrick, On Thu, Oct 05, 2023 at 03:45:40PM +0200, Naresh Solanki wrote: > From: Patrick Rudolph > > Enable additional features based on DT settings and unconditionally > release the shared interrupt pin after 1.6 seconds and allow to use > it as reset. > > These features aren't enabled by default & its up to board designer /&/and/ /its/it's/ > to enable the same as it may have unexpected side effects. which side effects? > These should be validated for proper functioning & detection of devices /&/and/ it ain't WhatsApp :-) > in secondary bus as sometimes it can cause secondary bus being disabled. Is this latest sentence a related to this patch or is it a free information? > Signed-off-by: Patrick Rudolph > Signed-off-by: Naresh Solanki [...] > else > data->last_chan = 0; /* Disconnect multiplexer */ > > - ret = i2c_smbus_write_byte(client, data->last_chan); > + if (device_is_compatible(&client->dev, "maxim,max7357")) { > + if (i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_WRITE_BYTE_DATA)) { > + u8 conf = MAX7357_POR_DEFAULT_CONF; > + /* > + * The interrupt signal is shared with the reset pin. Release the > + * interrupt after 1.6 seconds to allow using the pin as reset. > + * The interrupt isn't serviced yet. > + */ > + conf |= MAX7357_CONF_RELEASE_INT; This setting comes as default, what about the dedicated reset gpio pin? How is the driver going to understand whether from the irq pin is coming a reset or an interrupt? > + if (device_property_read_bool(&client->dev, "maxim,isolate-stuck-channel")) > + conf |= MAX7357_CONF_DISCON_SINGLE_CHAN; > + if (device_property_read_bool(&client->dev, > + "maxim,send-flush-out-sequence")) > + conf |= MAX7357_CONF_FLUSH_OUT; > + if (device_property_read_bool(&client->dev, > + "maxim,preconnection-wiggle-test-enable")) > + conf |= MAX7357_CONF_PRECONNECT_TEST; How are these properties affecting the economy of the driver? Can we have a brief description? Andi