Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp124498rdb; Wed, 29 Nov 2023 23:29:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8SlMnA9F6YUB8QZ7/9q3gVrZ9TBexZXXWNK9cuwmf6T+qlc7UizofWrDyMpxVtbVdbni/ X-Received: by 2002:a05:6a20:7352:b0:18c:2d7:b84c with SMTP id v18-20020a056a20735200b0018c02d7b84cmr23572306pzc.61.1701329379430; Wed, 29 Nov 2023 23:29:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701329379; cv=pass; d=google.com; s=arc-20160816; b=uqG/o02kiqEw8DctlAbLYdjv3FGDiICJiQo9MkQ+5TZ7tTklZNby2Pu4glRTutJUNX ge5nSqGb7uUArb2R2gDOtX+2Ew2yNS3a0AhvuSlxk4WDmxZhaqp4B7fLz0S2Grs91yXb ilPZZRqvMNXrtzYrUjOd9c0m/CRW7UoGT3vcflgFLCFyUhVdxsR7cuNct1Wz5/DnYGHn 54ucTIasJAJlEwfBRTIYxLi+plb0oMpv7xjmmtvhEUAni2HW0BN5mn7+ke+4Yp77WsxI 3dRaSvauKvw1v+8rTnC2yYZB5v7OGeTs6sqVzGYAlq1okowSgDido/EXWnlwwDdJljYi /5hA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=kGJ4C9YNfWvcT8KL1njUy1Du2f7Aa2zAVis/DpjLyQ0=; fh=YHn38WHGmq+bRtD9YSj42ECJhGc7kfijbBQq9uSb+yo=; b=p+TxAjmbvfCy0x7WkaBz/7XcP5mq8CE++1hgtywxc5BWZuSKNpY6UuYt82Ls4u+ev1 iT1xGU30n7WNwfvmR5JJwDy4bwM63Hde7I/FGELrlLxaS0JAZFhH11/9tFSuP/1diPNK bRRWmhvF3srrS3d1CvBQNsWoaRZY6ggm/NLS+nJj701YAe+i8hVcu6mX49BdtP9qmjfV nML55nH8crbZUjlh28qHqS76kZ0aKAyrJpWkUYibtldJ2K/YpT+JujJJCv0trIxDFFrd CNJrQHfnnjIzoeHZFVovERv+SVPieO/Sg6IayaCX27bC2rmUrykqU5tmQy++K1yhieZq WRfw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=LEMuUldC; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id r5-20020a632045000000b005bd0f2c2671si753252pgm.626.2023.11.29.23.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 23:29:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=LEMuUldC; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DD40082069C0; Wed, 29 Nov 2023 23:29:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344742AbjK3H3R (ORCPT + 99 others); Thu, 30 Nov 2023 02:29:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344718AbjK3H3Q (ORCPT ); Thu, 30 Nov 2023 02:29:16 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2125.outbound.protection.outlook.com [40.107.237.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33E14B9 for ; Wed, 29 Nov 2023 23:29:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AiFsWOQRfFzkyxNhryXe53XCQEbOjsSmiMtKz6oo3PEJmVFgV9pD2LiBcCktFPWUyrfh754szgnkE4+NCennsF6ahB+qd8pDrzfwKTEl8GOpfayNTvnF4TrN12IirDxr8t7XwkZlHGJLwzTOQdO5iEyhVGn/FyiAcQD7P2BAWR8JYeYfrya1ZgsawoZWX8JIclfyNj9srur89gPKJCmEcqmjayww1XdIZlvaG2QH/WwU1tZj+kAV7lw65reDKr5RPONpXyuANUxHyGy+WH9HF3VGTrUEnAG3ofDMmTr4q9BMuYLoObcKcBe4314X0IgiWGRy2sChcb5fLEEezOhf5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kGJ4C9YNfWvcT8KL1njUy1Du2f7Aa2zAVis/DpjLyQ0=; b=WSVFM7YcWhNPOZ11dYZ8XzeVrueAc+O3JJ1xIl0uFuwOmL61YBPx3VO+bXV91ZyvFS6lnVvibddv7Vt5b9t6t8ij6LJ45yLm52RCwOl84a5tfwPYWnvjxXMsuSB1G8o5/STHmczkPftS3wfwvHGyCqPbd0LHuxKJKnRWeZdaXOshGVJcIFBAqYX75StF5uWrfVPbhcB8ndbcYCMBiMFUf1fD8IyZNYqB2kHt3LRDA+P0Me2UdeFX8/IUP304o2l68eOihBKXOvJGB3ULfiCszYoIsc6J13yA1HDIZptTphhik2qn3xYQoxyX5w7I/PSLUEZXD+OQeCnLwMxO+lmDEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kGJ4C9YNfWvcT8KL1njUy1Du2f7Aa2zAVis/DpjLyQ0=; b=LEMuUldCGMlyn+1YhP8Kmbp7ad94IHl1x4F38vqIo0ieLntcRDfWe6k3ihg2IpvSGsjyDatw7b6heFo5uwkRte65kTpDl6UVfd55XlFwlWTLvR/ZH16mSs07Hexf8ENGdESep0k0peFdKD/YLrK6QeC207WIBtdE9RqxdI0WSGY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SN4PR01MB7455.prod.exchangelabs.com (2603:10b6:806:202::11) by SA0PR01MB6137.prod.exchangelabs.com (2603:10b6:806:e1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.24; Thu, 30 Nov 2023 07:29:20 +0000 Received: from SN4PR01MB7455.prod.exchangelabs.com ([fe80::5682:1d84:171a:1d68]) by SN4PR01MB7455.prod.exchangelabs.com ([fe80::5682:1d84:171a:1d68%3]) with mapi id 15.20.7025.022; Thu, 30 Nov 2023 07:29:20 +0000 From: Quan Nguyen To: Corey Minyard , openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Open Source Submission Cc: Phong Vo , Thang Nguyen , Quan Nguyen Subject: [PATCH] ipmi: ssif_bmc: Refrain warning printout when aborting request Date: Thu, 30 Nov 2023 14:28:49 +0700 Message-Id: <20231130072849.3075741-1-quan@os.amperecomputing.com> X-Mailer: git-send-email 2.35.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0127.apcprd01.prod.exchangelabs.com (2603:1096:4:40::31) To SN4PR01MB7455.prod.exchangelabs.com (2603:10b6:806:202::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN4PR01MB7455:EE_|SA0PR01MB6137:EE_ X-MS-Office365-Filtering-Correlation-Id: c1e96be1-7384-471a-a85b-08dbf17610d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZKeSNV+NsIkseiwHMVh2FX1VLuzJrCiNn3cKVoNzd3SmSNYUjPrQ1JzC9L8zN2wH90qW8onzxIqwea8/TsMrzC8ayzx0OdrF3cPpx3nC6V0a2ugsjsl9d3a0qt77NiWhkxHJQIXi9tIiAMn6Nq3gR9C23Q4rQIhUreQLIvVUQ8fgj9o3wQCVfJ4E25aXGJ8uAq10fBifO+XGLSuDQsXS7zgU19eKemF4gAssiXHOxqXJCf5v2S4rAoVOIbzXDb3SiA7JN9Jg5j3zMU+M2zJilHoD8KsgGMOGzBoiqw9P9JIlA0NF+FTmF8CMm9PdnqSv0utp/750CUGWta5t1qaqjBHJYWCepubnoSODCgSAcb4ivnb+1HTfMJDVEpqfaBJUd2EuwIh6npCv5MDvYttIpsRZGGVbw+ALJMOEs4eF7P8qWD2erbBVm8X62u30eqI96tEIGLVDQcHue08M4+XcdVTWrs0cal78CxAc/vwE/nbT8MXex6D2UsLIJOnEudMwO59w1xzf+FKIVinEm9LvKr8BCZ0WrcDlbF86pCbhDHazxD3KFEACDwBk3gE4CZw7ik5IeB4qzdVzdVnAZjwQa7LZDDdIruxLVw7VActcDtPRecjox289H4WOHxKuI4snaBNYEzpu6jX5xwrvDZ0CMXomYXmnhacCKfgRVKLWqe3UrkkuXuv4nBzmAWsFE1w3ODIgn/iUcaCJgulbn7LqLw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN4PR01MB7455.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(39850400004)(136003)(376002)(346002)(396003)(230922051799003)(230273577357003)(230173577357003)(64100799003)(1800799012)(451199024)(186009)(1076003)(107886003)(38350700005)(83380400001)(26005)(41300700001)(38100700002)(202311291699003)(52116002)(2616005)(6512007)(6506007)(6666004)(6486002)(2906002)(5660300002)(54906003)(316002)(110136005)(66946007)(66556008)(66476007)(478600001)(8936002)(8676002)(86362001)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?gKf4R/VhNC/5lwIhUsittu0Mig3idFm5IpzTjJhiVab7vp91ZomJkl0Up94J?= =?us-ascii?Q?4cDt2bnsy63/AbgKRhnpWH64mjml7YVjCiMw4NMqOwmDhgbvV/Dq3kPqjtRu?= =?us-ascii?Q?lwNy1rRpW9XNGtgYMRkW5qJjDvjMaLuJ/IZYeWzZLD/ivUWFL4qjZnrTfzbK?= =?us-ascii?Q?/sQYQDN+H87NTiNnPEnSkakl7+OruIBdkLnn6E2Eq1bxGcNhLd6MnPvUg687?= =?us-ascii?Q?mcwyKsLWIqHZghVHHh1XCf5mKzRtEhs5nSyktCcZMVyeZAxGn36SvLie8pE3?= =?us-ascii?Q?kJ8DfA1321v1xoo+62J52KPoGeKDqAY3zakrBZLj6aT5QKb8Sp5zDP+zi8sI?= =?us-ascii?Q?mV38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aQLlz?= =?us-ascii?Q?wZL+qeXuOJ0e3/NKZQLHUkTui07Y6sxCrIEOiLmmvWa8cnTpblCTvSYzMEB7?= =?us-ascii?Q?QfEwoDgzVXhVTuXWhua36/NMN6GOCyqb56pu3M/kRQ6l0gzSVLOXl5lpJ1k4?= =?us-ascii?Q?IdEs836xXgcVkfx/OIJJdw647lTPYgDe10P2TMX63nZqV48VnfU3nKpAJdo0?= =?us-ascii?Q?AHUHShqp7l1Xmp4H39mZwL7acWr0TGHcfbopKlwQwdRzg204JH0QHDBW0ds/?= =?us-ascii?Q?ofz4S0Vpir0TRc88pGh8RrzXe0Kkx9K1bkUEjeDxsNocHf6F1Q285RJR+iXY?= =?us-ascii?Q?EjPWB6RNvQaKTzQsMT3LZk8OsI+M+ZTvcAYYbSNBY25iElTUSOgSFAnRnQ9F?= =?us-ascii?Q?oKjRB1p5N/V1B+misGe2KkE=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1e96be1-7384-471a-a85b-08dbf17610d0 X-MS-Exchange-CrossTenant-AuthSource: SN4PR01MB7455.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2023 07:29:19.9207 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8cmUevkypJzaOxUwHmESvtnd+MbRmMgblSTwU2j6/KKlRWZPXQICt6RKgKIesomSDJK7Ezsg0AfDAWEjgZCe1leOtXwY1/3+djMHh9od4BM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR01MB6137 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 23:29:37 -0800 (PST) Ssif_bmc driver discards the current request if there is no response provided until the new request comes, during that period, there are multiple warning printed out as below: "ipmi-ssif-host 0-0010: Warn: on_stop_event unexpected SLAVE STOP in state=SSIF_ABORTING ipmi-ssif-host 0-0010: Warn: on_stop_event unexpected SLAVE STOP in state=SSIF_ABORTING ipmi-ssif-host 0-0010: Warn: on_stop_event unexpected SLAVE STOP in state=SSIF_ABORTING ..." This commit fixes the issue by refrain from printing that warning Fixes: dd2bc5cc9e25 ("ipmi: ssif_bmc: Add SSIF BMC driver") Signed-off-by: Quan Nguyen --- drivers/char/ipmi/ssif_bmc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/char/ipmi/ssif_bmc.c b/drivers/char/ipmi/ssif_bmc.c index 56346fb32872..2857e7341d65 100644 --- a/drivers/char/ipmi/ssif_bmc.c +++ b/drivers/char/ipmi/ssif_bmc.c @@ -718,13 +718,15 @@ static void on_stop_event(struct ssif_bmc_ctx *ssif_bmc, u8 *val) { if (ssif_bmc->state == SSIF_READY || ssif_bmc->state == SSIF_START || - ssif_bmc->state == SSIF_SMBUS_CMD || - ssif_bmc->state == SSIF_ABORTING) { + ssif_bmc->state == SSIF_SMBUS_CMD) { dev_warn(&ssif_bmc->client->dev, "Warn: %s unexpected SLAVE STOP in state=%s\n", __func__, state_to_string(ssif_bmc->state)); ssif_bmc->state = SSIF_READY; + } else if (ssif_bmc->state == SSIF_ABORTING) { + ssif_bmc->state = SSIF_READY; + } else if (ssif_bmc->state == SSIF_REQ_RECVING) { if (validate_request_part(ssif_bmc)) { process_request_part(ssif_bmc); -- 2.35.1