From owner-freebsd-embedded@FreeBSD.ORG Sat Dec 3 00:36:09 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D324E106564A for ; Sat, 3 Dec 2011 00:36:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 873FC8FC08 for ; Sat, 3 Dec 2011 00:36:09 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so4369391vcb.13 for ; Fri, 02 Dec 2011 16:36:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=q3eBPzJY+zaeJLs92ROKVF5gcuiY3ZcHiQmgj+/ArRE=; b=Uhi0oGbXQ/z1+Q2FFptEDEySYAmhL8PvKxmfNON1TbAHlvvztWPHtVo2VuONHhnfeK VgpkgqYs6dxfdxA7Eu1FZJ0DNitkHPOVtk1awVUPa0pZbEqG3GRPlsIWSlS2MgZ4dDaQ GtbyQeLoQp1Af0XqYGvXgnmQku+C58+HPvunk= MIME-Version: 1.0 Received: by 10.52.94.227 with SMTP id df3mr326567vdb.51.1322872568682; Fri, 02 Dec 2011 16:36:08 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.109.10 with HTTP; Fri, 2 Dec 2011 16:36:08 -0800 (PST) In-Reply-To: References: <68ABED76-CB1F-405A-8036-EC254F7511FA@lassitu.de> <3B3DB17D-BF87-40EE-B1C1-445F178E8844@lassitu.de> <86030CEE-6839-4B96-ACDC-2BA9AC1E4AE4@lassitu.de> <2D625CC9-A0E3-47AA-A504-CE8FB2F90245@lassitu.de> <203BF1C8-D528-40C9-8611-9C7AC7E43BAB@lassitu.de> <3C0E9CA3-E130-4E9A-ABCC-1782E28999D1@lassitu.de> <2B8826C7-00C7-4117-B424-4A86F1346DFF@bsdimp.com> <20111130231311.4a154bc5.ray@ddteam.net> <20111202164539.fff3ea91.ray@dlink.ua> <20111202191122.GK25601@funkthat.com> Date: Sat, 3 Dec 2011 08:36:08 +0800 X-Google-Sender-Auth: 8nryj-NmacbpOLyxw1FBbXLMZxM Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Aleksandr Rybalko , freebsd-embedded@freebsd.org Subject: Re: TL-WR1043: switch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 00:36:09 -0000 On 3 December 2011 08:02, Stefan Bethke wrote: > I see two ways to make iicbus play with the Realtek "System Management In= terface" protocol: either make the patch I suggested optional via a hint, o= r let a slave device somehow indicate that it wants the relaxed semantics. = =A0The hint is likely the option that is easier to implement. =A0Writing a = new go-between bus driver is likely too complicated for me to accomplish ri= ght now. I think exposing it via a quirk somehow, so the iicbus code knows that for this particular child device, the relaxed semantics are required. That way an i2c eeprom will be fine using the existing code and semantics; the switch PHY child will use your relaxed semantics. As there's a few more realtek switch PHYs to write code for, I can only see this as being needed. :) Think you could code that up for review? Adrian