Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2376320ybc; Wed, 13 Nov 2019 13:30:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwMFB8Z86ewEY2PBogls/13BGI32/WoGJtNdoTOSBvtJKgw+0/xT88qeLB9QwUa62Hs7x7k X-Received: by 2002:a17:906:8319:: with SMTP id j25mr4878277ejx.170.1573680611117; Wed, 13 Nov 2019 13:30:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573680611; cv=pass; d=google.com; s=arc-20160816; b=WqHAV0bQEpkhawUMaZHmcfcpebTSeYJ2UFlV+/iBfv3KXojIWUqGaJJsRkf1jew0EY YwST5M+jYuc6bgLIfKdwhtb1sSbVunwtC2HcLFTPTOMhFvsI5kIoAIuJg5Qra4QMkMtc LUsTQ8KrzQ5EES/IyaFbg0Y9iQEsC4Yf8vhwU8clB1CGZzbM05iV014Eds1sKAOs6dO4 mgXcecjmSSa+1Qa+ecEvFWZZ6S7jdptogCUBHDyTG4ip1LZj6QokkC1mRAuEYdOSG5Ry z+i85zYkd1/MGJcHCajmUK1XS7m3cAtWCZKddJXjyEKeMBqIwjQ90TAGXNTnCg0w2395 BHNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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:dkim-signature; bh=YR+yK3/puMN1xS2qmOj7KCfOtqkPmOKpQil3HQowZw0=; b=xizGck0S66Qu33umQR6sINioF1KXciERIRVqUR+0vHyvIUk7wTtBkh7di94Vq7yimb NZWXGxi5e3TOkQoW8PC1HaYtLPgpvYkj6hQTPuTYBuwUU3HL5HPBM7PdMKjRB6w5Hx+X Q0TXqjkKEMUyDnF21lF5fibIdqLhI0w1u5u9ieVKJHsG8VQYe3FwszKVgA98Y6j9uOT/ JnMS5LNpvKMuV+cwWpGYdOvm6Aoa4JstmzBlga0SEGIsTkWnnh6baPSC3K3fbQxu2Mf1 GeZ81YThQ3j9emkWzaB/sgBaziarPBHHGevJ3z1cBiE4ajji9E3Be+eVenxhMghDDSiF G86w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Y2boQkZf; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=huSZRcJV; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18si2003585ejr.423.2019.11.13.13.29.45; Wed, 13 Nov 2019 13:30:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Y2boQkZf; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=huSZRcJV; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726434AbfKMV3E (ORCPT + 99 others); Wed, 13 Nov 2019 16:29:04 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:18072 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfKMV3D (ORCPT ); Wed, 13 Nov 2019 16:29:03 -0500 Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xADLSTx2016857; Wed, 13 Nov 2019 13:28:30 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=YR+yK3/puMN1xS2qmOj7KCfOtqkPmOKpQil3HQowZw0=; b=Y2boQkZfE8mQxEyTvr0857BFO4laaHN73/cxGbJpHOnzoMJ0LOClLsHx8WrbWMqdZPpp US0dmurPdWZpbRBPDWvQpgxmpbsIezx7BN8wKbQp+1ziRv+Yb4h1GmiTxYdE+VCtVWEk G7o7XBRj0h/CD6LnA6b4oHdvLopIS4qIajg= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2w8rgdgcn2-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 13 Nov 2019 13:28:30 -0800 Received: from ash-exhub102.TheFacebook.com (2620:10d:c0a8:82::f) by ash-exhub202.TheFacebook.com (2620:10d:c0a8:83::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 13 Nov 2019 13:28:12 -0800 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.35.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 13 Nov 2019 13:28:12 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=juzVFgIewhqHPPLJXQdZLIyakwRjpljFudrUjl1SKjcMlNe07cMBWq05J1LmOeZN4bA0mh8wRO2/M/dGoopJQTxXEU8ltrz2HUxw7plzBOR6YxUv4us+mst3aNH3AF/MCtt6sfGMDZluX5YQPdb+Bgo0bGnt0y/fFbxb6zrmEsbvnh99qMr55/j2fWc4UK+8rqmZhFZV705XOQHPfxrsZnBiS6/2HXiLwkMvnRrov3EL2g5cThKdd7vD+ObM4rlIRCjghCKbjXH4be86ogDih3XO3tbd+zTHJny/xuPXc/udws/WH8mVNfzlcFZ/GHie9mdOlZjiPoX7g/UM6+qNOQ== 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=YR+yK3/puMN1xS2qmOj7KCfOtqkPmOKpQil3HQowZw0=; b=DOmmXABs2kEW/e3EBMcS9qo4/vrP0GUGiyVqFSFVM1b54jkbo6HryD0wJcJ6ldBmK/P8UQd4jN+q3mX7rBI3QUJwOaXGYv1L7GJ9m4nW7pXqidLSJPmxIcuAwIU8E0E8r+SAl5i928Croy+N6OGjDBAKYd4zlvwT2S4vaoyCHQ0c73CPZJWwlnYr2zsrzYuNSZa9cbT9x2WUrJebX5WG7mg6/C19Bri32pELxu9wtBgQ5ylpCPeuLfjUDJ7hPBItvgW8sjs+peI2wyW7j/S/R+nh1okdx6xXoq+IOizVT61CBEsg6TD79ZbcBL+sqCqVSA4v1bxduTT9IES42OVppA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YR+yK3/puMN1xS2qmOj7KCfOtqkPmOKpQil3HQowZw0=; b=huSZRcJVyYJ3AlRCZI1gXTfQ25Qb/aCcuG5E6qMtPfO7WEl6NZUjMOKDLp+0tk+enQkid0UCUFjOZv4ChxON3iwP/7UddrHWWYkbfKttJmIRJD6w+UNjuJhnmnz/1i6NAxs6XMYErqfe5jIh+OCDfNV1BNXjFK8KamyZTf5sOM0= Received: from BY5PR15MB3636.namprd15.prod.outlook.com (52.133.252.91) by BY5PR15MB3618.namprd15.prod.outlook.com (52.133.254.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.25; Wed, 13 Nov 2019 21:28:11 +0000 Received: from BY5PR15MB3636.namprd15.prod.outlook.com ([fe80::71db:9d2a:500c:d92b]) by BY5PR15MB3636.namprd15.prod.outlook.com ([fe80::71db:9d2a:500c:d92b%4]) with mapi id 15.20.2430.027; Wed, 13 Nov 2019 21:28:11 +0000 From: Vijay Khemka To: Asmaa Mnebhi , Corey Minyard , "Arnd Bergmann" , Greg Kroah-Hartman , "openipmi-developer@lists.sourceforge.net" , "linux-kernel@vger.kernel.org" CC: "cminyard@mvista.com" , "joel@jms.id.au" , "linux-aspeed@lists.ozlabs.org" , Sai Dasari , "wsa@the-dreams.de" Subject: Re: [PATCH v3] drivers: ipmi: Support raw i2c packet in IPMB Thread-Topic: [PATCH v3] drivers: ipmi: Support raw i2c packet in IPMB Thread-Index: AQHVmlgx5hC93vJeUkW0xORXbQm1S6eJjmCA//+JUQA= Date: Wed, 13 Nov 2019 21:28:10 +0000 Message-ID: References: <20191113192325.2821207-1-vijaykhemka@fb.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2620:10d:c090:200::63b] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: df6c9e83-6fbc-4f4b-0f51-08d76880624b x-ms-traffictypediagnostic: BY5PR15MB3618: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0220D4B98D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(346002)(136003)(366004)(376002)(396003)(189003)(199004)(13464003)(2906002)(316002)(66476007)(66556008)(99286004)(110136005)(64756008)(66946007)(8936002)(91956017)(66446008)(25786009)(4326008)(6246003)(6512007)(6436002)(478600001)(36756003)(14454004)(6116002)(76116006)(54906003)(7416002)(305945005)(229853002)(6486002)(5660300002)(7736002)(14444005)(256004)(81156014)(33656002)(46003)(446003)(11346002)(2616005)(476003)(486006)(71190400001)(86362001)(53546011)(8676002)(2201001)(6506007)(71200400001)(81166006)(76176011)(102836004)(2501003)(186003);DIR:OUT;SFP:1102;SCL:1;SRVR:BY5PR15MB3618;H:BY5PR15MB3636.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: q8d4vV0ElpL37/XSlkDYM9GYS2A43htmO/huRlSk0MhlL6qkolEWB5KPvHcpbMmwNvKsXAEklbu6P0VvNoZ1LHqsNmHeZsC1WQIW/Nta+4ltHXQJyJ2HSIRAsiNFKeDK2SqA1uM4JXbsJjx9Xf5A82wn8Eo0BUX4ZViTAv/av52yUsQ4kq/Ppiv6W21XQRHqofWxySt2aVNoQHMHYvtNUAR2WkLvVq0/w1rI2Q3a8vUOhwHuhxKRaC31k7ApdYRYH39gGhz5PmjJdrGmCffngYP6wlviM10Roda5DV+hLtsYhvY1lTxHdgeS3VnwR6i8lFVTQYtfDAeAwcGkKlmLtFLZoFPfMQokSPa6yE66oWFFNVLCQd0T03PqwGtZR9mVeRmRGZRHupoHSrXbpQlJlKXnLpGdJT6Hrr6ycrT1AnKB2T1bkS2EiMm9fSqMPNNN Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: df6c9e83-6fbc-4f4b-0f51-08d76880624b X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2019 21:28:10.9244 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: r7mO9iolA9zL49Vca14qFsjBmBUAUnIvKo6arEk8s8agVA9ka/CKyVqQUpYnnnAmWkCxDj7jk2xAz0Gw2sr0yQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR15MB3618 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-13_05:2019-11-13,2019-11-13 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 lowpriorityscore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 clxscore=1011 priorityscore=1501 phishscore=0 spamscore=0 bulkscore=0 adultscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911130177 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCu+7v09uIDExLzEzLzE5LCAxMjozMyBQTSwgIkFzbWFhIE1uZWJoaSIgPEFzbWFhQG1lbGxh bm94LmNvbT4gd3JvdGU6DQoNCiAgICBJbmxpbmUgcmVzcG9uc2U6DQogICAgDQogICAgLS0tLS1P cmlnaW5hbCBNZXNzYWdlLS0tLS0NCiAgICBGcm9tOiBWaWpheSBLaGVta2EgPHZpamF5a2hlbWth QGZiLmNvbT4gDQogICAgU2VudDogV2VkbmVzZGF5LCBOb3ZlbWJlciAxMywgMjAxOSAyOjIzIFBN DQogICAgVG86IENvcmV5IE1pbnlhcmQgPG1pbnlhcmRAYWNtLm9yZz47IEFybmQgQmVyZ21hbm4g PGFybmRA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