Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1395312pxj; Fri, 21 May 2021 13:11:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVj8lSm9uUyw0508Unors9B/cTocxNjTK+fSZhlKG5kSSnd3CDOymBF+KHR+ws6AkDZpAZ X-Received: by 2002:a6b:ec03:: with SMTP id c3mr562503ioh.103.1621627876975; Fri, 21 May 2021 13:11:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621627876; cv=pass; d=google.com; s=arc-20160816; b=O/u2ivFVYASrBM9sbWsNsNHxLfsXT+jg0IXo2/c0sIPMSJOw2nWbGvIz60Oqil3aH0 w6ycMAB8DBH/9ZznYq+Fnl6JSoAoLHYhBAm9gvYfoh+fZmnP6WmvpJSiQRP/P1nw16lm S7dLEypAq+NAy/SSO0PNl476nsuiDoxP6lA6zpB9KG6C74rPozGUEGbvSJq/m2NS8LOB 1RZdYgg0LM99mk+p/30dywRM+wi5PeFj8kEl5I2H9N8yw2yXGgS1RVXOtikhjCmWcNy0 27wsAPZ6ZbPoXvhQ5G2/AjVrSLRFxCOeGNDL1IFphIuNVP3nZsu5LVw+z7lvZBv0ZEEe mFSA== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=2NuUn9G9ftrZgTaJlzJCJVoGiK3YT5HJ4xBGnps7U7A=; b=WqphtamH2MqjWd+4+GAb+TX+X+OybgirFp0TxQox4YMZYDyjOiQmok4mUsNqKGB9qh JYyiP2qWVeUajvN0a5bcf9kWmDVSZEY0k+68YMeA7xAwmtaeH62ftd41UUkr3OXVRaZF ofIl2lPshcRnDC+a4udrdyAmt7Iys5zM3NkCkffJ7sG2wGjAggt9kIu/5dsUx0YFvYoo HV34QR6Ao5/prNuY+QVkBXJIccjBK6NgRPP/x/Y6wBqT3TAqwLHzpyAr/SwZSoSe//2P 6XdYdZ+t/+Qw7a8YcSex4FKZderVVg1KJKzeCGTN/FuZ/06GSswyfWfMsW6uPljUe1UM VVxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@equinixinc.onmicrosoft.com header.s=selector2-equinixinc-onmicrosoft-com header.b=Qfx7Kah1; arc=pass (i=1 spf=pass spfdomain=equinix.com dkim=pass dkdomain=equinix.com dmarc=pass fromdomain=equinix.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=equinix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si6341962ilq.89.2021.05.21.13.11.04; Fri, 21 May 2021 13:11:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@equinixinc.onmicrosoft.com header.s=selector2-equinixinc-onmicrosoft-com header.b=Qfx7Kah1; arc=pass (i=1 spf=pass spfdomain=equinix.com dkim=pass dkdomain=equinix.com dmarc=pass fromdomain=equinix.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=equinix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236907AbhEUJnU (ORCPT + 99 others); Fri, 21 May 2021 05:43:20 -0400 Received: from mx0b-00268f01.pphosted.com ([148.163.159.192]:12716 "EHLO mx0b-00268f01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236912AbhEUJnP (ORCPT ); Fri, 21 May 2021 05:43:15 -0400 Received: from pps.filterd (m0105197.ppops.net [127.0.0.1]) by mx0a-00268f01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14L7IFEl006393; Fri, 21 May 2021 07:18:45 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2042.outbound.protection.outlook.com [104.47.66.42]) by mx0a-00268f01.pphosted.com with ESMTP id 38p2purt87-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 May 2021 07:18:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S9btb7zIUIkshcJXHTm+T4J0SxsmMIH8Oz1VSJqaVp+xKDrMxLswzdqKbMvkzjUhr7+D5CyzZVLzZC7VMWwhSsdOAOT6mnZ1c6Vy4ZAyr+ndRQlCMlolOmt5HCMFtcqS1jKa/GoUzLQT+2YYaWqrDq3lJQeZwBD/G6PGwreW/u36EbqbQaoyrZhYJ8DZg8NHhOlkugARaUekBHzaJUSoWF5t1EbJvYMyzWvgatrBLvJEEJKpZGdYwI1ctuJzNkGoUprYncX2eIcE3u48mjBCsUhR10+hW0ohtGLeUvJGqFiObvrvPqTGfJRwtXuDgiBXg050eb2pYbNHzDkcLksP+g== 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-SenderADCheck; bh=2NuUn9G9ftrZgTaJlzJCJVoGiK3YT5HJ4xBGnps7U7A=; b=F/eBJWEaNjMupZQCU1lEagd6iSEfj/1D3WT0BLZ1gVmdFnH8Mc9mFAOFxyUzPoMOCJoqmr8TWF4E8zknid3k4tbdkch0qiOnho0LVPyQcfkTu5ymPJPtGfoO72JNuB3Dc6x5DGWwmbjM9tvVyatiaiYtYK6DlmqnH2HHBvE42AR4ChSVDEN8m8z+YQvJA3RWDRq53Rku3G3szNwc0F+yHqsiqYeEqmbXlaqkfBpfvQwXjbXG9gkEUuFepNBTwe2jyJPOqPXRbHZ/fybf66d+0CEFnSAkfgJFaq3ac5afqYyLmQx2WtmKieh1Nglr+GuYgtHLcdoPBsa7DgcT/KqfXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=equinix.com; dmarc=pass action=none header.from=equinix.com; dkim=pass header.d=equinix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=equinixinc.onmicrosoft.com; s=selector2-equinixinc-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2NuUn9G9ftrZgTaJlzJCJVoGiK3YT5HJ4xBGnps7U7A=; b=Qfx7Kah16C7Q5J/m3keJq/HZabyqqrjaKn7ujZLVRcJRII6Q06PqJR6yEdamjIk/f5DUZ0yixq5bNqL47S9UgezsHeeMN9j0hZk4pgSguux858uJeW4NA/2fPZpdXv/bndls3OG9iO8NrAxoDb5pWEpBpOcDrMjgDp6T0TxjHy0= Received: from DM5PR04MB0762.namprd04.prod.outlook.com (2603:10b6:3:f3::13) by DM6PR04MB3802.namprd04.prod.outlook.com (2603:10b6:5:ac::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Fri, 21 May 2021 07:18:43 +0000 Received: from DM5PR04MB0762.namprd04.prod.outlook.com ([fe80::d9ba:6e7f:b51e:6cab]) by DM5PR04MB0762.namprd04.prod.outlook.com ([fe80::d9ba:6e7f:b51e:6cab%2]) with mapi id 15.20.4129.034; Fri, 21 May 2021 07:18:43 +0000 From: Zev Weiss To: Andrew Jeffery CC: "openipmi-developer@lists.sourceforge.net" , "openbmc@lists.ozlabs.org" , "minyard@acm.org" , "devicetree@vger.kernel.org" , "tmaimon77@gmail.com" , "linux-aspeed@lists.ozlabs.org" , "avifishman70@gmail.com" , "venture@google.com" , "linux-kernel@vger.kernel.org" , "tali.perry1@gmail.com" , "robh+dt@kernel.org" , "chiawei_wang@aspeedtech.com" , "linux-arm-kernel@lists.infradead.org" , "benjaminfair@google.com" , "arnd@arndb.de" Subject: Re: [PATCH v3 07/16] ipmi: kcs_bmc: Strip private client data from struct kcs_bmc Thread-Topic: [PATCH v3 07/16] ipmi: kcs_bmc: Strip private client data from struct kcs_bmc Thread-Index: AQHXThGHS2huPU27DEiEXqeORqWM0g== Date: Fri, 21 May 2021 07:18:43 +0000 Message-ID: References: <20210510054213.1610760-1-andrew@aj.id.au> <20210510054213.1610760-8-andrew@aj.id.au> In-Reply-To: <20210510054213.1610760-8-andrew@aj.id.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: aj.id.au; dkim=none (message not signed) header.d=none;aj.id.au; dmarc=none action=none header.from=equinix.com; x-originating-ip: [24.181.166.149] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7a3ead3a-3a79-4fb1-00a5-08d91c28aa60 x-ms-traffictypediagnostic: DM6PR04MB3802: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KVd9cMUlnkI2n79PJpr7O8OIk+gVxPzfw93CS/NjsOFyQRYQHHW0eGF85Qw0gf5X6UL4YDPKeSr9XR/VxPf7DYH5bPpDwsNJynhmpBtLzyfP+SOlDTVev8I1PBKBzMzFWE8oS/Pag2N7NYZnpqsbzC3zHhUlDYL86Wefl8gTRFiOqsK79XfN1BPAEWCOkm4DfHdHYuS1/ad11RxxNIaBgEFbuZwsblk+OfAkWtqZjvymfVv28FV0OwHvGG91jAEYFml/4IaTotC7xFLY6Dy/wSZeaJrtBFG7hVUlcdL9UVmILsHgDS+7wub2/sy8lRLhA3mrfruOCmuwgyvyo46vtMk229L7n3HzA4H3yuOQNJ8VHhy3JhMxu0NQ5dj0R3aOXUuQrmKFeTWGrRGE5OZ14o+HSDYQHC+XY5nY1vkEAs/MhOZB0juQJyifzvbxvMUtBFlsnTvSyPkahLhqqt7E0Slzcr5sEIbVI4N54i3c1l5p743PwCDguoW7Aw6fsKWE6L+SmeGS5U3HFWUe6doCyOp8oiQ1Hp3mtucWpHShNkO0TsuLse6eQpjiKIE/GzIG6b8odHv/qIkZHKeFww4bSrekQxz8vejFCKL8joO/sVI= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR04MB0762.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(7916004)(346002)(39860400002)(376002)(396003)(366004)(136003)(122000001)(5660300002)(7416002)(478600001)(33716001)(38100700002)(71200400001)(26005)(54906003)(66476007)(66446008)(76116006)(66946007)(8676002)(4326008)(8936002)(6916009)(9686003)(6486002)(2906002)(64756008)(6512007)(186003)(6506007)(86362001)(66556008)(316002)(4744005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?V3y3dXLajnbq1hd9Qyb1MaDGYsMjAhgYws8t4s3YjNSuFkjQQZrW6BuqOD8l?= =?us-ascii?Q?ubDS9fsxpIdvZpV5mnvYXXAg/31SnZkgUguyLMZBHuSXaphEbFwY7BIIGybi?= =?us-ascii?Q?wayYWigGoVb7eJMvupE+C/XghtHJuy6ROl/bQMttA93r4zjKPTBorIe31wwH?= =?us-ascii?Q?3vY4whoLFVy2oZON4fhRUH1qugmQj+VxYnEo1PGP0MNOgITP13fdD77TqJfg?= =?us-ascii?Q?QKEOx/0uw5XeerQo9H5SUSZDJ3EgT4CB/WXyDFvsbxwNDGoCSOqGu8MRSO4X?= =?us-ascii?Q?XZjdOLxBG7hVo6ZrK0+vfzK5afFhxwy3X/k4J4/RaQB4+A9d/a//bfEYR5CH?= =?us-ascii?Q?GOJsKc860xO+TlP0QZX1Og6zfHKTicqekpissf3s7n+faDCJVYAB5Lr8JXzd?= =?us-ascii?Q?wqyX3cEKxh4wBg/+AXn3MQ1zp3inzujK6FVJWpEs+UNQK2EfS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jZ?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <13BFD1E750047B44AEDC6FB517ACF727@namprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: equinix.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR04MB0762.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a3ead3a-3a79-4fb1-00a5-08d91c28aa60 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2021 07:18:43.0664 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72adb271-2fc7-4afe-a5ee-9de6a59f6bfb X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: D/XpwBQk56+Tn+gsgM7FtikWntaTp3OK7CTPJKmcMXzVzopn5wAXhjXTvjSA7fInFIbO9qXIUfon0qKql9rizA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB3802 X-Proofpoint-GUID: xkDcA4KGWUSghhLvy1GUy2xHEgQNYrd7 X-Proofpoint-ORIG-GUID: xkDcA4KGWUSghhLvy1GUy2xHEgQNYrd7 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-05-21_03:2021-05-20,2021-05-21 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 spamscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 mlxscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=729 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105210046 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 12:42:04AM CDT, Andrew Jeffery wrote: >Move all client-private data out of `struct kcs_bmc` into the KCS client >implementation. > >With this change the KCS BMC core code now only concerns itself with >abstract `struct kcs_bmc` and `struct kcs_bmc_client` types, achieving >expected separation of concerns. Further, the change clears the path for >implementation of alternative userspace interfaces. > >The chardev data-structures are rearranged in the same manner applied to >the KCS device driver data-structures in an earlier patch - `struct >kcs_bmc_client` is embedded in the client's private data and we exploit >container_of() to translate as required. > >Finally, now that it is free of client data, `struct kcs_bmc` is renamed >to `struct kcs_bmc_device` to contrast `struct kcs_bmc_client`. > >Signed-off-by: Andrew Jeffery Reviewed-by: Zev Weiss