Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1452092pxb; Wed, 2 Feb 2022 05:24:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7y2dyKyFE6W535ELveI3Fqrb73WePpQ76q6NPfFLaoxwoxcxFJY2EVs2bd+yhhr5zkrM7 X-Received: by 2002:a05:6a00:1485:: with SMTP id v5mr29591020pfu.44.1643808266051; Wed, 02 Feb 2022 05:24:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643808266; cv=none; d=google.com; s=arc-20160816; b=Hc4pRX6LMUwy6j/Wa2rseQw7NmkSYQnwzSaaEr+1a8tj8y6OnMdz0u6XVkwJ/VwF1L 2E/G11zyzyhF84PKrZ4xYhKp+f+OWQ1+5M3dhiE47GpJrWhfPALZJWJV4/m7USP9nd50 QHVY2xN4Kv9qWr4JZmaAVLVBE7yNpCZ3lQ4jwFqq56hGCIu5HL5UyVsWX73ktImLFGmb MdxTQ8m4GyZUFKfWUISueHrUubtAkN+NcknY8K3jZiwnTe6g9moXtEfMlXAv/ADM46Cn Ga4JDuUzP4YabSQpA7f7IROR7WlVBiB70Imb2gdf6rxinQsGDbdYbREXb18kXCnks9s2 RkJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=I7jVNfxfiR6L9cpor2lIeHYS68RLOhT6ui7FFhcZWz8=; b=Ce5uFfWbcx8kypLlX+tQjakfXsvvva+d75b0tm25GN/pykOn7XkIWx0fEKN0BoqGiJ oxWUf8pebPLFh4A2gTHsU2ED0u3XynXJVRt5kb1ymqSRS0DDCQdu1q8gF/6UQHlGpkqr 3/b2azRAHW5Q7kHU6LL+5h0ArKd0wyNsYdRy/ouMBnkDJ423AOVuNpms12ZFXXu1h1za N+IO+AO5yRsWGM60r1dPESk0ey6OCGOqLvk6+7aWaNtiy+jH5zE7ovFnewTA1NMDNbnR Ts/O4c0ZbQE/SQ+dAA+EKpVWiGs6RpabuG7ngPcLRTB9G0D16VVKPhYLsYPiOpLsBLVU EF3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DE+IbdQ6; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4si17682883plr.18.2022.02.02.05.24.12; Wed, 02 Feb 2022 05:24:26 -0800 (PST) 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=@chromium.org header.s=google header.b=DE+IbdQ6; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234461AbiBASaA (ORCPT + 99 others); Tue, 1 Feb 2022 13:30:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232677AbiBAS37 (ORCPT ); Tue, 1 Feb 2022 13:29:59 -0500 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44109C061714 for ; Tue, 1 Feb 2022 10:29:59 -0800 (PST) Received: by mail-yb1-xb36.google.com with SMTP id p5so53505972ybd.13 for ; Tue, 01 Feb 2022 10:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=I7jVNfxfiR6L9cpor2lIeHYS68RLOhT6ui7FFhcZWz8=; b=DE+IbdQ63PDvuuuh9gJIWrSsywRKD8r77zIfVu8whigf/Ly1xuNWc66zIh1s30fhb5 dJinz/fjR2Eno8I8Mm6DoNhea7xR51a5wbnq4XVYC2VAvphzzzIJVJKyIHlZ/VqTfE0e w8/+D7iv7bwBy4BKrKOGSoR3LxqqyLNZVFP+c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=I7jVNfxfiR6L9cpor2lIeHYS68RLOhT6ui7FFhcZWz8=; b=PkJDmumbI+aHN8KnKldBfk6M+Q1GB2Qz4a8BvDbKHWav8CcCiRYoPazaNSgs0EzZVR kAC3WM/Uck0KOzvLdkVOzYzpJ4iOI3V24ovRKHKpnDJvPrIJwMmFU9GkSYUOoNZumveh ya1wM84qaDeKCducWnDTLI7BkJHLndmtTSzek1irdwUrXsu9gW/EL9RRvmsPJN6chh7n qsLs3x4yylgqkT7bUDCAzj+3AFPMHaEmi/ahxQiv9aIbt94QswZPkTeNnUcmrURFVWa8 qIWUKuT7tv7TzKxCSmRnETQvUceD4HjAUNah3bgea0DPWXgJ9GkdaoTrJQDdrtoXFpJL 7UCg== X-Gm-Message-State: AOAM533eIrZMMyMMzo8cnlKUFIbLG6sOMleuytO2rL/HX2IPrjMOyopz yAyGGXG79mZ1iv2BLvm+BvVGDfLqUt6qhsOgtndcRM4O7S0= X-Received: by 2002:a25:ad14:: with SMTP id y20mr28247979ybi.155.1643740198548; Tue, 01 Feb 2022 10:29:58 -0800 (PST) MIME-Version: 1.0 References: <20220126190219.3095419-1-pmalani@chromium.org> <20220126230411.nn2illij4wbpdm4q@eve> <20220201121745.r4dbilp3fpqhjuty@eve> In-Reply-To: <20220201121745.r4dbilp3fpqhjuty@eve> From: Prashant Malani Date: Tue, 1 Feb 2022 10:29:47 -0800 Message-ID: Subject: Re: [PATCH v2] platform/chrome: cros_ec_typec: Check for EC device To: Alyssa Ross Cc: linux-kernel@vger.kernel.org, Tzung-Bi Shih , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Heikki Krogerus , chrome-platform@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alyssa, On Tue, Feb 1, 2022 at 4:17 AM Alyssa Ross wrote: > > Hi Prashant, > > On Wed, Jan 26, 2022 at 11:08:14PM +0000, Prashant Malani wrote: > > Hi Alyssa, > > > > On Jan 26 23:04, Alyssa Ross wrote: > > > On Wed, Jan 26, 2022 at 07:02:20PM +0000, Prashant Malani wrote: > > > > The Type C ACPI device on older Chromebooks is not generated correc= tly > > > > (since their EC firmware doesn't support the new commands required)= . In > > > > such cases, the crafted ACPI device doesn't have an EC parent, and = it is > > > > therefore not useful (it shouldn't be generated in the first place = since > > > > the EC firmware doesn't support any of the Type C commands). > > > > > > > > To handle devices which use these older firmware revisions, check f= or > > > > the parent EC device handle, and fail the probe if it's not found. > > > > > > > > Fixes: fdc6b21e2444 ("platform/chrome: Add Type C connector class d= river") > > > > Reported-by: Alyssa Ross > > > > Reviewed-by: Tzung-Bi Shih > > > > Signed-off-by: Prashant Malani > > > > --- > > > > Hi Alyssa, could you kindly test this with your existing setup? Tha= nks! > > > > > > Hi Prashant, I'm happy to test, but I'm on vacation until the end of = the > > > week so probably won't get a chance before Monday. > > > > No worries, whenever you get the chance is fine. > > > > > > > > I'm guessing I should be testing with latest upstream coreboot (now t= hat > > > your fix there has been applied)? > > > > You should use the coreboot with which you discovered the crash, so the > > one which *doesn't* contain the fix. > > I applied this patch to Linux 5.17-rc2 and tested with the > coreboot_tiano-eve-mrchromebox-20210806.rom firmware. > > The Oops has been replaced with > "cros-ec-typec: GOOG0014:00: couldn't find parent EC device". > My laptop now reboots correctly =E2=80=94 the hang on reboot is gone. > > The cros_ec_typec driver ends up being loaded, but no devices are bound > to it. This differs from the behaviour with upstream coreboot > (cabf9e33a7), where cros_ec_typec does not end up being loaded. > > Assuming all that's the intended behaviour: Yep, that's WAI. Thanks a lot for testing this, and yes, we'll be sure to reach out for future help with validating changes. Best regards,