Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3800190rwb; Sun, 9 Oct 2022 11:15:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4nzvrDsUTWnB9YWkn+VWx4Q87C/O9eTuSa1eIDwwBK3YNsa5LJs2F6CSXW34PAuDVpmSxB X-Received: by 2002:a17:903:2691:b0:17a:8f3:bef0 with SMTP id jf17-20020a170903269100b0017a08f3bef0mr15365146plb.17.1665339338920; Sun, 09 Oct 2022 11:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665339338; cv=none; d=google.com; s=arc-20160816; b=HcsGmP+7EBSUj1Fj5QKOI++ix6Lem/MITea/21fiL/FboI3swfCo8c5a+KiSw7zlhS GfetBn+9+xQpzD7ktaqaErgl9JILLYmOIkDHqH0dNfls6Ol2zJXdobFWmbJc/ZgD7exi 4knbCDlMjHjLkhqWSf3VSf4MEyanYSoJUCtOmcicjW0vyrcDzvUS0ySe7QJkofqzCtyf SsM3opaq7Le7UIYQvZejeiu+xcIN2LxB6LraP3d+DSm/MaPgZZmqOUkDtdzAl8EpJw2Z pJOHIDUGHUlFX26qrxnKEL3EW+hs25IlevIuB/sOdB+q8TYZ5ASzbJH37uTahZGlInIs QLTQ== 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=64cKJ1bXkuhfZtUIYbnBluC3FPEMFT8rqd0uaD8eans=; b=YV74Y5+XAMzUsGIDNuzYZaVjN9/afZHGFGUnqzJ7oFrULBIFxCN3Nti2YHbtXlS/1T /rouWdsYWgS4DiCT1uXhin8Gw9PJA8X4rZrizL4XU/mDgcQYrIHQzzkzE1yCQJNKklA9 DuGVmpswvqGDB/JikSTnR0IA862ySUffM/fQTnAAFBQL3zk9w2Y4qJEIk1McMfb9ky8N acidMriaigK3PNH9EgN5spuavt8xseR1mfkc27S1msu3grWAQOsgKrgzV7j0P/1NO1+v KGNacNYiUaJN6VC+5fLrjrRTvu22BWgZyP4AZRB+qmqIOzThqCpsjpKB0tm0Cju4ZImg udmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K4cQq6cy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a62fb03000000b0052e6c99a571si8995585pfm.323.2022.10.09.11.15.25; Sun, 09 Oct 2022 11:15:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K4cQq6cy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230193AbiJISNx (ORCPT + 99 others); Sun, 9 Oct 2022 14:13:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230156AbiJISNs (ORCPT ); Sun, 9 Oct 2022 14:13:48 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767CB248C4; Sun, 9 Oct 2022 11:13:46 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id bu25so13776881lfb.3; Sun, 09 Oct 2022 11:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=64cKJ1bXkuhfZtUIYbnBluC3FPEMFT8rqd0uaD8eans=; b=K4cQq6cyD+k42i7tzU0BYFT0WMpfPUjVqKnUynBg9KgsCylBM17N0rzP7qscv9J1GM n3hh23N7SR474rk3VT9NtA/UtXxjYD+H00vuJKRGjYvokiZBzkToJXOAcg/9h5UDkI4L zEaSJWY7VpjsqKu5Jsq1xlzRbVAcx6QqkELhuwIpgBm8kNR6HfgWEpVyyjs6gJ0oLvWk 69erTDwe/yZD3YeA6uEY4wwiE93MVpd6b58S9bS0Lsa6wz6+h8KF/F91BB61QxjfhPmB O/LtbNgVSKqprSu+6T3Xn8tXIM4lgd+FhKd/ZBBuRvUqjhTuh2MZJslq2umrxBOIN3qu hZmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=64cKJ1bXkuhfZtUIYbnBluC3FPEMFT8rqd0uaD8eans=; b=a5/zmd7/ZssqLLtaJrFu3yHuQn2DeGGOkqpfi5yP0kf6p1Z+0LTtV5jr9GUjsVJCXU rvUyQmy6fFJ4HrKduaudyihyGzuhlnTR71+pxe9dilNNLLM/84Lj2v2P79f2R6i4Db50 cVyxO8V4MnVL/HckHsn5IpOszr9xTG21plciK0aojv+N4DyA3ZpVVXlLPK9XlRbBVWGY +r1/xovH15jx2gI6rSDLkLW+ZYfr9Z2yOIFJTl2KCTyIsH7LS9GEHjpeYZ3havlSdFXu Zo2xafc7nLnz0uWLF6a+6moxKN7MshNRgbUOboO30ilcow6M0mFyu8k1AFrNy99+x+IY aDGQ== X-Gm-Message-State: ACrzQf3/yyk6ppweRXqLhWl+cQ6q4Y5RjuwERRUUV57HdFpxtnT/26RS Ipp0mL1ojX/Pu3o6H0ZefpHZpVM/tww= X-Received: by 2002:a05:6512:1309:b0:492:e273:d800 with SMTP id x9-20020a056512130900b00492e273d800mr5018765lfu.93.1665339224546; Sun, 09 Oct 2022 11:13:44 -0700 (PDT) Received: from mobilestation ([95.79.133.202]) by smtp.gmail.com with ESMTPSA id s1-20020a056512314100b00494a27500c1sm1101006lfi.163.2022.10.09.11.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Oct 2022 11:13:43 -0700 (PDT) Date: Sun, 9 Oct 2022 21:13:41 +0300 From: Serge Semin To: Peter Rosin Cc: Patrick Rudolph , robh@kernel.org, laurent.pinchart@ideasonboard.com, wsa@kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [v9 3/4] i2c: muxes: pca954x: Configure MAX7357 in enhanced mode Message-ID: <20221009181341.z4j6vcf3ncwi7q5i@mobilestation> References: <20221007075354.568752-1-patrick.rudolph@9elements.com> <20221007075354.568752-4-patrick.rudolph@9elements.com> <20221008125436.ndj2nwesx5lgppsf@mobilestation> <386fe4ae-0fae-0822-f86d-f5903369b424@axentia.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <386fe4ae-0fae-0822-f86d-f5903369b424@axentia.se> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Sun, Oct 09, 2022 at 06:36:52PM +0200, Peter Rosin wrote: > 2022-10-08 at 14:54, Serge Semin wrote: > > On Fri, Oct 07, 2022 at 09:53:52AM +0200, Patrick Rudolph wrote: > >> + u8 maxim_enhanced_mode; > > > > So long name.( What about a shorter version, i.e. max(im)?_enh ? > > No thank you, please keep the long name as is. This is a corner > case and the name is not repeated that many times. Spelling it > out makes the code more readable. I don't insist. It was just a suggestion. Anyway seeing there are going to be two variables with the flag semantic (has_irq and maxim_enhanced_mode) it would be better to convert them to a single quirk field. Moreover it will be useful taking into account that a single maxim_enhanced_mode flag can't be used to distinguish the Maxim I2C-muxes with the enhanced mode disabled by default. Thus another flag will be needed for such devices. One more thing. Using u8 type for the flag variables isn't that descriptive. It should be of the boolean type. -Sergey > > Cheers, > Peter