Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp273435rdf; Thu, 2 Nov 2023 23:16:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcQz0Fc0SRSmqQs/6EhM4+VJwYVoJS5UySoGrJPdodX2el/71hFTxN0I4gmzXW29A4jAhE X-Received: by 2002:a05:6a00:22d5:b0:692:780a:de90 with SMTP id f21-20020a056a0022d500b00692780ade90mr21813358pfj.30.1698992182258; Thu, 02 Nov 2023 23:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698992182; cv=none; d=google.com; s=arc-20160816; b=ijamhB45197+DaHNdFHC7NiHrhT6QktsV94E4d1H+BDdbghIWwUd09N6rZoNdbQ1yq VfkxV0KQDeUdWIszX+r6G+aX3STyL1qeL3iUE/ctzUx4BVgFN0tk9uGADwsibIdiarHc xPEeoPQw0KH3tup+uBhyJiRn27n+yL2ed1uIPMjn41AjA9nR/i93xdh0Zl7uMw/sB8kr nJC8eQKArPrTaZVNs8qZ0Cvsg9JDeWKemheHOP82e6L4rTFrSmINN+/b7lOV+0lF8hV/ N/E1pX1PMAwrB7rP+i8hXeUFzmtdx/WT4Pb8JM6dPt25vYZ+aFsCcMHvHJ1Ao85b0if5 W65w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9uBDHUEXTjz3mCrbNalyoZITY3Ldzz/4xXHCv3UN9mU=; fh=J5fZGSGUmoD0NT+ZfFkgng7qPhvONoMGdVOrNctU85A=; b=hYqbrLdMVI8SEOxQ19aLn9/gH+P2EPt/96iDcH5XVMP6MeNGms+rIGWscOYWrqrdda 35gJDISbLB/lKNmyftSxzGqG2L9tIW9vvcbMnqyb3fLfYMAZU35sJQoWF+QBrlFT9Y8q 9oj4dZkwUMWOxyg+qPmM0OYZguK96G3UbGQ9yLY/41z9zeF2EWrIlKKnBNljI4gY0d0T nSE5UVVv2Wd32Nd8fj6JVDPB09EsCzX0JkmUidJB3rnFvKifXL641vEwJQw5MsQStlW3 arRMqypYa6LsTdrz4Xu5wpsjp4BYmF104UFtYk0fLsPawnUDh9k6WJnBJkTwoyoAhLZi i9FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=K3v0iWVm; 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=codeconstruct.com.au Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id w63-20020a638242000000b0058afac51c12si987438pgd.545.2023.11.02.23.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 23:16:22 -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=@codeconstruct.com.au header.s=2022a header.b=K3v0iWVm; 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=codeconstruct.com.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1363780DBAF7; Thu, 2 Nov 2023 23:16:04 -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 S230116AbjKCGPr (ORCPT + 99 others); Fri, 3 Nov 2023 02:15:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjKCGPq (ORCPT ); Fri, 3 Nov 2023 02:15:46 -0400 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBCAB19D for ; Thu, 2 Nov 2023 23:15:38 -0700 (PDT) Received: from localhost.localdomain (ppp14-2-79-67.adl-apt-pir-bras31.tpg.internode.on.net [14.2.79.67]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id C19172012B; Fri, 3 Nov 2023 14:15:32 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1698992133; bh=9uBDHUEXTjz3mCrbNalyoZITY3Ldzz/4xXHCv3UN9mU=; h=From:To:Cc:Subject:Date; b=K3v0iWVmX+gSRJXB26gV0dszp3ioYxD5gBAE+cy0+zwC19GLqz5VDol6j+LnRWD/n YlbCEQrNWQN0SuaRaBwed6fHcStypW1bRb1J5pA4+cYL1rNc81JTR/TOdhXKCgV9cH JCcmbNitu6A2AfDnryd/i7/T8L+yvIV9cGbS+pZ4huMCvTKQs6bQyEh46wLbkHJfKJ LoPky8QxVqefzGZ6H1xvZDjkFphmhWY8lgBQB/EO2QrUj67tLxqv61zXVxebNbbd/+ 3IzR6MAn0UL7VzICnVUuBls2Ad46YaJMPOzd7jeC7kVzBuuyWZhoDPp0Hvdzo/njEH SjtXB2PUMmd9Q== From: Andrew Jeffery To: minyard@acm.org, openipmi-developer@lists.sourceforge.net Cc: Andrew Jeffery , linux-kernel@vger.kernel.org, Jonathan.Cameron@Huawei.com, aladyshev22@gmail.com, jk@codeconstruct.com.au Subject: [PATCH 00/10] ipmi: kcs_bmc: Miscellaneous cleanups Date: Fri, 3 Nov 2023 16:45:12 +1030 Message-Id: <20231103061522.1268637-1-andrew@codeconstruct.com.au> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 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, 02 Nov 2023 23:16:04 -0700 (PDT) Hello, A cleanup of the KCS subsystem was prompted after some concerns raised by Jonathan on Konstantin's series implementing DSP0254[1] (the MCTP KCS Transport Binding Specification): https://lore.kernel.org/all/20230929120835.0000108e@Huawei.com/ [1]: https://www.dmtf.org/sites/default/files/standards/documents/DSP0254_1.0.0.pdf The MCTP KCS patches are currently at v5: https://lore.kernel.org/all/20231010122321.823-1-aladyshev22@gmail.com/ A v6 will be necessary to rework them in terms of the cleanup done here. I've pushed a preview of that work here: https://github.com/amboar/linux/compare/d2cc82b50335c8fcf83e1d8f396c8f8cf4333ac4...mctp-kcs In addition to addressing some of the resource lifetime concerns I've added kerneldoc for the subsystem in anticipation of Konstantin's series moving the headers to include/linux/. To get Konstantin's work merged I expect we'll have to either take these KCS patches through netdev or the MCTP patches through the IPMI tree. We should figure out which way we want to go, but netdev's not open right now and so that's not a pressing concern. Please review! Thanks, Andrew Andrew Jeffery (10): ipmi: kcs_bmc: Update module description ipmi: kcs_bmc: Include spinlock.h ipmi: kcs_bmc: Make kcs_bmc_update_event_mask() static ipmi: kcs_bmc: Make remove_device() callback return void ipmi: kcs_bmc: Define client actions in terms of kcs_bmc_client ipmi: kcs_bmc: Integrate buffers into driver struct ipmi: kcs_bmc: Disassociate client from device lifetimes ipmi: kcs_bmc: Track clients in core ipmi: kcs_bmc: Add module_kcs_bmc_driver() ipmi: kcs_bmc: Add subsystem kerneldoc drivers/char/ipmi/kcs_bmc.c | 160 +++++++++++--------- drivers/char/ipmi/kcs_bmc.h | 41 +++++ drivers/char/ipmi/kcs_bmc_cdev_ipmi.c | 152 +++++++------------ drivers/char/ipmi/kcs_bmc_client.h | 206 +++++++++++++++++++++++--- drivers/char/ipmi/kcs_bmc_device.h | 44 +++++- drivers/char/ipmi/kcs_bmc_serio.c | 84 ++++------- 6 files changed, 448 insertions(+), 239 deletions(-) -- 2.39.2